โ›๏ธ Episode 2 ยท Beginner ยท Recipes

Craft Something New
Episode 2: Your First Recipe

A recipe is one JSON file that tells Minecraft what items combine into what. In this episode you write your first recipe and craft it in-game.

๐Ÿ‘ถ Ages 10+ โฑ๏ธ ~45 mins โ›๏ธ Minecraft โœ“ Free workshop
๐Ÿ“œ Recipe JSON ๐Ÿงฉ pattern & key ๐ŸŽ result ๐Ÿงช Craft it
โญ
0 XP
Level 1
๐Ÿ”ฅ0
Your Progress 0 / 4 steps
Build it in our Datapack Studio too: lay out the crafting recipe, write your function and pack files, then export a real datapack zip in the browser with no install. Open the Minecraft Mod Studio →
๐Ÿ”ฅ
Ember says: a recipe is a small JSON file. Three parts: the type, the shape, and the result. Learn those three and you can make anything craftable.
1
๐Ÿ“œ
The Recipe File
Where recipes live
Active
๐ŸŽฏ
Goal for this step

Put a recipe file in the right place.

  • 1Recipes go in data/<namespace>/recipe/ (singular recipe in 1.21 and newer).
  • 2The namespace is a name you choose for your pack, lowercase like mypack.
  • 3Each recipe is one .json file.
โœ๏ธ
Fill in the Blanks
+15 XP
In 1.21+, recipes go in data/<namespace>// (singular).
๐Ÿง 
Knowledge Check
+15 XP
In 1.21 and newer, what is the recipe folder called?
Arecipe (singular)
Brecipes (plural)
Ccrafting
2
๐Ÿงฉ
Shape and Key
The pattern of a recipe
Locked
๐ŸŽฏ
Goal for this step

Write a shaped recipe.

  • 1pattern is the shape on the 3x3 grid, one string per row.
  • 2key says what each letter means.
  • 3A space in the pattern means an empty slot.
{
  "type": "minecraft:crafting_shaped",
  "pattern": ["PPP", " S ", " S "],
  "key": {
    "P": { "item": "minecraft:oak_planks" },
    "S": { "item": "minecraft:stick" }
  },
  "result": { "item": "minecraft:wooden_sword", "count": 1 }
}
โœ๏ธ
Fill in the Blanks
+15 XP
The shows the shape, and the key says what each letter means.
๐Ÿง 
Knowledge Check
+15 XP
What does a space in the pattern mean?
AAn empty slot
BA diamond
CA random item
3
๐ŸŽ
The Result
What comes out
Locked
๐ŸŽฏ
Goal for this step

Set what the recipe makes.

  • 1result is the item you get, using the full id like minecraft:torch.
  • 2You can set a count for how many come out.
  • 3Item ids must match the game exactly, including the minecraft: part.
โœ๏ธ
Fill in the Blanks
+15 XP
An item id needs its full name, like :diamond.
๐Ÿง 
Knowledge Check
+15 XP
What is a valid item id?
Aminecraft:diamond
Bdiamond
CDiamondItem
4
๐Ÿงช
Craft It
See it in the table
Locked
๐ŸŽฏ
Goal for this step

Load your recipe and craft it.

  • 1Type /reload, then open a crafting table.
  • 2Lay out the ingredients exactly like your pattern.
  • 3Your recipe should appear. If not, check the folder name and the JSON commas.
โœ๏ธ
Fill in the Blanks
+15 XP
After adding a recipe, type / to load it.
๐Ÿง 
Knowledge Check
+15 XP
Your recipe does not appear. First thing to check?
AThe folder path and the JSON commas
BThe weather
CYour inventory
๐ŸŽ‰โœจ๐Ÿ†๐ŸŽ‰
You Made a Recipe!
You can make Minecraft craftable things. Next you learn how the data folder and namespaces keep everything tidy.
0
Total XP
1
Level
0
Best Streak
0%
Accuracy
Next: Episode 3: The data Folder โ†’