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