From Minecraft Wiki
Jump to: navigation, search

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.


  • Java Edition
tag <targets> add <name>
tag <targets> list
tag <targets> remove <name>
  • Bedrock Edition
tag <entity: targets> <add|remove> <name: string>
tag <entity: targets> list


<targets> (BE: entity: targets)

Specifies the target(s). Must be a player name, a target selector or a UUID[Java Edition only].
In Bedrock Edition, * may be used in place of entity to represent all entities tracked by the scoreboard, provided the entities exist and are online.
Permits entities other than players.

<name> (BE: name: 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 is possible to have tags with as many as 32489 characters through use of command block minecarts or function files. Modified servers and external editors can bypass the allowed characters and/or character limit (up to 32767 maximum), though these tags would not be possible to edit in vanilla.


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.


Java Edition
1.1317w45aAdded /tag.
Bedrock Edition
1.9beta /tag.

See also[edit]