Commands/tag

From Minecraft Wiki
Jump to: navigation, search
Java Edition.png
Grass Block.svg
This page contains content on features that may be included in the next update.
These features have appeared in development versions, but the full update containing these features has not been released yet.
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.
Promotional Content