Recipe¶
文档版本:1.21.50.25
Minecraft recipe
架构¶
recipe:
{
string "format_version" : opt
furnace "minecraft:recipe_furnace"
container "minecraft:recipe_brewing_container"
mix "minecraft:recipe_brewing_mix"
shaped "minecraft:recipe_shaped"
shapeless "minecraft:recipe_shapeless"
recipe_smithing_transform "minecraft:recipe_smithing_transform"
}
format_version
:string- A version that tells minecraft what type of data format can be expected when reading this file.
minecraft:recipe_furnace
:furnace
furnace:
{
definition "description"
tags "tags"
string "input" : opt
string "output" : opt
unlock "unlock"
}
description
:definition
identifier
:string- UNDOCUMENTED.
tags
:tags
<any array element>
:string
input
:string- Items used as input for the furnace recipe.
output
:string- Items used as output for the furnace recipe.
unlock
:unlock
context
:string- The context of the achievement to unlock
unlock:
array
{
object "<any array element>" : opt
{
string "item" : opt
integer "data" : opt
}
object "<any array element>" : opt
{
string "tag" : opt
}
}
<any array element>
:object
<any array element>
item
:string- The item to unlock
data
:integer- The data of the item to unlock
<any array element>
:object
<any array element>
tag
:string- The item to unlock
minecraft:recipe_brewing_container
:container
container:
{
definition "description"
tags "tags"
unlock "unlock"
string "input" : opt
string "output" : opt
string "reagent" : opt
}
description
:definition
tags
:tags
unlock
:unlock
input
:string- Input potion used on the brewing stand.
output
:string- Output potion from mixing the input potion with the reagent on the brewing stand.
reagent
:string- Item used to mix with the input potion.
minecraft:recipe_brewing_mix
:mix
mix:
{
definition "description"
tags "tags"
unlock "unlock"
string "input" : opt
string "output" : opt
string "reagent" : opt
}
description
:definition
tags
:tags
unlock
:unlock
input
:string- Input potion used on the brewing stand.
output
:string- Output potion from mixing the input potion with the reagent on the brewing stand.
reagent
:string- Item used to mix with the input potion.
minecraft:recipe_shaped
:shaped
shaped:
{
definition "description"
tags "tags"
unlock "unlock"
object "key" : opt
{
item "<any object property>"
}
string "group" : opt
array "pattern" : opt
{
string "<any array element>" : opt
}
integer "priority" : opt
item "result"
array "result" : opt
{
item "<any array element>"
}
boolean "assume_symmetry" : opt
}
description
:definition
tags
:tags
unlock
:unlock
key
:object- Patten key character mapped to item names.
key
<any object property>
:item
item
:string
data
:integer
count
:integer
tag
:string- The item to unlock
group
:string- UNDOCUMENTED.
pattern
:array- Characters that represent a pattern to be defined by keys.
pattern
<any array element>
:string
priority
:integer- Item used as output for the furnace recipe.
result
:item- When input items match the pattern then these items are the result.
result
:array- When input items match the pattern then these items are the result.
result
<any array element>
:item
assume_symmetry
:boolean- Used to automatically assume a symmetrical recipe should return the same resultUsed to automatically assume a symmetrical recipe should return the same result
minecraft:recipe_shapeless
:shapeless
shapeless:
{
definition "description"
tags "tags"
unlock "unlock"
array "ingredients" : opt
{
item "<any array element>"
}
string "group" : opt
integer "priority" : opt
item "result"
array "result" : opt
{
item "<any array element>"
}
}
description
:definition
tags
:tags
unlock
:unlock
ingredients
:array- Items used as input (without a shape) for the recipe.
ingredients
<any array element>
:item
group
:string- UNDOCUMENTED.
priority
:integer- Item used as output for the furnace recipe.
result
:item- When input items match the pattern then these items are the result.
result
:array- When input items match the pattern then these items are the result.
result
<any array element>
:item
minecraft:recipe_smithing_transform
:recipe_smithing_transform
recipe_smithing_transform:
{
definition "description"
tags "tags"
unlock "unlock"
item "base"
array "base" : opt
{
item "<any array element>"
}
item "addition"
array "addition" : opt
{
item "<any array element>"
}
item "result"
array "result" : opt
{
item "<any array element>"
}
}
description
:definition
tags
:tags
unlock
:unlock
base
:item- Item used as base for the smithing recipe.
base
:array- Item used as base for the smithing recipe.
base
<any array element>
:item
addition
:item- Item used as addition for the smithing recipe.
addition
:array- Item used as addition for the smithing recipe.
addition
<any array element>
:item
result
:item- When input items match the pattern then these items are the result.
result
:array- When input items match the pattern then these items are the result.
result
<any array element>
:item