Commands/tag

Controls scoreboard tags on individual entities.

Java Edition note: this is distinct from entity type tags, which are applied to entity types and cannot be changed by commands.


 * Syntax




 * Arguments


 * targets
 * A target selector.


 * name
 * Specifies the name of the tag to be added into or removed from the targets.
 * Note: There's a 16-character limit for the names applicable through the command, and certain characters, such as, are prohibited.


 * Result


 * Fails if the arguments are not specified correctly.


 * On success:
 * — Adds a tag to the targets.
 * — Lists all tags on the targets.
 * — Removes a tag from the targets.