Minecraft Wiki

除另有声明,转载时均必须注明出处若簡繁轉換出錯,請以遊戲內為準请勇于扩充与修正内容有兴趣逛逛我们的微博沟通交流,欢迎到社区专页需要协助,请在告示板留言

了解更多

Minecraft Wiki
Advertisement
可打印版不再被支持且可能有渲染错误。请更新您的浏览器书签并改用浏览器默认的打印功能。
Information icon
此特性为基岩版独有。
Ic translate
此条目的(部分)内容需要翻译。

你可以帮助我们来翻译此条目,但请勿使用机器翻译

参见:基岩版beta附加包文档

这是一个适用于基岩版1.16.40配方文档

版本:1.16.4002.0

配方

配方由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""soul_campfire"],  //该物品可以在哪些容器被烧制,目前仅有五个:熔炉,高炉,烟熏炉,营火,灵魂营火
        "input": { 
          "item": "minecraft:beef",  //输入物品
          "data": 0,  //输入物品的数据值,即特殊值
          "count": 1  //输入物品的数量
         },
        "output": {
          "minecraft:cooked_beef",  //输出物品
          "data": 1  //输出物品的数据值,即特殊值
       }
    }
 }

有序配方

代表工作台的有序配方。

pattern中的key可以为单个任意非空格字符。空格表示配方中不需放入物品的位置。

参数

名称 类型 描述
key 键值对数组 字符所映射到的物品的命名空间ID
pattern 字符串数组 表示由字符所组成的合成表模型
priority 整数值 被用作烧炼配方的输出项目
result 物品的命名空间ID 在工作台中,当放入的物品和定义的配方一致事所输出的物品
示例
{
"format_version": "1.12",
"minecraft:recipe_shaped": {
"description": {
  "identifier": "minecraft:acacia_boat" //物品的合成配方,若是原版已有的物品,则新配方会代替掉原版配方
  },
"tags": [ "crafting_table" ],
"pattern": [
        "#P#",
        "###" //可为任意大写字母,若为空格则在工作台中代表留空
        ],
  "key": {  //字符所指代的物品
    "P": {
      "item": "minecraft:wooden_shovel" //输入物品的命名空间ID
    },
    "#": {
      "item": "minecraft:planks",
      "data": 4 //输入物品的特殊值
      }
    },
"result": {
    "item": "minecraft:boat", //输出物品的命名空间ID
    "data": 4 //输出物品的特殊值
    }
  }
}

无序配方

代表无序合成配方。

参数

类型 名称 描述
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
    }
  }
}

参见

Advertisement