Skip to content

Drone Module

The drone module controls movement, farming actions, and tile inspection.


FunctionReturnsDescription
drone.move(dir)voidMoves one tile in the given direction.
drone.getPosition()number, numberReturns the current X and Z coordinates.
drone.doFlip()voidPerforms a backflip animation.

FunctionReturnsDescription
drone.plant(seed)voidPlants the specified seed.
drone.useItem(item)voidUses an item on the current tile.
drone.crop()voidClears the tile or harvests a ground crop.
drone.harvest()voidPicks fruit without destroying the plant.
drone.canCrop()booleanReturns true when the current plant can be cropped.
drone.canHarvest()booleanReturns true when the current fruit can be harvested.
lau-compiler.exe
print("Scanning: " + drone.getPlant())
print("Can crop: " + drone.canCrop())
OUTPUT:
Scanning: Wheat Can crop: true

FunctionReturnsDescription
drone.getPlant()stringThe name of the plant below the drone.
drone.getFruit()stringThe name of the fruit on the plant.
drone.status()Enum.DroneStatusReturns the current drone status.