请使用 5.5.0 以上版本
电脑
添加
mods.cfm.MineBay.addTrade(<输出物品>,<输入物品>);
示例
mods.cfm.MineBay.addTrade(.withAmount(42),.withAmount(13));
mods.cfm.MineBay.addTrade(.withAmount(16),.withAmount(3));
mods.cfm.MineBay.addTrade(,);
移除
mods.cfm.MineBay.remove(<输出物品>);
示例
mods.cfm.MineBay.remove(.withTag({Potion: "night_vision"}));
烤箱
添加
mods.cfm.Oven.addRecipe(<输出物品>,<输入物品>);
示例
mods.cfm.Oven.addRecipe(,);
移除
mods.cfm.Oven.remove(<输出物品>);
mods.cfm.Oven.remove(<输出物品>(可以填 null),<输入物品>);
示例
mods.cfm.Oven.remove();
mods.cfm.Oven.remove(null,);
冰箱
移除
mods.cfm.Freezer.remove(<输出物品>);
mods.cfm.Freezer.remove(<输出物品>(可以填 null),<输入物品>);
示例
mods.cfm.Freezer.remove();
mods.cfm.Freezer.remove(null,);
添加
mods.cfm.Freezer.addRecipe(<输出物品>,<输入物品>);
示例
mods.cfm.Freezer.addRecipe(.withAmount(16),);
mods.cfm.Freezer.addRecipe(.withAmount(16),);
mods.cfm.Freezer.addRecipe(,);
打印机
移除
mods.cfm.Printer.remove(<物品>);
示例
mods.cfm.Printer.remove();
添加
mods.cfm.Printer.add(<物品>);
示例
mods.cfm.Printer.add();
砧板
移除
mods.cfm.ChoppingBoard.remove(<输出物品>(可以填 null),<输入物品>);
示例
mods.cfm.ChoppingBoard.remove(null,);
添加
mods.cfm.ChoppingBoard.addRecipe(<输出物品>,<输入物品>);
示例
mods.cfm.ChoppingBoard.addRecipe(.withAmount(2),);
mods.cfm.ChoppingBoard.addRecipe(.withAmount(3),);
烤面包机
移除
mods.cfm.Toaster.remove(<输出物品>,<输入物品>);
示例
mods.cfm.Toaster.remove(,);
添加
mods.cfm.Toaster.addRecipe(<输出物品>,<输入物品>);
示例
mods.cfm.Toaster.addRecipe(,);
mods.cfm.Toaster.addRecipe(,);
搅拌机
移除
mods.cfm.Blender.remove("饮料名称字符串");
mods.cfm.Blender.remove("饮料名称字符串"(可以填 null), [材料物品组]);
示例
mods.cfm.Blender.remove("Fruit Crush");
mods.cfm.Blender.remove(null, [,,]);
添加
mods.cfm.Blender.addDrink("饮料名称字符串", [材料物品组], 饥饿度恢复量(1 ~ 20 的整数), [红,绿,蓝(使用十进制 RGB 颜色,范围:0 ~ 255 的整数)]);
示例
mods.cfm.Blender.addDrink("冰镇西瓜汁", [.withAmount(8),.withAmount(4)], 20, [255,182,193]);
微波炉
移除
mods.cfm.Microwave.remove(<输出物品>);
mods.cfm.Microwave.remove(<输出物品>(可以填 null),<输入物品>);
示例
mods.cfm.Microwave.remove();
mods.cfm.Microwave.remove(null,);
添加
mods.cfm.Microwave.addRecipe(<输出物品>,<输入物品>);
示例
mods.cfm.Microwave.addRecipe(.withAmount(4),);
洗碗机
移除
mods.cfm.Dishwasher.remove(<被洗涤物品>);
示例
mods.cfm.Dishwasher.remove();
添加
mods.cfm.Dishwasher.add(<被洗涤物品,适用于剑、镐、斧、锹、锄和弓>);
示例
mods.cfm.Dishwasher.add();
mods.cfm.Dishwasher.add();
mods.cfm.Dishwasher.add();
mods.cfm.Dishwasher.add();
mods.cfm.Dishwasher.add();
mods.cfm.Dishwasher.add();
洗衣机
移除
mods.cfm.WashingMachine.remove(<被洗涤物品>);
示例
mods.cfm.WashingMachine.remove();
mods.cfm.WashingMachine.remove();
mods.cfm.WashingMachine.remove();
mods.cfm.WashingMachine.remove();
添加
mods.cfm.WashingMachine.add(<被洗涤物品,适用于头盔、胸甲、护腿和靴子>);
示例
mods.cfm.WashingMachine.add();
mods.cfm.WashingMachine.add();
mods.cfm.WashingMachine.add();
mods.cfm.WashingMachine.add();
mods.cfm.WashingMachine.add();
烧烤架
移除
mods.cfm.Grill.remove(<输出物品>(可以填 null),<输入物品>);
mods.cfm.Grill.remove(<输出物品>);
示例
mods.cfm.Grill.remove(null,);
mods.cfm.Grill.remove();
添加
mods.cfm.Grill.addRecipe(<输出物品>,<输入物品>);
示例
mods.cfm.Grill.addRecipe(,);
mods.cfm.Grill.addRecipe(,);
参考资料
1. 相关源码:https://github.com/MrCrayfish/MrCrayfishFurnitureMod/tree/master/src/main/java/com/mrcrayfish/furniture/integration/crafttweaker;
2. MrCrayfish's Furniture Mod CraftTweaker sample,by BlueAgent: https://gist.github.com/BlueAgent/a104380351014e23e9871dd7accde007,如果不能访问,请点击这里寻找解决方法。