Tools / Minecraft
Minecraft Target Selector Builder
Pick a base selector and add the arguments you need - type, distance, limit, sort, name, tag, gamemode, level, coordinates - to get a valid @e[...] selector you can drop into /execute, /tp, /kill, or any command. Runs in your browser.
@e
How to use it
- Pick the base:
@pnearest player,@aall players,@rrandom player,@eall entities,@sthe command's executor. - Add filters - distances are written as a range (
..10,5.., or5..10) from the min/max you enter. - Copy the selector into a command, e.g.
/execute as <selector> run ...or/kill <selector>.
Tip: @e matches all entities including items and armor stands - set type to narrow it. For "the nearest one of a type", use limit=1, sort=nearest. Syntax is Java Edition.
Writing command-block contraptions on a server?
Selectors are the backbone of redstone-and-command machines on multiplayer servers. The tool is free and needs no account; if you need somewhere to host the world, Supercraft is one option among many.