Grindstone
Allows interactions with the grindstone
Functions | Description |
---|---|
combine(from, fromSlot, resource, resourceSlot) | Combine items following the rules of the grindstone |
disenchant(from, slot, [ collector ]) | Desenchants an item |
combine(from, fromSlot, resource, resourceSlot)
Description
Combine items following the rules of the grindstone
Paramenters
- from : string - The inventory from where the base item is located
- fromSlot : number - The slot where the base item is present
- resources : string - The inventory from where the item that will be combined is located
- resourcesSlot : number - The slot where the combined item is present
Returns
- boolean - The state of the operation
- string - Error message, If there is a failure on the operation
disenchant(from, slot, [ collector ])
Description
Desenchants an item
Paramenters
- from : string - The inventory from where the item is located
- slot : number - The slot where the item is present
- ?collector : string - An experience collector to recieve the XP from the disenchanting process
Returns
- boolean - The state of the operation
- string - Error message, If there is a failure on the operation