Skip to main content

/tag

Adds, removes, or lists tags on entities. Tags are simple string labels used for entity selection and organization.

Category
Data
Permission Level
Game Master
Version Added
1.13

Syntax

/tag <targets> <add|list|remove> <name>

Parameters

NameTypeRequiredDescription
targetsentityRequiredThe entity or entities to modify.
actionliteralRequiredadd, list, or remove.
namestringRequiredThe tag name to add or remove. Not needed for list.

Examples

/tag @s add vip

Adds the tag "vip" to yourself.

/tag @e[type=villager] add protected

Tags all villagers with "protected".

/tag @p list

Lists all tags on the nearest player.

Common Mistakes

Notes

Tags are stored as a list in the entity's NBT data. They can be used in selectors with tag= or tag=!. An entity can have multiple tags. Tags are useful for grouping entities for targeting.

Related Commands

Need a Minecraft server?

Try these commands on Astroworld or host your own server.

Try Astroworld Hosting