配方文档
版本:1.18.10.4

索引

返回顶部

配方

Recipes are setup in Json files under the behavior_packs /'name of pack'/ recipes directory.
Recipe JSON files have different structures dependent on their type.
There are 3 types of recipes, Furnace, Shaped and Shapeless.

熔炉配方

Represents a furnace recipe for a furnace.'Input' items will burn and transform into items specified in 'output'..

参数

名称 类型 描述
input 物品名 Items used as input for the furnace recipe.
output 物品名 Items used as output for the furnace recipe.

返回顶部

熔炉配方示例:


{
"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": 4
},
"output ": "minecraft:cooked_beef"
}
}



药水容器酿造配方

Represents a Potion Brewing Container Recipe..

参数

名称 类型 描述
input 药水 input potion used in the brewing container recipe.
output 药水 output potion from the brewing container recipe.
reagent 物品 item used in the brewing container recipe with the input potion.
tags 字符串的数组 Item used in a Brewing Container Recipe.

返回顶部

药水容器酿造配方示例:


{
"format_version": "1.12",
"minecraft:recipe_brewing_container": {
"description": {
  "identifier": "minecraft:brew_potion_sulphur"
  },
 
 "tags": [ "brewing_stand" ],
 
  "input": "minecraft:potion",
  "reagent": "minecraft:gunpowder",
  "output": "minecraft:splash_potion",
 
  }
}



药水混合酿造配方

Represents a Potion Brewing Mix..

参数

名称 类型 描述
input 药水 input potion used on the brewing stand.
output 药水 output potion from mixing the input potion with the reagent on the brewing stand.
reagent 物品 item used to mix with the input potion.
tags 字符串的数组 Item used to make a brewing mix.

返回顶部

药水混合酿造示例:


{
"format_version": "1.12",
"minecraft:recipe_brewing_mix": {
"description": {
  "identifier": "minecraft:brew_awkward_blaze_powder"
  },
 
 "tags": [ "brewing_stand" ],
 
  "input": "minecraft:potion_type:awkward",
  "reagent": "minecraft:blaze_powder",
  "output": "minecraft:potion_type:strength",
 
  }
}



有序配方

Represents a shaped crafting recipe for a crafting table.
The key used in the pattern may be any single character except the 'space' character, which is reserved for empty slots in a recipe..

参数

名称 类型 描述
key 键值对的数组 patten key character mapped to item names.
pattern 字符串的数组 characters that represent a pattern to be defined by keys.
priority 整数 Item used as output for the furnace recipe.
result 物品名的数组 when input items match the pattern then these items are the result.
tags 字符串的数组 Item used as input for the furnace recipe.

返回顶部

有序配方示例:


{
"format_version": "1.12",
"minecraft:recipe_shaped": {
"description": {
  "identifier": "minecraft:acacia_boat"
  },
"tags": [ "crafting_table" ],
"pattern": [
        "#P#",
        "###"
        ],
  "key": {
    "P": {
      "item": "minecraft:wooden_shovel"
    },
    "#": {
      "item": "minecraft:planks",
      "data": 4
      }
    },
"result": {
    "item": "minecraft:boat",
    "data": 4
    }
  }
}



无序配方

Represents a shapeless crafting recipe..

参数

名称 类型 描述
ingredients 物品名的数组 items used as input (without a shape) for the recipe.
priority 整数 Item used as output for the furnace recipe.
result 物品名的数组 these items are the result.
tags 字符串的数组 Item used as input for the furnace recipe.

返回顶部

无序配方示例:


{
"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
      }
  }
}





网站作者: destruc7i0n

本网站不隶属于Mojang Studios