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

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

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.

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

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

script.zs
// <recipetype:ars_nouveau:enchanting_apparatus>.removeRecipe(output as IItemStack);
<recipetype:ars_nouveau:enchanting_apparatus>.removeRecipe(<item:ars_nouveau:ring_of_lesser_discount>);