Commands/tag

Controls scoreboard tags on individual entities. $$, the number of tags owned by an entity cannot exceed 1024.

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

Syntax

 * Java Edition
 * Adds a tag to the targets.
 * Lists all tags on the targets.
 * Removes a tag from the targets.
 * Lists all tags on the targets.
 * Removes a tag from the targets.
 * Removes a tag from the targets.


 * Bedrock Edition
 * Adds a tag to the targets.
 * Removes a tag from the targets.
 * Lists all tags on the targets.
 * Removes a tag from the targets.
 * Lists all tags on the targets.
 * Lists all tags on the targets.

Arguments

 * $$, must be either a target selector, a player name, or  for all score holders.
 * Specifies the command's target.
 * Specifies the command's target.


 * $$, it must be a single word (no spaces) or a quoted string.
 * Specifies the name of the tag to be added into or removed from the targets.
 * $$, valid characters are uppercase and lowercase letters, numbers, hyphen, underscore, plus sign and period. $$, it can include any characters.