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