Tags let you define custom element groups for other functionalities like Advancements or Recipes.
-
Create a folder named
tagsin your Datapack namespaceDirectory<datapack>
- pack.mcmeta
- pack.png
Directorydata
Directoryminecraft
- …
Directory<namespace>
Directorytags
- …
-
Tags can affect completely different areas of Minecraft, so to keep things organized and isolated, you’ll need to create a subfolder for the context you want your tag to be aviable in
| Folder | Context | | ----------------------------- | ----------------------------------- | |
banner_pattern| Banner patterns | |biome| Biome specific spawnable structures | |block| Advancements and world generation | |damage_type| Damage types | |dialog| Dialogs | |enchantment| Enchantment book drops | |entity_type| Target selectors | |flat_level_generator_preset| Flat level generator presets | |fluid| Fluids | |function| Functions | |game_event| Game events | |instrument| Instrument | |item| Recipes and filtering | |painting_variant| Painting variants | |point_of_interest| Point of interests | |structure| Structures | |world_presets| World presents | -
Create a
<tag>.jsonfile for your tag and list the element Identifiersoak.json {"values": [// element identifiers"minecraft:oak_log","minecraft:oak_planks"]} -
Done