Loom
Allows the for banner manipulation
Functions | Description |
---|---|
paintBanner(input, bannerSlot, dyeSlot, pattern) | Paints a pattern on a banner (consumes dyes equivalent to the quantity of banners) |
clearBanner(input, slot) | Clear all patterns on a banner |
paintBanner(input, bannerSlot, dyeSlot, pattern)
Description
Paints a pattern on a banner (consumes dyes equivalent to the quantity of banners)
Parameters
- input: string - Inventory where the items are located
- bannerSlot: number - Slot referring to the banner to be painted
- dyeSlot: number - Slot referring to the dye used to paint
- pattern: number - An integer that defines a banner pattern
Returns
- boolean - The state of the operation or if there are bees inside of the hive
- string - Error message, If there is a failure on the operation
clearBanner(input, slot)
Description
Clear all patterns on a banner
Parameters
- input: string - Inventory where the items are located
- slot: number - Slot referring to the banner to be cleared
Returns
- boolean - The state of the operation or if there are bees inside of the hive
- string - Error message, If there is a failure on the operation