
/tag
Adds, removes or lists entity tags used by selectors. Its basic form is /tag <targets> add <name>; it has 3 syntax forms and 2 arguments. Permission: Cheats / op 2.
/tag syntax
Game dataEvery form the game accepts. Words in <angle brackets> are arguments you fill in; everything else is typed as is.
/tag <targets> add <name>/tag <targets> list/tag <targets> remove <name>/tag examples
Ready-to-paste examples (cheats on). @s is you, @p the nearest player, @a everyone, @e every entity.
/tag @s add builder- Adds the tag "builder" to you, so selectors like @a[tag=builder] can find you.
/tag @s list- Lists your tags.
/tag arguments
What each argument expects, with the limits the game enforces.
| Argument | Expects | Limits |
|---|---|---|
<targets> | Target selector or player name (@s, @p, @a, @e, @r) | one or more |
<name> | Text | — |
Other commands
Data: Minecraft Java Edition 26.3 game files. How we source this
Adds, removes or lists entity tags used by selectors. It has 3 syntax forms and can be run by: Cheats / op 2.
See Also
Help us maintain accuracy! If you notice incorrect stats, missing data, or any issues, your feedback directly improves the quality of our data for the entire community.
/tag FAQ (Java 26.3)
What does /tag do in Minecraft?
Adds, removes or lists entity tags used by selectors.
What is the syntax of /tag?
The basic form is /tag <targets> add <name>. All forms are listed above.
What is an example of /tag?
/tag @s add builder — Adds the tag "builder" to you, so selectors like @a[tag=builder] can find you.
Do you need cheats for /tag?
Yes: Cheats / op 2. In singleplayer turn on Allow Cheats (or open to LAN with cheats).