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 [2022/12/16 00:25] (current) – 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 '' | + | Recipe files are conventionally named after their output, but they can have any name. |
- | <code javascript resources/ | + | Here's an example recipe for the '' |
+ | <code javascript resources/ | ||
{ | { | ||
" | " | ||
Line 25: | Line 26: | ||
}, | }, | ||
" | " | ||
- | " | + | " |
" | " | ||
} | } | ||
Line 32: | Line 33: | ||
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| | ||
Line 44: | Line 46: | ||
Recipes can also be generated dynamically on runtime, for more information see [[tutorial: | Recipes can also be generated dynamically on runtime, for more information see [[tutorial: | ||
- | ===== Adding a custom crafting | + | ===== More on the recipe |
- | The '' | + | The '' |
+ | |||
+ | You can even create your own recipe type: [[tutorial: | ||
tutorial/recipes.txt · Last modified: 2022/12/16 00:25 by solidblock