配方Recipe文档

版本: 1.16.200.2(正式版)


配方

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'..

##参数

NameTypeDescription
inputitem namesItems used as input for the furnace recipe.
outputitem namesItems 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 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..

参数

NameTypeDescription
keyarray of key and item pairspatten key character mapped to item names.
patternarray of stringscharacters that represent a pattern to be defined by keys.
priorityintegerItem used as output for the furnace recipe.
resultarray of item nameswhen input items match the pattern then these items are the result.
tagsarray of stringsItem 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..

参数

NameTypeDescription
ingredientsarray of item namesitems used as input (without a shape) for the recipe.
priorityintegerItem used as output for the furnace recipe.
resultarray of item namesthese items are the result.
tagsarray of stringsItem 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
      }
  }
}

酿造台混合配方

Represents a Potion Brewing Mix..

参数

NameTypeDescription
inputpotioninput potion used on the brewing stand.
outputpotionoutput potion from mixing the input potion with the reagent on the brewing stand.
reagentitemitem used to mix with the input potion.
tagsarray of stringsItem 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 Potion Brewing Container Recipe..

参数

NameTypeDescription
inputpotioninput potion used in the brewing container recipe.
outputpotionoutput potion from the brewing container recipe.
reagentitemitem used in the brewing container recipe with the input potion.
tagsarray of stringsItem 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",
 
  }
}