tutorial:recipes
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| tutorial:recipes [2019/07/26 14:12] – created fudge | tutorial:recipes [2026/03/01 23:38] (current) – Multiversion recipe examples cassiancc | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Crafting recipes ====== | ====== Crafting recipes ====== | ||
| ===== Adding a basic crafting recipe ===== | ===== Adding a basic crafting recipe ===== | ||
| - | Make sure you [tutorial: | + | Make sure you [[tutorial: |
| | | ||
| So far, our item is obtainable through the creative menu or commands. | So far, our item is obtainable through the creative menu or commands. | ||
| To make it available to survival players, we'll add a crafting recipe for the item. | To make it available to survival players, we'll add a crafting recipe for the item. | ||
| - | Create a file named '' | + | Create a file named '' |
| - | Here's an example recipe for the '' | + | |
| - | <code javascript resources/ | + | Recipe files are conventionally named after their output, but they can have any name. Here's an example recipe for the '' |
| + | |||
| + | ===== 1.21.2 and above ===== | ||
| + | |||
| + | Recipes are stored in '' | ||
| + | |||
| + | <code javascript resources/ | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | "WR ", | ||
| + | " | ||
| + | ], | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== 1.21 through 1.21.1 ===== | ||
| + | |||
| + | Recipes are stored in '' | ||
| + | |||
| + | <code javascript resources/ | ||
| { | { | ||
| " | " | ||
| Line 25: | Line 54: | ||
| }, | }, | ||
| " | " | ||
| - | "item": " | + | "id": " |
| " | " | ||
| } | } | ||
| } | } | ||
| </ | </ | ||
| + | |||
| + | ===== 1.20 through 1.20.6 ===== | ||
| + | |||
| + | Recipes are stored in '' | ||
| + | |||
| + | <code javascript resources/ | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | "WR ", | ||
| + | " | ||
| + | ], | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | |||
| Breakdown of the recipe: | Breakdown of the recipe: | ||
| * **type**: This is a shaped crafting recipe. | * **type**: This is a shaped crafting recipe. | ||
| - | * **result**: This is a crafting recipe for 4 '' | + | * **result**: This is a crafting recipe for 4 '' |
| - | * **pattern**: | + | * **pattern**: |
| - | * **key**: | + | * **key**: |
| + | * **category**: | ||
| In total, the crafting recipe would look like this: | In total, the crafting recipe would look like this: | ||
| - | ^ | + | |
| + | ^ | ||
| |Any Log|Any Log|Any Log| | |Any Log|Any Log|Any Log| | ||
| |Any Log|Redstone|Nothing| | |Any Log|Redstone|Nothing| | ||
| |Any Log|Any Log|Any Log| | |Any Log|Any Log|Any Log| | ||
| - | For more information about the format of basic recipes, see [[https:// | ||
| - | ===== Adding a custom crafting | + | For more information about the format of basic recipes, see [[https:// |
| - | The '' | + | |
| + | Recipes can also be generated dynamically on runtime, for more information see [[dynamic_recipe_generation|Dynamic recipe generation tutorial]]. | ||
| + | |||
| + | ===== More on the recipe | ||
| + | The '' | ||
| + | |||
| + | * [[recipe_types_introduction|Create your own recipe type]] | ||
| + | * [[datagen_recipe|Generate recipes with data generator]] | ||
tutorial/recipes.1564150371.txt.gz · Last modified: 2019/07/26 14:12 by fudge