top of page

Adding Tags to Custom Crafting Recipes

Updated: Jan 23, 2023

Don't know how to make custom recipes? See: How to make Shaped Crafting Recipes (1.19+)

Here's a quick tutorial on adding Item and Block Tags to your recipes.


Tags are what Minecraft uses to group together items and blocks of the same type.

For example, #slabs tells Minecraft what blocks count as Slabs.


In some cases, tags will be inside of other tags. An example of this is the #planks tag (which defines all planks in the game) also being in the #mineable/axe tag (which defines which blocks are mined faster using an axe).


This recipe guide will allow you to make a Wooden Pickaxe using any type of leaf block as sticks, and any type of wool block as the wood.


To be honest, this recipe is purely for learning purposes. There's no reason why you'd want to make a wooden pickaxe out of leaf and wool blocks, of all things.


To add a tag to your recipe, change the "item" text of your key to say "tag" instead:

{
    "type": "minecraft:crafting_shaped",
    "pattern": [
        "LLL"
        " S "
        " S "
    ],
    "key": {
        "L": {
            "tag": "minecraft:stone"
        },
        "S": {
            "tag": "minecraft:stone"
        }
    },
    "result": {
        "item": "minecraft:stone",
        "count": 1    
    }
}

This will tell Minecraft that this recipe now requires a tag group as the ingredient to complete the recipe.


Now, there are many different tag groups in Minecraft. Here's a list of them.

The ones we want to use are wool (referring to all wool blocks, not carpets) and leaves (referring to all leaf blocks in the game), so we'll replace the "stone" with these two tags.


You don't need to add the "#" part of the tag in the recipe. ("wool" instead of "#wool")

Don't forget to change the result to the wooden pickaxe!

{
    "type": "minecraft:crafting_shaped",
    "pattern": [
        "LLL"
        " S "
        " S "
    ],
    "key": {
        "L": {
            "tag": "minecraft:wool"
        },
        "S": {
            "tag": "minecraft:leaves"
        }
    },
    "result": {
        "item": "minecraft:wooden_pickaxe",
        "count": 1    
    }
}

(Note: the "result" area cannot have a tag as the output. It has to be a specific item.)


This is what our recipe should look like:

ree
Imagine that this gif includes all wool types and leaf types.

Again, we can change this to be anything! It doesn't have to be a pickaxe, or even be shaped like a pickaxe.

Most players would just expect a recipe of this shape to be a pickaxe.


The best part of this is that you can still add recipe groups to this if you'd like.


This same process can be applied to any recipe type, not just Shaped and Shapeless Crafting. As long as you change the item ingredient to the correct tag, you'll be fine.

Don't want to do the work? Download the recipe for free!



Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating

Created by Professional Loser, 2023. This site is unaffiliated with Minecraft™ or Mojang.

bottom of page