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()
.
Methods
Link to methods
Add Recipe
Link to add-recipe
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.
ZenScript Copy// <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>]);
Remove Recipes
Link to remove-recipes
The following script will remove all recipes from the Enchanting Apparatus that output the Ring of Lesser Discount.
ZenScript Copy// <recipetype:ars_nouveau:enchanting_apparatus>.removeRecipe(output as IItemStack);
<recipetype:ars_nouveau:enchanting_apparatus>.removeRecipe(<item:ars_nouveau:ring_of_lesser_discount>);