🏷️
Advanced
/tag
Attach invisible labels to entities to target them later.
At a glance
Syntax
Syntax
/tag <target> add <name>commandtargetcoordsvaluerequiredoptional
See it
What it does
/
Command executed
Anatomy
Every part, explained
- 1
CommandRequired/tagAdds or removes entity tags.
- 2
TargetRequired<target>Which entity gets the tag.
- 3
ActionRequiredaddUse add, remove, or list.
- 4
Tag nameRequired<name>The custom tag to apply.
Your turn
Try it yourself
Playground
4 tokens · press Enter to run
Copy & paste
Examples
/tag @s add winnerTag yourself as winner.
/tag @e[type=zombie] add bossTag all zombies as boss.
/tag @s remove winnerRemove the winner tag.
Avoid these
Common mistakes
✕
/tag add winner @s✓
/tag @s add winnerThe target comes before the action.
✕
/tag @s winner✓
/tag @s add winnerYou must say add or remove.
Keep going