
Calculator
Target Selector Builder
Build a target selector with every option the game has and see what each part picks, in the game's own words.
Tags, separated by commas; ! in front means without it.
More options
What it picks
@a- Every player
Selector
@a2 characters
For Java Edition 26.3. Every form this tool writes was run through the game's own command parser.
| @p | The nearest player | 1 |
| @a | Every player | All |
| @r | A random player | 1 |
| @s | The entity running the command | 1 |
| @e | Every entity | All |
| @n | The nearest entity | 1 |
| type | Entities of type |
| name | Entity name |
| tag | Entities with tag |
| team | Entities on team |
| distance | Distance to entity |
| level | Experience level |
| x | x position |
| y | y position |
| z | z position |
| dx | Entities between x and x + dx |
| dy | Entities between y and y + dy |
| dz | Entities between z and z + dz |
| x_rotation | Entity's x rotation |
| y_rotation | Entity's y rotation |
| gamemode | Players with game mode |
| scores | Entities with scores |
| limit | Maximum number of entities to return |
| sort | Sort the entities |
| nbt | Entities with NBT |
| predicate | Custom predicate |
| advancements | Players with advancements |
| Ranges | Written min..max; either end can be left out, like ..10 or 5.. |
| Not | ! in front of a value means the opposite, like type=!player or tag=!afk |
| limit and sort | Not with @s, which is always the one entity running the command |
| type | Not needed with @a, @p and @r, which only pick players |
| Players only | Commands like /tellraw and /title refuse @e and @n unless they say type=player, a game mode or a level |



