Skip to content

Datapack tag
New

Datapack registry tagDatapack registry tags

Tags let you define custom element groups for other functionalities like Advancements or Recipes.

  1. Create a folder named tags in your Datapack namespace

    • Directory<datapack>
      • pack.mcmeta
      • pack.png
      • Directorydata
        • Directoryminecraft
        • Directory<namespace>
          • Directorytags
  2. 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

    FolderContext
    banner_patternBanner patterns
    biomeBiome specific spawnable structures
    blockAdvancements and world generation
    damage_typeDamage types
    dialogDialogs
    enchantmentEnchantment book drops
    entity_typeTarget selectors
    flat_level_generator_presetFlat level generator presets
    fluidFluids
    functionFunctions
    game_eventGame events
    instrumentInstrument
    itemRecipes and filtering
    painting_variantPainting variants
    point_of_interestPoint of interests
    structureStructures
    world_presetsWorld presents
  3. Create a <tag>.json file for your tag and list the element Identifiers

    oak.json
    {
    "values": [
    // element identifiers
    "minecraft:oak_log",
    "minecraft:oak_planks",
    ]
    }
  4. Done