Manage Tags on Entities in Bedrock Edition
The /tag command in Minecraft Bedrock Edition lets you manage custom tags stored in entities. With this command, you can add a new tag to a target, remove an existing tag, or view a list of all tags that an entity currently has.
Players and map makers use tags to label specific mobs or players so they can target them later with other commands. You need the Game Directors permission level and cheats enabled in your world to run this command.
/tag <entity: targets> <action: TagChangeAction> <name: TagValues>Add or remove tag
/tag <entity: targets> listList tags
| Argument | Type | What it means |
|---|---|---|
action | TagChangeAction | Change the `tags` on an `entity` using the `TagChangeAction` Enums. |
entity | targets | The command's target. |
name | TagValues | The `tag` name. |
/tag @s add vipAdds a tag named vip to the player running the command.
/tag @p remove seekerRemoves the tag named seeker from the nearest player.
/tag @a listDisplays a list of all tags currently stored on every player in the world.
/tag @r add winnerAssigns the winner tag to one random player online.
/tag @e[type=zombie] add boss_minionAdds the boss_minion tag to all loaded zombie entities.
/tag Steve listShows every tag currently assigned to the player named Steve.
/tag @e[type=villager,r=10] remove shopkeeperRemoves the shopkeeper tag from any villager within a 10-block radius.
/tag @a[tag=ready] add in_arenaGives the in_arena tag to all players who already have the ready tag.
In Minecraft Java Edition, the command works the same way and uses the matching syntax forms /tag <targets> add <name>, /tag <targets> remove <name>, and /tag <targets> list.
The /tag command manages custom text labels stored in entities, allowing you to add, remove, or list tags on players and mobs.
You can view all tags on a target by running /tag <entity: targets> list in the chat window.
You must have the Game Directors permission level and have cheats enabled in the world to use this command.
/dialogue/execute/function/packstack/reload/reloadpacketlimitconfig/schedule/scoreboard/scriptevent/sendshowstoreoffer/testfor/testforblock/testforblocks/toggledownfall