This page relates to Mystical Agriculture, which has built-in support!
Mystical Agriculture Reprocessor Crafting
Link to mystical-agriculture-reprocessor-crafting
Reprocessor Crafting is NOT a type of IRecipeManager and normal removal methods will not work for it.
Package
Link to package
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.ReprocessorCrafting;
Now you can reference the class like so:
ZenScript CopyReprocessorCrafting.addRecipe("reprocessor_test", <item:minecraft:diamond>, <item:minecraft:apple>);
Methods
Link to methods
Name: Add Recipes
The following script will add a recipe that will output a Diamond when an Apple is Reprocessed.
ZenScript Copy// mods.mysticalagriculture.ReprocessorCrafting.addRecipe(id as string, output as IItemStack, input as IIngredient);
mods.mysticalagriculture.ReprocessorCrafting.addRecipe("reprocessor_test", <item:minecraft:diamond>, <item:minecraft:apple>);
Name: Remove Recipes
The following script will remove the Reprocessor Crafting Recipe for Cow Essence.
ZenScript Copy// mods.mysticalagriculture.ReprocessorCrafting.remove(output as IItemStack);
mods.mysticalagriculture.ReprocessorCrafting.remove(<item:mysticalagriculture:cow_essence>);