tutorial:recipes
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tutorial:recipes [2021/02/10 10:24] – Added a link to other wiki page magistermaks | tutorial:recipes [2025/04/01 08:18] (current) – [More on the recipe type] update link solidblock | ||
|---|---|---|---|
| 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 '' |
| - | 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 '' |
| + | |||
| + | <code javascript resources/ | ||
| { | { | ||
| " | " | ||
| Line 25: | Line 27: | ||
| }, | }, | ||
| " | " | ||
| - | "item": " | + | "id": " |
| " | " | ||
| } | } | ||
| Line 32: | Line 34: | ||
| 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:// | ||
| - | 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 | ||
| + | |||
| + | ===== More on the recipe type ===== | ||
| + | The '' | ||
| - | ===== Adding a custom crafting | + | * [[recipe_types_introduction|Create your own recipe type]] |
| - | The '' | + | * [[datagen_recipe|Generate recipes with data generator]] |
tutorial/recipes.1612952695.txt.gz · Last modified: 2021/02/10 10:24 by magistermaks