Home Getting Started With Scripts Using this wiki Commands CTGUI Global functions Bracket Handlers

Enchanter

Package

import mods.enderio.Enchanter;

Methods

- IEnchantmentDefinition output The output enchantment.

- IIngredient input The item that it used to make this enchantment.

- int amountPerLevel The number of input items per level of enchantment.

- double costMultiplier Used to modify how expensive the recipe is.

Addition

script.zs
mods.enderio.Enchanter.addRecipe(IEnchantmentDefinition output, IIngredient input, int amountPerLevel, double costMultiplier);
mods.enderio.Enchanter.addRecipe(<enchantment:minecraft:sharpness>, <minecraft:prismarine_shard>, 32, 60);

Removal

script.zs
mods.enderio.Enchanter.removeRecipe(IEnchantmentDefinition output);
mods.enderio.Enchanter.removeRecipe(<enchantment:minecraft:sharpness>);