Minecraft:Tag (Bedrock Edition)
More actions
|
For the {{{Description}}} of the same name, see [[{{{Destination}}}]]. |
Tags (also called registry tags) in Minecraft:behavior packs allow players to group different game elements together.
Usage
Tags are defined in the block's, item's, and biome's behavior definitions, usually as part of the minecraft:tags component. Custom tags do not need a registry to be validated.
JSON format
- Template:Nbt The root object.
- Template:Nbt: The type of definition. Must be a Template:Cd, Template:Cd, or Template:Cd.
- Template:Nbt
- Template:Nbt (Biomes and items only)
- Template:Nbt: List of tags.
- Template:Nbt: A tag name.
- Template:Nbt: List of tags.
- Template:Nbt: (Blocks only) Template:Cd is replaced by the name of the tag. Object must be empty.
- Template:Nbt (Biomes and items only)
- Template:Nbt
- Template:Nbt: The type of definition. Must be a Template:Cd, Template:Cd, or Template:Cd.
A block, item, or biome may have multiple tags. Combinations of custom and vanilla tags are authorized.
Tags can be used in command queries and behavior pack Minecraft:molang and scripting.
List of tag types
This section lists the tag types that are used by the game to affect its behavior in various ways, as well as those that are populated by default, even if the game does not use them to control some behavior.