This page relates to Mystical Agriculture, which has built-in support!
Mystical Agriculture Infusion Crafting
Link to mystical-agriculture-infusion-crafting
Infusion Crafting is NOT a type of IRecipeManager and normal removal methods will not work for it.
所属包
Link to 所属包
Name: Importing The Package
You may want to import the class so you don't need to use the full package name everywhere, to do this simply add the following to the top of your script:
ZenScript Copyimport mods.mysticalagriculture.InfusionCrafting;
Now you can reference the class like so:
ZenScript CopyInfusionCrafting.addRecipe("test", <item:minecraft:stick> * 10, [<item:minecraft:diamond>, <tag:forge:ingots/iron>, <item:minecraft:stick>]);
使用方式
Link to 使用方式
Name: Add Recipes
The following script will add a recipe that will output 10 Sticks when a Diamond, a Stick and any Item from the Iron Ingot Tag is infused.
ZenScript Copy// mods.mysticalagriculture.InfusionCrafting.addRecipe(id as string, output as IItemStack, inputs as IIngredient[]);
mods.mysticalagriculture.InfusionCrafting.addRecipe("test", <item:minecraft:stick> * 10, [<item:minecraft:diamond>, <tag:forge:ingots/iron>, <item:minecraft:stick>]);
Name: Remove Recipes
The following script will remove the Infusion Crafting Recipe for Cow Seeds.
ZenScript Copy// mods.mysticalagriculture.InfusionCrafting.remove(output as IItemStack);
mods.mysticalagriculture.InfusionCrafting.remove(<item:mysticalagriculture:cow_seeds>);