Add, List, and Remove Entity Tags
The /tag command lets you attach custom text labels to players and other entities in Minecraft Java Edition. You can add new tags, remove existing ones, or check which tags a target currently holds.
Players and map makers use this command to group entities together or mark specific targets for later commands. To run it, you need level 2 operator permissions, which means cheats must be turned on in single-player worlds.
/tag <targets> add <name>/tag <targets> list/tag <targets> remove <name>/tag <targets> add <name>/tag <targets> list/tag <targets> remove <name>| Argument | Type | What it means |
|---|---|---|
<targets> | target selector | The entity or entities you want to modify or check, chosen using a player name, a UUID, or a target selector like @p, @a, @e, or @s. |
<name> | text | The word or piece of text that acts as the label for the tag you are adding or removing. |
/tag @s add builderAdds the tag 'builder' to yourself, the entity running the command.
/tag @p remove seekerRemoves the tag 'seeker' from the nearest player.
/tag @a listLists every tag currently attached to all players in the world.
/tag Steve add vipGives the tag 'vip' specifically to the player named Steve.
/tag @e add markedAttaches the tag 'marked' to every loaded entity in the game.
/tag Alex listDisplays all tags currently held by the player named Alex.
/tag 069a79f4-44e9-4726-a5be-fca90e38aaf5 remove guestRemoves the 'guest' tag from a specific target identified by its UUID.
Measured from the game files of every Java release from 1.13 to 26.3.
Minecraft Bedrock Edition also includes the /tag command with a nearly identical structure. In Bedrock Edition, the syntax is written as /tag <entity: targets> <action: TagChangeAction> <name: TagValues> for changing tags, and /tag <entity: targets> list for viewing them.
You need permission level 2, which means you must be an operator on a server or have cheats turned on in your single-player world.
The /tag command has been available since at least Java Edition 1.13 and remains in the game through version 26.3.
You can use it on any entity by using a UUID or an entity target selector like @e or @s in the targets argument.
/bossbar/data/execute/function/random/return/schedule/scoreboard/team/trigger