此特性为基岩版独有。
此条目的(部分)内容需要翻译。
你可以帮助我们来翻译此条目,但请勿使用机器翻译。
参见:基岩版beta附加包文档
版本:1.12.0.28
配方
合成表是在behavior_packs /'附加包的名字'/recipes目录下的Json文件中设置的。 合成表文件因不同的种类而产生不同的结构。 共有3种合成表的结构,分别是:无序合成表,有序合成表,熔炼表。
熔炼表
熔炼表代表着适用于炉具的合成表. 'Input' 中的物品将会变为'output'中规定的物品。
JSON内容
值的类别 键名 介绍 物品名 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": 4
},
"output": "minecraft:cooked_beef"
}
}
有序合成表
有序合成表代表着为合成台规定的有序合成表(即有固定合成排布的合成表)。
Parameters
Type Name Description 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.
- Shaped Recipe Example
{
"format_version": "1.12",
"minecraft:recipe_shaped": {
"description": {
"identifier": "minecraft:acacia_boat"
},
"tags": [ "crafting_table" ],
"groups": [ "planks" ],
"pattern": [
"#P#",
"###"
],
"key": {
"P": {
"item": "minecraft:wooden_shovel"
},
"#": {
"item": "minecraft:planks",
"data": 4
}
},
"result": {
"item": "minecraft:boat",
"data": 4
}
}
}
Shapeless Recipe
Represents a shapeless crafting recipe.
Parameters
Type Name Description 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.
- Shapeless Recipe Example
{
"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
}
}
}