-
Notifications
You must be signed in to change notification settings - Fork 2
Enchanting Interface
Jhefferson Marques edited this page Jan 24, 2022
·
3 revisions
Needing a enchanting table close to it, permits automatic enchanting and getting the enchants for an item.
| Methods | Description |
|---|---|
| getsEnchantFor(input, slot) | By passing the name of the input inventory and a slot with a enchantable item, gets the enchants for the item |
| enchant(input, slot, resources) | By passing the name of the input inventory, a slot with a enchantable item and a resources input inventory, enchants the passing item, and consumes 1 Lapis Lazuli and 8 Bottles of Enchanting from the resources inventory |
| disenchant(input, slot, [collector] ) | By passing the name of the input inventory, a slot with a enchanted item and optionally the name of a XP collector for retriving the XP, clears all the enchants in the item |