此特性为基岩版独有。
此条目的(部分)内容需要翻译。
你可以帮助我们来翻译此条目,但请勿使用机器翻译。
参见:基岩版beta附加包文档
版本:1.12.0.28
配方
配方由behavior_packs/附加包名称/recipes目录下的JSON文件设置而成。
配方JSON文件的结构因其类型而异。配方共有三种类型:有序配方、无序配方和烧炼配方。
烧炼配方
代表熔炉的烧炼配方。输入物品(input)会被烧炼并转化为output中指定的输出物品。
参数
类型 名称 描述 物品名称 input 烧炼配方中的输入物品。 物品名称 output 烧炼配方中的输出物品。
- 示例
{
"format_version": "1.12",
"minecraft:recipe_furnace":
{
"description": {
"identifier": "minecraft:furnace_beef"
},
"tags": ["furnace", "smoker", "campfire"], //该物品可以在哪些容器被烧制,目前仅有四个:熔炉,高炉,篝火,烟熏炉
"input": {
"item": "minecraft:beef", //输入物品
"data": 0, //输入物品的数据值,即特殊值
"count": 1 //输入物品的数量
},
"output": {
"minecraft:cooked_beef", //输出物品
"data": 1 //输出物品的数据值,即特殊值
}
}
}
有序配方
代表工作台的有序配方。
pattern中的key可以为单个任意非空格字符。空格表示配方中不需放入物品的位置。
参数
类型 名称 描述 array of strings tags Item used as input for the furnace recipe. array of strings groups Allows formulas to appear in quick manipulations when crafting. integer priority Item used as output for the furnace recipe. array of strings pattern characters that represent a pattern to be defined by keys. array of key and item pairs key patten key character mapped to item names. array of item names result when input items match the pattern then these items are the result.
- 示例
{ "format_version": "1.12", "minecraft:recipe_shaped": { "description": { "identifier": "abcd" }, "tags": [ "crafting_table" ], //在工作台合成 "pattern": [ //合成表,空格处为没有任何物品。每一行最多三个字符。 "x x", " y ", "z z" ], "key": { //字符所指代的物品 "x": { "item": "minecraft:diamond", "data": 0 }, "y": { "item": "minecraft:coal", "data": 0 }, "z" :{ "item": "minecraft:iron_block", "data": 0 } }, "result": { //合成之后的输出结果 "item": "efgh", "data": 0 } } }
无序配方
代表无序合成配方。
参数
类型 名称 描述 array of strings tags Item used as input for the furnace recipe. integer priority Item used as output for the furnace recipe. array of item names ingredients items used as input (without a shape) for the recipe. array of item names result these items are the result.
- 示例
{ "format_version": "1.12", "minecraft:recipe_shapeless": { "description": { "identifier": "minecraft:firecharge_coal_sulphur" }, "priority": 0, "ingredients": { "item": "minecraft:fireball", "data": 0, "count": 4 }, "result": { "item": "minecraft:blaze_powder", "data": 4 } } }