此特性为基岩版独有。
此条目的(部分)内容需要翻译。
你可以帮助我们来翻译此条目,但请勿使用机器翻译。
参见:基岩版beta附加包文档
版本:1.12.0.28
配方
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.
furnace recipe
Represents a furnace recipe for a furnace. 'Input' items will burn and transform into items specified in 'output'.
Parameters
Type Name Description item names input Items used as input for the furnace recipe. item names output Items used as output for the furnace recipe.
- Furnace Recipe Example
{ "format_version": "1.12", "minecraft:recipe_furnace": { "description": { "identifier": "minecraft:furnace_beef" }, "tags": ["furnace", "smoker", "campfire"], "input": { "item": "minecraft:beef", "data": 0, "count": 4 }, "output": "minecraft:cooked_beef" } }
Shaped Recipe
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.
Parameters
Type Name Description array of strings tags Item used as input for the furnace recipe. array of strings groups Allows formulas to appear in quick manipulations when crafting. integer priority Item used as output for the furnace recipe. array of strings pattern characters that represent a pattern to be defined by keys. array of key and item pairs key patten key character mapped to item names. array of item names result when input items match the pattern then these items are the result.
- Shaped Recipe Example
{ "format_version": "1.12", "minecraft:recipe_shaped": { "description": { "identifier": "minecraft:acacia_boat" }, "tags": [ "crafting_table" ], "groups": [ "planks" ], "pattern": [ "#P#", "###" ], "key": { "P": { "item": "minecraft:wooden_shovel" }, "#": { "item": "minecraft:planks", "data": 4 } }, "result": { "item": "minecraft:boat", "data": 4 } } }
Shapeless Recipe
Represents a shapeless crafting recipe.
Parameters
Type Name Description 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.
- Shapeless Recipe Example
{ "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 } } }