<本站文本内容除另有声明外,转载时均必须注明出处。(详情…中文Minecraft Wiki是完全公开的。请勇于扩充与修正内容!Minecraft中文Wiki微博正在更新!或许有兴趣去看看想与其他用户进行编辑上的沟通?社区专页正是为此创建的。翻译或创建页面之前,不妨看看译名标准化Wiki条例页面。需要管理员的协助?在管理员告示板留言也许可以帮到您。>

基岩版配方文档

来自Minecraft Wiki
跳转至: 导航搜索
Information icon.svg
此特性为基岩版独有。
Ic translate.svg
此条目的(部分)内容需要翻译。

你可以帮助我们来翻译此条目,但请勿使用机器翻译

参见:基岩版beta附加包文档

这是一个适用于基岩版1.12.0配方文档

版本: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
	    }
	}
}

参见[编辑 | 编辑源代码]