Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Commands/tag

From SAS Gaming Wiki
Revision as of 21:34, 29 November 2025 by imported>RedX
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:For Template:Infobox command

Controls Minecraft:scoreboard tags on individual Minecraft:entities. Template:IN, the number of tags owned by an entity cannot exceed 1024.

Template:El note: This is distinct from entity type tags, which are applied to entity types and can't be changed by commands.

Syntax

  • Java Edition
tag <targets> add <name>
Adds a tag to the targets.
tag <targets> remove <name>
Removes a tag from the targets.
tag <targets> list
Lists all tags on the targets.
  • Bedrock Edition
tag <entity: targets> add <name: string>
Adds a tag to the targets.
tag <entity: targets> remove <name: string>
Removes a tag from the targets.
tag <entity: targets> list
Lists all tags on the targets.

Arguments

Template:Argument

Specifies the command's target.
Template:IN, Template:Arg desc
Template:IN, must be either a target selector, a player name, or * for all score holders.

Template:Argument

Specifies the name of the tag to be added into or removed from the targets.
Template:Arg desc

Result

Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table

Output

Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table

History

Java Edition

Template:HistoryTable

Bedrock Edition

Template:HistoryTable

See also

External links

Navigation

Template:Navbox commands

Minecraft:de:Befehl/tag Minecraft:ja:コマンド/tag Minecraft:pt:Comandos/tag Minecraft:ru:Команды консоли/tag Minecraft:zh:命令/tag