我的世界如何创建自定义合成配方
本文章将教各位使用CoreExtensions创建自定义合成配方
好了,第一步当然是打开”core/你的包名/data/”文件夹并创建recipe.yml文件,然后暂时填入以下代码然后跟着文章熟悉整个流程
#recipe.yml
recipes:
合成分类类型
BUILDING_BLOCKS | 建筑 |
DECORATIONS | 装饰 |
REDSTONE | 红石 |
TRANSPORTATION | 运输 |
TOOLS | 工具 |
COMBAT | 战斗 |
FOOD | 食物 |
BREWING | 酿造 |
MISC | 杂项 |
有序合成
注意:合成所需材料字母表按照从左到右,从上到下;无论2×2还是3×3还是3×1等都是这样的顺序,如Size设置为2×2则只用填A,B,D,E部分
3×3有序合成字母对应映射表
A | B | C |
D | E | F |
G | H | I |
2×2有序合成字母对应映射表
A | B |
D | E |
3×3配方示例
crafting_shaped123:
name: "test1"
namespace: "coreextensions" #命名空间
id: "crafting_shaped_test" #配方ID
types: "crafting_shaped" #类型:有序合成
properties:
result: "minecraft:bedrock" #物品输出
count: 1 #合成输出数量
category: "MISC" #合成分类
pattern:
SizeX: 3 #工作台横轴大小
SizeY: 3 #工作台纵轴大小
key:
A: "minecraft:air" #合成所需材料(从左到右,从上到下;无论2x2还是3x3还是3x1等都是这样的顺序,如Size设置为2x2则只用填A,B,D,E部分)
B: "minecraft:air"
C: "minecraft:diamond_block"
D: "minecraft:air"
E: "minecraft:diamond_block"
F: "minecraft:air"
G: "minecraft:diamond_block"
H: "minecraft:air"
I: "minecraft:air"
无序合成
没有映射表,有东西就按顺序从A填写到I就行了,没有的删掉那行或者是填写”minecraft:air”
crafting_shapeless123:
name: "test2"
namespace: "coreextensions"
id: "crafting_shapeless_test"
types: "crafting_shapeless" #无序合成
properties:
result: "minecraft:bedrock"
count: 4
category: "MISC"
key:
A: "minecraft:bedrock"
B: "minecraft:bedrock"
C: "minecraft:bedrock"
D: "minecraft:air"
E: "minecraft:air"
F: "minecraft:air"
G: "minecraft:air"
H: "minecraft:air"
I: "minecraft:air"
熔炉/高炉/烟熏炉
input | → | result |
cookingTime (时间) | experience (经验) | |
FFF123:
name: "test2"
namespace: "coreextensions"
id: "smelting_test"
types: "smelting" #可选类型:熔炉smelting,烟熏炉smoking,高炉blasting
properties:
input: "minecraft:diamond_block" #输入物品
result: "minecraft:bedrock" #输出物品
experience: 1.5 #经验
cookingTime: 100 #消耗时间
category: "MISC"
锻造台转化
template | base | addition | → | result |
transformRecipe123:
name: "test2"
namespace: "coreextensions"
id: "transform_test"
types: "transform" #锻造台转化(可合成)
properties:
category: "MISC"
result: "minecraft:command_block"
key:
template: "minecraft:diamond" #锻造模板位置(可以不用锻造模板)
base: "minecraft:bedrock" #材料位置
addition: "minecraft:gold_ingot" #材料位置