Home Migration Guide Getting Started With Scripts Commands Examples
Generic JSON Recipes
This page relates to Mystical Agriculture, which has built-in support!

Mystical Agriculture Reprocessor Crafting

Reprocessor Crafting is NOT a type of IRecipeManager and normal removal methods will not work for it.

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:

script.zs
import mods.mysticalagriculture.ReprocessorCrafting;

Now you can reference the class like so:

script.zs
ReprocessorCrafting.addRecipe("reprocessor_test", <item:minecraft:diamond>, <item:minecraft:apple>);

Methods

The following script will add a recipe that will output a Diamond when an Apple is Reprocessed.

script.zs
// 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>);

The following script will remove the Reprocessor Crafting Recipe for Cow Essence.

script.zs
// mods.mysticalagriculture.ReprocessorCrafting.remove(output as IItemStack);
mods.mysticalagriculture.ReprocessorCrafting.remove(<item:mysticalagriculture:cow_essence>);