我的世界CraftTweaker 在家具模组的应用

请使用 5.5.0 以上版本

电脑

  添加

    mods.cfm.MineBay.addTrade(<输出物品>,<输入物品>);

  示例

    mods.cfm.MineBay.addTrade(<minecraft:stick>.withAmount(42),<minecraft:diamond>.withAmount(13));

    mods.cfm.MineBay.addTrade(<minecraft:apple>.withAmount(16),<minecraft:emerald>.withAmount(3));

    mods.cfm.MineBay.addTrade(<minecraft:carrot>,<minecraft:emerald>);

  移除

    mods.cfm.MineBay.remove(<输出物品>);

  示例

    mods.cfm.MineBay.remove(<minecraft:potion>.withTag({Potion: “night_vision”}));

烤箱

  添加

    mods.cfm.Oven.addRecipe(<输出物品>,<输入物品>);

  示例

    mods.cfm.Oven.addRecipe(<minecraft:cooked_rabbit>,<minecraft:rabbit>);

  移除

    mods.cfm.Oven.remove(<输出物品>);

    mods.cfm.Oven.remove(<输出物品>(可以填 null),<输入物品>);

  示例

    mods.cfm.Oven.remove(<cfm:item_flesh_cooked>);

    mods.cfm.Oven.remove(null,<minecraft:potato>);

冰箱

  移除

    mods.cfm.Freezer.remove(<输出物品>);

    mods.cfm.Freezer.remove(<输出物品>(可以填 null),<输入物品>);

  示例

    mods.cfm.Freezer.remove(<minecraft:ice>);

    mods.cfm.Freezer.remove(null,<minecraft:lava_bucket>);

  添加

    mods.cfm.Freezer.addRecipe(<输出物品>,<输入物品>);

  示例

    mods.cfm.Freezer.addRecipe(<minecraft:ice>.withAmount(16),<minecraft:lava_bucket>);

    mods.cfm.Freezer.addRecipe(<minecraft:obsidian>.withAmount(16),<minecraft:water_bucket>);

    mods.cfm.Freezer.addRecipe(<minecraft:water_bucket>,<minecraft:bucket>);

打印机

  移除

    mods.cfm.Printer.remove(<物品>);

  示例

    mods.cfm.Printer.remove(<minecraft:enchanted_book>);

  添加

    mods.cfm.Printer.add(<物品>);

  示例

    mods.cfm.Printer.add(<minecraft:name_tag>);

砧板

  移除

    mods.cfm.ChoppingBoard.remove(<输出物品>(可以填 null),<输入物品>);

  示例

    mods.cfm.ChoppingBoard.remove(null,<minecraft:bread>);

  添加

    mods.cfm.ChoppingBoard.addRecipe(<输出物品>,<输入物品>);

  示例

    mods.cfm.ChoppingBoard.addRecipe(<minecraft:stick>.withAmount(2),<minecraft:wheat>);

    mods.cfm.ChoppingBoard.addRecipe(<minecraft:wheat>.withAmount(3),<minecraft:bread>);

烤面包机

  移除

    mods.cfm.Toaster.remove(<输出物品>,<输入物品>);

  示例

    mods.cfm.Toaster.remove(<cfm:item_toast>,<cfm:item_bread_slice>);

  添加

    mods.cfm.Toaster.addRecipe(<输出物品>,<输入物品>);

  示例

    mods.cfm.Toaster.addRecipe(<minecraft:bread>,<minecraft:wheat>);

    mods.cfm.Toaster.addRecipe(<harvestcraft:toastitem>,<minecraft:bread>);

搅拌机

  移除

    mods.cfm.Blender.remove(“饮料名称字符串”);

    mods.cfm.Blender.remove(“饮料名称字符串”(可以填 null), [材料物品组]);

  示例

    mods.cfm.Blender.remove(“Fruit Crush”);

    mods.cfm.Blender.remove(null, [<minecraft:carrot>,<minecraft:potato>,<minecraft:pumpkin_pie>]);

  添加

    mods.cfm.Blender.addDrink(“饮料名称字符串”, [材料物品组], 饥饿度恢复量(1 ~ 20 的整数), [红,绿,蓝(使用十进制 RGB 颜色,范围:0 ~ 255 的整数)]);

  示例

    mods.cfm.Blender.addDrink(“冰镇西瓜汁”, [<minecraft:melon>.withAmount(8),<minecraft:snowball>.withAmount(4)], 20, [255,182,193]);

微波炉

  移除

    mods.cfm.Microwave.remove(<输出物品>);

    mods.cfm.Microwave.remove(<输出物品>(可以填 null),<输入物品>);

  示例

    mods.cfm.Microwave.remove(<minecraft:cooked_beef>);

    mods.cfm.Microwave.remove(null,<minecraft:potato>);

  添加

    mods.cfm.Microwave.addRecipe(<输出物品>,<输入物品>);

  示例

    mods.cfm.Microwave.addRecipe(<minecraft:stick>.withAmount(4),<minecraft:reeds>);

洗碗机

  移除

    mods.cfm.Dishwasher.remove(<被洗涤物品>);

  示例

    mods.cfm.Dishwasher.remove(<minecraft:diamond_sword>);

  添加

    mods.cfm.Dishwasher.add(<被洗涤物品,适用于剑、镐、斧、锹、锄和弓>);

  示例

    mods.cfm.Dishwasher.add(<abyssalcraft:ethaxiumaxe>);

    mods.cfm.Dishwasher.add(<abyssalcraft:ethaxiumshovel>);

    mods.cfm.Dishwasher.add(<abyssalcraft:ethaxiumpickaxe>);

    mods.cfm.Dishwasher.add(<abyssalcraft:ethaxiumhoe>);

    mods.cfm.Dishwasher.add(<abyssalcraft:ethaxiumsword>);

    mods.cfm.Dishwasher.add(<abyssalcraft:corbow>);

洗衣机

  移除

    mods.cfm.WashingMachine.remove(<被洗涤物品>);

  示例

    mods.cfm.WashingMachine.remove(<minecraft:chainmail_helmet>);

    mods.cfm.WashingMachine.remove(<minecraft:chainmail_chestplate>);

    mods.cfm.WashingMachine.remove(<minecraft:chainmail_leggings>);

    mods.cfm.WashingMachine.remove(<minecraft:chainmail_boots>);

  添加

    mods.cfm.WashingMachine.add(<被洗涤物品,适用于头盔、胸甲、护腿和靴子>);

  示例

    mods.cfm.WashingMachine.add(<minecraft:elytra>);

    mods.cfm.WashingMachine.add(<abyssalcraft:dreadiumhelmet>);

    mods.cfm.WashingMachine.add(<abyssalcraft:dreadiumplate>);

    mods.cfm.WashingMachine.add(<abyssalcraft:dreadiumlegs>);

    mods.cfm.WashingMachine.add(<abyssalcraft:dreadiumboots>);

烧烤架

  移除

    mods.cfm.Grill.remove(<输出物品>(可以填 null),<输入物品>);

    mods.cfm.Grill.remove(<输出物品>);

  示例

    mods.cfm.Grill.remove(null,<minecraft:beef>);

    mods.cfm.Grill.remove(<cfm:item_sausage_cooked>);

  添加

    mods.cfm.Grill.addRecipe(<输出物品>,<输入物品>);

  示例

    mods.cfm.Grill.addRecipe(<minecraft:cooked_rabbit>,<minecraft:rabbit>);

    mods.cfm.Grill.addRecipe(<minecraft:torch>,<minecraft:stick>);


参考资料

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,如果不能访问,请点击这里寻找解决方法。

Copyright © 2018-2023 PHP源码网 版权所有
PHP源码网 » 我的世界CraftTweaker 在家具模组的应用

提供最优质的资源集合

立即查看 了解详情