Applied Energistics 2 does not have built in mod support, you will need AppliedEnergisticsTweakerfor this to work!

Applied Energistics 2 Grinder

The Grinder is a type of IRecipeManager and implements all the methods that are available to IRecipeManager's, such as removeRecipe() and removeAll().


Add Recipes

The following script will add two recipes to the Grinder that will do the following:

  1. Output an Apple after Grinding 4 Arrows and turning the Crank 5 times. 2) Output an Arrow and 50% of the time will also output a Diamond, after Grinding an Apple and turning the Crank 2 times.
// <recipetype:appliedenergistics2:grinder>.addRecipe(name as string, output as IItemStack, ingredient as IIngredientWithAmount, turns as int, optionalOutputs as MCWeightedItemStack...)

<recipetype:appliedenergistics2:grinder>.addRecipe("grinder_test", <item:minecraft:apple>, <item:minecraft:arrow> * 4, 5);
<recipetype:appliedenergistics2:grinder>.addRecipe("grinder_test_optional_outputs", <item:minecraft:arrow>, <item:minecraft:apple>, 2, [<item:minecraft:diamond> % 50]);

Remove Recipes

The following script will remove all Grinder recipes that output Flint.

// <recipetype:appliedenergistics2:grinder>.removeRecipe(output as IItemStack)