/tag Command in Minecraft Bedrock Edition

Manage Tags on Entities in Bedrock Edition

Bedrock EditionLogic & ScoreboardPermission: Game DirectorsCheats: YesJava version →

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.

Syntax (2 forms)

  1. /tag <entity: targets> <action: TagChangeAction> <name: TagValues>

    Add or remove tag

  2. /tag <entity: targets> list

    List tags

Arguments

ArgumentTypeWhat it means
actionTagChangeActionChange the `tags` on an `entity` using the `TagChangeAction` Enums.
entitytargetsThe command's target.
nameTagValuesThe `tag` name.

Examples

Tips

Common mistakes

Bedrock vs Java

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.

See /tag in Java Edition →

FAQ

What does the /tag command do in Minecraft Bedrock?

The /tag command manages custom text labels stored in entities, allowing you to add, remove, or list tags on players and mobs.

How do I see what tags an entity has?

You can view all tags on a target by running /tag <entity: targets> list in the chat window.

Who has permission to use the /tag command?

You must have the Game Directors permission level and have cheats enabled in the world to use this command.

Related commands

/dialogue/execute/function/packstack/reload/reloadpacketlimitconfig/schedule/scoreboard/scriptevent/sendshowstoreoffer/testfor/testforblock/testforblocks/toggledownfall