Datapack recipe
Recipes let you define how items are crafted.
-
Create a folder named
recipein you Datapack namespaceDirectory<datapack>
- pack.mcmeta
- pack.png
Directorydata
Directoryminecraft
- …
Directory<namespace>
Directoryrecipe
- …
-
Create a
<recipe>.jsonfile for your recipe -
Choose how you want to craft your item
Type Name Description minecraft:blastingBlasting Items cooked in a Blast furnace minecraft:campfire_cookingCampfire cooking Items cooked on a Campfire minecraft:crafting_decorated_potDecorated pot Decorated pot recipe minecraft:crafting_shapedCrafting shaped Items and their placement minecraft:crafting_shapelessCrafting shapeless Only items recipe minecraft:crafting_special_*Crafting special Special crafting methods minecraft:crafting_transmuteCrafting transmute Items trasmuted into other items minecraft:smeltingSmelting Items cooked in a Furnace minecraft:smithing_transformSmithing Items crafted in a Smithing table minecraft:smithing_trimSmithing trim Items trimmed in a Smithing table minecraft:smokingSmoking Items cooked in a Smoker minecraft:stonecuttingStonecutting Items cut in a Stonecutter -
Done
blasting
Section titled “blasting”campfire_cooking
Section titled “campfire_cooking”{ "type": "minecraft:campfire_cooking", "category": "food", // Optional. Defaults to `misc`. Category inside the recipe book "cookingtime": 600, // Optional. Default to 100. Time in milliseconds the item has to cook "experience": 0.35, // Experience given after cooking "ingredient": "minecraft:potato", // Item to cook "result": { "id": "minecraft:baked_potato" // Result item after cooking }}crafting_decorated_pot
Section titled “crafting_decorated_pot”crafting_shaped
Section titled “crafting_shaped”{ "type": "minecraft:crafting_shaped", "category": "misc", // Optional. Defaults to `misc`. Category inside the recipe book "key": { // Key-value pairs to easily describe items inside the `pattern` field "A": "minecraft:milk_bucket", "B": "minecraft:sugar", "C": "minecraft:wheat", "E": "#minecraft:eggs" }, "pattern": [ // Recipe pattern "AAA", "BEB", "CCC" ], "result": { "count": 1, // Optional. Defaults to 1. "id": "minecraft:cake" }}crafting_shapeless
Section titled “crafting_shapeless”{ "type": "minecraft:crafting_shapeless", "category": "equipment", // Optional. Defaults to `misc`. Category inside the recipe book "ingredients": [ "minecraft:iron_ingot", "minecraft:flint" ], "result": { "count": 1, // Optional. Defaults to 1. "id": "minecraft:flint_and_steel" }}