tutorial:recipes
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tutorial:recipes [2024/06/17 12:56] – solidblock | tutorial:recipes [2026/03/01 23:38] (current) – Multiversion recipe examples cassiancc | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| 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 '' |
| - | Recipe files are conventionally named after their output, but they can have any name. Here's an example recipe for the '' | + | 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/data/tutorial/ | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | "WR ", | ||
| + | " | ||
| + | ], | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== 1.21 through 1.21.1 ===== | ||
| + | |||
| + | Recipes are stored in '' | ||
| <code javascript resources/ | <code javascript resources/ | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | "WR ", | ||
| + | " | ||
| + | ], | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== 1.20 through 1.20.6 ===== | ||
| + | |||
| + | Recipes are stored in '' | ||
| + | |||
| + | <code javascript resources/ | ||
| { | { | ||
| " | " | ||
| Line 32: | Line 86: | ||
| } | } | ||
| </ | </ | ||
| + | |||
| + | |||
| 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**: | * **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:// | ||
| - | Recipes can also be generated dynamically on runtime, for more information see [[tutorial:dynamic_recipe_generation|here]]. | + | For more information about the format of basic recipes, see [[https:// |
| + | |||
| + | Recipes can also be generated dynamically on runtime, for more information see [[dynamic_recipe_generation|Dynamic recipe generation tutorial]]. | ||
| ===== More on the recipe type ===== | ===== More on the recipe type ===== | ||
| - | The '' | + | The '' |
| - | You can even create | + | * [[recipe_types_introduction|Create |
| + | * [[datagen_recipe|Generate recipes with data generator]] | ||
tutorial/recipes.1718628963.txt.gz · Last modified: 2024/06/17 12:56 by solidblock