move

Starts or stops bot movement and rotation.

Bot.move(instruction, state);

Input

Variable

Required

Description

instruction

yes

The movement instruction. One of the following:
"FORWARD" – start/stop forward movement
"BACKWARD" – start/stop backward movement
"LEFT" – start/stop turning left
"RIGHT" – start/stop turning right
"FLY" – start/stop flying
"STOP" – stops all movements

state

yes

The control state of the instruction:
"START" – starts the instruction
"STOP" – stops the instruction

Output

Function returns a Promise with the following data:

Variable

Type

Description

success

bool

True if command completed successfully

error

string

Error string if command has failed

Details

This function allows direct control over the bot’s movement.

It may be slightly laggy — for more precise movement, use Bot.walkTo() instead.
For tracking movement updates, use the self_position event, which reports bot position changes.

Examples

Bot.move("FORWARD", "START");

// Walk forward for 2 seconds

await process.sleep(2_000);

Bot.move("FORWARD", "STOP");