我的世界Recipe Stages 官方wiki简单翻译
以下是三种最常用的用法,基本上够用了这三个。
排版很难受,本来已经做好markdown了,但是发现粘贴进来只剩文本了。
没办法,就又排版了一遍。
按产物设置配方阶段
mods.recipestages.Recipes.setRecipeStage(String 阶段名,<产物>);
按模组设置配方阶段
mods.recipestages.Recipes.setRecipeStageByMod(String 阶段名,String 模组id);
添加一个合成配方并设置它的阶段
mods.recipestages.Recipes.addShaped(String 阶段名,<产物>*数量,
[[null, null, null],
[null, null, null],
[null, null, null]]
);
添加按照阶段锁定的合成
//mods.recipestages.Recipes.addShaped(String stage, IItemStack output, IIngredient[][] ingredients, @Optional IRecipeFunction function, @Optional IRecipeAction action);
//mods.recipestages.Recipes.addShaped(String name, String stage, IItemStack output, IIngredient[][] ingredients, @Optional IRecipeFunction function, @Optional IRecipeAction action);
mods.recipestages.Recipes.addShaped(“two”, <minecraft:iron_leggings>,[[<minecraft:gold_ingot>, <minecraft:gold_ingot>, <minecraft:iron_ingot>],[<minecraft:iron_ingot>, null, <minecraft:iron_ingot>],[<minecraft:iron_ingot>, null, <minecraft:iron_ingot>]]);
mods.recipestages.Recipes.addShaped(“test”, “one”, <minecraft:iron_leggings>,[[<minecraft:gold_ingot>, <minecraft:iron_ingot>, <minecraft:iron_ingot>],[<minecraft:iron_ingot>, null, <minecraft:iron_ingot>],[<minecraft:iron_ingot>, null, <minecraft:iron_ingot>]]);
添加按照阶段锁定的对称合成
//mods.recipestages.Recipes.addShapedMirrored(String stage, IItemStack output, IIngredient[][] ingredients, @Optional IRecipeFunction function, @Optional IRecipeAction action);
//mods.recipestages.Recipes.addShapedMirrored(String name, String stage, IItemStack output, IIngredient[][] ingredients, @Optional IRecipeFunction function, @Optional IRecipeAction action);
mods.recipestages.Recipes.addShapedMirrored(“two”, <minecraft:iron_leggings>,[[<minecraft:gold_ingot>, <minecraft:gold_ingot>, <minecraft:iron_ingot>],[<minecraft:iron_ingot>, null, <minecraft:iron_ingot>],[<minecraft:iron_ingot>, null, <minecraft:iron_ingot>]]);
mods.recipestages.Recipes.addShapedMirrored(“test_mirrored”, “one”, <minecraft:iron_leggings>,[[<minecraft:gold_ingot>, <minecraft:iron_ingot>, <minecraft:iron_ingot>],[<minecraft:iron_ingot>, null, <minecraft:iron_ingot>],[<minecraft:iron_ingot>, null, <minecraft:iron_ingot>]]);
添加按照阶段锁定的无序合成
//mods.recipestages.Recipes.addShapeless(String stage, IItemStack output, IIngredient[] ingredients, @Optional IRecipeFunction function, @Optional IRecipeAction action);
//mods.recipestages.Recipes.addShapeless(String name, String stage, IItemStack output, IIngredient[] ingredients, @Optional IRecipeFunction function, @Optional IRecipeAction action);
mods.recipestages.Recipes.addShapeless(“one”, <minecraft:diamond>, [<ore:sand>, <ore:sand>, <ore:ingotIron>, <minecraft:gold_ingot>]);
mods.recipestages.Recipes.addShapeless(“shapeless_test”. “one”, <minecraft:diamond>, [<ore:sand>, <ore:sand>, <ore:ingotIron>, <minecraft:gold_ingot>]);
为一个无阶段锁定的合成分配一个阶段
//mods.recipestages.Recipes.setRecipeStage(String name, IItemStack output);
//mods.recipestages.Recipes.setRecipeStage(String name, String recipeName);
mods.recipestages.Recipes.setRecipeStage(“one”, <minecraft:stone_hoe>);
mods.recipestages.Recipes.setRecipeStage(“one”, “minecraft:boat”);
设置某个mod所有合成的阶段,不支持于正则表达式,因此使用.*作为参数将无效!
//mods.recipestages.Recipes.setRecipeStageByMod(String name, String modid);
mods.recipestages.Recipes.setRecipeStageByMod(“one”, “minecraft”);
根据正则表达式对它们的名称进行搜索,设置所有符合合成的阶段。
//mods.recipestages.Recipes.setRecipeStageByRegex(String name, String modid);
//This sets the stage of all recipes who’s name only contains numbers to stage “one”
mods.recipestages.Recipes.setRecipeStageByRegex(“one”, “^[0-9]*$”);
Tells RecipeStages to print Container names to chat
//mods.recipestages.Recipes.setPrintContainers(boolean printContainers);
mods.recipestages.Recipes.setPrintContainers(true);
“Stages” a container, allowing it to craft recipes from certain stages
//mods.recipestages.Recipes.setContainerStage(String containerPath, String[] stages);
mods.recipestages.Recipes.setContainerStage(“primal_tech.inventory.ContainerWorkStump”, “one”);
“Stages” a package, allowing all containers in the package to craft recipes from certain stages
//mods.recipestages.Recipes.setPackageStage(String packageName, String[] stages);
mods.recipestages.Recipes.setPackageStage(“appeng”, allStages);