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 can't 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

 * Specifies the command's target.
 * $$, must be either a target selector, a player name, or  for all score holders.
 * $$, 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.