Targeting
by AndrewCTF
Targeting introduces a new selector, t, that lets a command block act on the specific player who pressed a button or stepped on a pressure plate.
What it does
Command blocks in vanilla Minecraft run when a button, pressure plate or other redstone input fires, yet they have no record of which player set that input off. Targeting bridges that gap by binding the triggering player to the command execution, so the command runs with that player as its context. It requires the command block feature from the vanilla game and is published for Fabric on 1.21.11, with the Apache License 2.0 covering the source code.
Mapmakers and server developers often rely on proximity-based selectors such as @p, complex scoreboards or detection loops to approximate the same result. These approaches can be unreliable, inefficient and unnecessarily complex. The t selector gives a single, direct way to name the player who triggered a command, and the mod is also available for Paper servers.
Key features
Triggering player selector
The t selector resolves to the player whose redstone input activated the command block, so commands target that player only.
Replaces scoreboard workarounds
A single selector takes the place of proximity checks, scoreboard tags and detection loops used to identify the activating player.
Button activation example
A button wired to a command block can teleport only the player who pressed it, while @p would pick the nearest player and @a would affect everyone.
Command executor context
The command executor becomes the activating player, giving commands direct context about what caused them to run.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Use cases
Who it’s for: Map makers, adventure map creators and server developers who build redstone-triggered command block contraptions and want commands to act on the player who triggered them.
How it compares
Command Popup is a client-side only Fabric mod under the GNU Lesser General Public License v3.0 only, built for 1.21.1, so it changes nothing on the server. cmd command is client-side only and open source under the MIT License for 1.21 – 1.21.11. Keyboard/Mouse Input Detection works on client and server under the MIT License for 1.21.5 – 1.21.10, detecting input rather than redstone activation.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| Targeting | Fabric | 1.21.11 | Not published | 2026-03-26 |
| Command Popup | Fabric | 1.21.1 | Client-side only | 2025-04-21 |
| cmd command | Fabric | 1.21 – 1.21.11 | Client-side only | 2026-07-04 |
| Keyboard/Mouse Input Detection | Fabric | 1.21.5 – 1.21.10 | Client and server | 2026-01-07 |
Questions
Does Targeting require Fabric API?
Do players need to install Targeting?
Can Targeting run on a Paper server?
In the catalog
Targeting is one of 36,990 Utility mods on ModsFinder, and one of 25,772 Utility mods for Fabric. 19,862 mods support Minecraft 1.21.11.
More from AndrewCTF
Similar mods
What the author says
Targeting introduces a new selector, @t, designed to solve one of Minecraft’s long-standing limitations: reliably identifying the player who activated a redstone-triggered command. In vanilla behavior, command blocks triggered by buttons, pressure plates, or other redstone inputs lack direct context about who caused…
Official listing
- Modrinth page
- modrinth.com/mod/targeting
- Owner
- AndrewCTF
- Published
- 2026-03-26
- Updated on Modrinth
- 2026-03-26
- Facts verified
- 2026-10-15
