我的世界添加/删除 合成配方
添加有序合成:
recipes.addShaped(配方输出, 配方标记);
例如我要添加一个这个的有序合成,
recipes.addShaped(<minecraft:iron_leggings>,
[[<minecraft:iron_ingot>, <minecraft:iron_ingot>, <minecraft:iron_ingot>],
[<minecraft:iron_ingot>, null, <minecraft:iron_ingot>],
[<minecraft:iron_ingot>, null, <minecraft:iron_ingot>]]);
大概就是这样
recipes.addShaped(<minecraft:iron_leggings>,);
添加无序合成:
recipes.addShapeless(配方输出, 配方标记);
recipes.addShapeless(<成品> * 个数, [<合成原料A> * 个, <合成原料B> * 个]);
例如我要用两个泥土+1个石头合成3个地狱岩:
recipes.addShapeless(<minecraft:netherstone> * 3, [<minecraft:dirt> * 2, <minecraft:stone>]);
添加镜像配方:
recipes.addShapedMirrored(<minecraft:stick> * 4, [[<minecraft:planks:*>, null], [null, <minecraft:planks:*>]]);
移除合成配方:
移除该物品的所有合成配方:
recipes.remove(需要删除配方的物品标记);
移除特定的有序合成配方:
recipes.removeShaped(需要删除配方的物品标记,需要删除的特定配方标记).
移除特定的无序合成配方:
recipes.removeShapeless(需要删除配方的物品名,需要删除的特定配方标记);