This page relates to Ars-Nouveau, which has built-in support!

Ars-Nouveau Enchanting Apparatus

Link to ars-nouveau-enchanting-apparatus

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

The following script will add a recipe to the Enchanting Apparatus that will output a Diamond, when Glass is enchanted with Dirt, an Apple and an Arrow on pedestals.

// <recipetype:ars_nouveau:enchanting_apparatus>.addRecipe(name as string, result as IItemStack, reagent as IIngredient, pedestalItems as IIngredient[])

<recipetype:ars_nouveau:enchanting_apparatus>.addRecipe("enchanting_test", <item:minecraft:diamond>, <item:minecraft:glass>, [<item:minecraft:dirt>, <item:minecraft:apple>, <item:minecraft:arrow>]);

The following script will remove all recipes from the Enchanting Apparatus that output the Ring of Lesser Discount.

// <recipetype:ars_nouveau:enchanting_apparatus>.removeRecipe(output as IItemStack);