Minecraft Wiki

除另有声明,转载时均必须注明出处若簡繁轉換出錯,請以遊戲內為準请勇于扩充与修正内容有兴趣逛逛我们的微博沟通交流,欢迎到社区专页需要协助,请在告示板留言

了解更多

Minecraft Wiki
Advertisement
Information icon
此特性为基岩版独有。
Ic translate
此条目的(部分)内容需要翻译。

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

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

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

版本:1.12.0.28

配方

配方由behavior_packs/附加包名称/recipes目录下的JSON文件设置而成。

配方JSON文件的结构因其类型而异。配方共有三种类型:有序配方、无序配方和烧炼配方。

烧炼配方

代表熔炉的烧炼配方。输入物品(input)会被烧炼并转化为output中指定的输出物品。

参数

类型 名称 描述
物品名称 input 烧炼配方中的输入物品。
物品名称 output 烧炼配方中的输出物品。


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

有序配方

代表工作台的有序配方。

pattern中的key可以为单个任意非空格字符。空格表示配方中不需放入物品的位置。

参数

类型 名称 描述
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.


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

无序配方

代表无序合成配方

参数

类型 名称 描述
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.


无序配方的示例
{
"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
	    }
	}
}

参见

Advertisement