Skip to content

Enchanting Interface

Jhefferson Marques edited this page Feb 5, 2022 · 3 revisions

Enchanting Interface

Needing a enchanting table close to it, permits automatic enchanting and getting the enchants for an item.

Methods Description
getsEnchantFor(input:string, slot:number) By passing the name of the input inventory and a slot with a enchantable item, gets the enchants for the item
enchant(input:string, slot:number, resources:string) 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

Clone this wiki locally