/tag
op 2EntitiesTags are free-form labels on an entity that nothing in the game reads but every selector can match. They are the standard way to remember "this is the one I mean" across ticks, and they survive reloads.
Command1 to fix
11
- Tag is required.
Press C to copy
All entities
@e
Who or what the command applies to
Tag is required.
Examples
- Mark an entity
/tag @e[type=zombie,limit=1] add boss - Select by tag later
/kill @e[tag=boss]
Common questions about /tag
›Do I need to create a tag before using it?
No. Unlike scoreboard objectives, tags exist as soon as you add one to an entity.
›How do I select entities by tag?
Use tag= in a selector: @e[tag=boss]. Prefix with ! to exclude, as in @e[tag=!boss].