Skip to content

DroneV2 Module

The droneV2 module expands the standard drone controls with extra movement and gear inspection tools.


FunctionReturnsDescription
droneV2.goto(x, z)voidMoves the drone directly to the given coordinates.
droneV2.doSpin()voidPlays a spin animation.
droneV2.doWobble()voidPlays a wobble animation.
droneV2.doBig()voidPlays the enlargement animation.

FunctionReturnsDescription
droneV2.lock()voidLocks the Plant under it.
droneV2.unlock()voidUnlocks the plant.
droneV2.isLocked()booleanReturns whether the plant under is locked.
lau-compiler.exe
if not droneV2.isLocked() then
droneV2.lock()
print("Status: plant Locked")
end
OUTPUT:
Status: Movement Locked

FunctionReturnsDescription
droneV2.swap(dir)voidSwaps the crop under the drone one tile in the given direction.
droneV2.getGear()Enum.GearReturns the current gear.
droneV2.hasGear()booleanReturns whether a gear is equipped.
droneV2.getGearName()stringReturns the gear name.
droneV2.getGearDuration()numberReturns the current gear duration.
droneV2.getFertilizer()numberReturns the fertilizer amount.
droneV2.getManualWater()numberReturns the manual water amount.
droneV2.getMachineWater()numberReturns the machine water amount.
droneV2.getLightning()numberReturns the lightning charge amount.