Skip to main content

Recipe Documentation - Shaped Recipe

Represents a crafting recipe that is to be used with a crafting table. The key used in the pattern may be any single character except the 'space' character, which is reserved for empty slots in a recipe.

Parameters

NameTypeDefaultDescription
keyArray of key and item pairsnot setPattern key character mapped to item names.
patternString arraynot setCharacters that represent a pattern to be defined by keys.
priorityIntegernot setSets the priority order of the recipe. Lower numbers represent a higher priority.
resultItem descriptornot setWhen input items match the pattern, this item will be produced as output.
tagsString arraynot setItem that can create the shaped recipe, such as "crafting_table".
assume_symmetryBooleantrueUsed to automatically assume a symmetrical recipe should return the same result.

Key and pattern

The key used in the pattern may be any single character except the 'space' character, which is reserved for empty slots in a recipe.

Shaped Recipe Example

{
"format_version": "1.0.0",
"minecraft:recipe_shaped": {
"description": {
"identifier": "minecraft:stone_axe"
},
"tags": [ "crafting_table" ],
"pattern": [
"XX",
"X#",
" #"
],
"key": {
"#": [
{
"item": "minecraft:stick"
}
],
"X": [
{
"item": "minecraft:cobblestone"
}
]
},
"result": {
"item": "minecraft:stone_axe"
}
}
}

Shaped Recipes with assume_symmetry Property Set

assume_symmetry is an optional field. If not set, it will default to true. By setting it to false, you can define mirrored versions of a recipe and have different results.

{
"format_version": "1.0.0",
"minecraft:recipe_shaped": {
"description": {
"identifier": "minecraft:zig"
},
"tags": [ "crafting_table" ],
"assume_symmetry": false,
"pattern": [
"## ",
" ##"
],
"key": {
"#": [
{
"tag": "minecraft:planks"
}
]
},
"result": {
"item": "minecraft:zig"
}
}
}
{
"format_version": "1.0.0",
"minecraft:recipe_shaped": {
"description": {
"identifier": "minecraft:zag"
},
"tags": [ "crafting_table" ],
"assume_symmetry": false,
"pattern": [
" ##",
"## "
],
"key": {
"#": [
{
"tag": "minecraft:planks"
}
]
},
"result": {
"item": "minecraft:zag"
}
}
}