Minecraft:Tag (Bedrock Edition)
More actions
|
For the {{{Description}}} of the same name, see [[{{{Destination}}}]]. |
Tags in Minecraft:behavior packs allow players to group different game elements together. Vanilla or custom Minecraft:blocks, Minecraft:items, and Minecraft:biomes can have vanilla or custom tags, which may be used by other JSON files, commands, Molang, or scripting.
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
- 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 Minecraft:scripting.
List of vanilla tags
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.