Beehive Interface
Allows retriving information about beehives, and also colleting either the honey comb, or honey bottles using any computer or turtle
The Beehive Interface needs an Beehive or Nest in any of the sides of it to work.
Functions | Description |
---|---|
hasBees() | Check if bees are present on the hive |
getBeeCount() | Checks how many bees are in the hive |
gotFireNear() | Checks if there is fire near the hive |
getBees() | Gets the state of the bees in the hive |
getHoneyLevel() | Checks the state of the honey inside the hive |
collectHoney(resources, output, bottled) | Collects the honey |
hasBees()
Description
Check if bees are present on the hive
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
getBeeCount()
Description
Checks how many bees are in the hive
Returns
- boolean | number - The state of the operation or the number of bees present
- string - Error message, If there is a failure on the operation
gotFireNear()
Description
Checks if there is fire near the hive
Returns
- boolean - The state of the operation or the if there is fire close to the hive
- string - Error message, If there is a failure on the operation
getBees()
Description
Gets the state of the bees in the hive
Returns
- boolean | table - The state of the operation or the state of the bees on the hive
- string - Error message, If there is a failure on the operation
getHoneyLevel()
Description
Checks the state of the honey inside the hive
Returns
- boolean | number - The state of the operation or a number representing the honey level (1..5)
- string - Error message, If there is a failure on the operation
collectHoney(resources, output, bottled)
Description
Collects the honey as honey bottles or honeycombs
Parameters
- resources: string - The input from where to source bottles or shears
- output: string - The place where to put the collected resources
- bottled: boolean - If true the will collect honey bottles, if false will collect honeycombs
Returns
- boolean - The state of the operation
- string - Error message, If there is a failure on the operation
Usage