Crafting Recipe
Data Type
An Object specifying a shapeless or shaped crafting recipe. For some more information, view the page on recipes on the MC wiki.
Fields (both types)
| Field |
Type |
Default |
Description |
type |
Identifier |
|
The type of recipe. Either minecraft:crafting_shaped or minecraft:crafting_shapeless. Other recipe types are not supported. |
id |
Identifier |
|
An ID for this recipe. Has to be unique among all recipes, otherwise there will be a conflict. |
result |
Object with an item ID and count Integer |
|
The result of the crafting. Note that vanilla does not support NBT tags in the result. |
Fields (shapeless)
| Field |
Type |
Default |
Description |
ingredients |
Array of Ingredient |
|
The items that need to be put in the crafting grid for the recipe. |
Fields (shaped)
| Field |
Type |
Default |
Description |
pattern |
Array of Strings |
|
Specifies the pattern, with each element representing one row. Use a single character to describe one item. A space means that position is empty. |
key |
Identifier |
|
Specifies which character in the pattern corresponds to which Ingredient. |