A data pack with its own recipe
Data packs
Custom crafting, smelting and smithing recipesLearn more
Create a custom crafting, cooking, stonecutting, or smithing recipe as a data pack for Minecraft 1.20–26.3. Place it in your world's datapacks folder and run /reload.
My Game select version
Save your preferences in this browser and apply them to supported tools. Settings in a shared link take priority. Wiki version labels are not affected.
Result
Example · Archive · leather-datapack.zip
{
"type": "minecraft:crafting_shaped",
"category": "misc",
"key": {
"A": "minecraft:rotten_flesh"
},
"pattern": [
"AAA",
"A "
],
"result": {
"id": "minecraft:leather"
}
}
- File in archive
- data/custom/recipe/leather.json
- Game versions
- 1.21.9 — 26.3
How to use the result
- Download the archive
No unpacking is required: the game reads the data pack directly from zip.
- Place in the world folder
On the server — world/datapacks, in single-player — saves/<world>/datapacks.
- Reload
By command /reload or by restarting. Check that the datapack is loaded: /datapack list.
- Crafting
The recipe works immediately in the crafting table for all players. It does not appear in the recipe book — open it with the command /recipe give @a custom:leather.
What to know
- The version is chosen for a reason. Recipe entry changed three times: result id instead of item — from 1.20.5, the folder recipe instead of recipes — from 1.21, ingredients by line — from 1.21.2. A recipe from another entry is silently skipped without chat error.
- One archive for all versions. A data pack declares the entire range (supported_formats or min_format/max_format), and the game will not mark it as incompatible on the next update.
- A vanilla recipe cannot be replaced that way. A data pack adds a recipe custom:leather next to game files. To override a game file, place it along the file's path: data/minecraft/recipe/<name>.json.
- Furnaces count in ticks. Cooking times use game ticks: 20 ticks equal one second. Defaults are 200 for a furnace, 100 for a smoker or blast furnace, and 600 for a campfire. Choose the station appropriate to your recipe.
- How it's structured — items must be arranged as in the cells, but the pattern can be shifted on the crafting table. "In any order" — any layout of the same items is valid.
Frequently asked questions
How to add your crafting recipe to Minecraft?
Datapack: the recipe file is stored in the archive, and the game reads it from the datapacks folder in the world. No mods or plugins — works on both servers and single-player.
How to make your own recipe for a furnace or stonecutter?
Choose a recipe type: furnace, blast furnace, smoker, campfire, stonecutter, or smithing table. Set the ingredients and output; cooking recipes also include time and experience.
Why doesn't a recipe from a data pack work?
Datapacks are often built for a different game version or the file is located in the recipes folder instead of recipe. Check /datapack list: the datapack must be enabled.
