Gamepedia was upgraded to MediaWiki version 1.31 on Wednesday November 14th. To learn more about the upgrade and its effects click here.

Commands/tag

From Minecraft Wiki
Jump to: navigation, search
Java Edition.png
tag
Restrictions

Operator

First introduced

1.13 (17w45a)

Controls entity tags.

Syntax
tag <targets> add <name>
tag <targets> list
tag <targets> remove <name>
Arguments
targets
A target selector.
name
Specifies the name of the tag to be added into or removed from the targets.
Result
Fails if the arguments are not specified correctly.
On success:
  • add — Adds a tag to the targets.
  • list — Lists all tags on the targets.
  • remove — Removes a tag from the targets.