Minecraft:Commands/tag
More actions
Template:For Template:Infobox command
Controls Minecraft:scoreboard tags on individual Minecraft:entities. Template:IN, the number of tags owned by an entity cannot exceed 1024.
Template:El note: This is distinct from entity type tags, which are applied to entity types and can't be changed by commands.
Syntax
- Java Edition
tag <targets> add <name>- Adds a tag to the targets.
tag <targets> remove <name>- Removes a tag from the targets.
tag <targets> list- Lists all tags on the targets.
- Bedrock Edition
tag <entity: targets> add <name: string>- Adds a tag to the targets.
tag <entity: targets> remove <name: string>- Removes a tag from the targets.
tag <entity: targets> list- Lists all tags on the targets.
Arguments
- Specifies the command's target.
- Template:IN, Template:Arg desc
- Template:IN, must be either a target selector, a player name, or
*for all score holders.
- Specifies the name of the tag to be added into or removed from the targets.
- Template:Arg desc
Result
Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table
Output
Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table
History
Java Edition
Bedrock Edition
See also
External links
Minecraft:de:Befehl/tag Minecraft:ja:コマンド/tag Minecraft:pt:Comandos/tag Minecraft:ru:Команды консоли/tag Minecraft:zh:命令/tag