Skip to content

Commands

MovementSync registers the following commands with xinbot. Arguments in <angle brackets> are required; arguments in [square brackets] are optional.

Position & Look

CommandUsageDescription
whereamiwhereamiShow current position and rotation. Alias: pos.
lookatlookat <x> <y> <z>Look at a coordinate.
lookatentitylookatentity <entityId>Look at an entity by its ID.
canseecansee <x> <y> <z>Check whether a point is visible from the bot's head position.

Movement

CommandUsageDescription
jumpjumpPerform a single jump.
walkwalk <direction> [ms]Walk in a direction for a duration (milliseconds).
gotogoto <x> <y> <z>Pathfind to a coordinate.
followfollow <entityId> [keepRadius]Continuously pathfind to follow an entity, keeping an optional radius.
rideride <entityId> / ride dismountMount an entity or dismount. Alias: mount.
movementmovement <pause|resume|cancel>Control the MovementController queue.
stopstopStop all movement and clear the active goal.

World & Blocks

CommandUsageDescription
getblockatgetblockat <x> <y> <z>Get block info at a coordinate. Alias: block.
ispassableispassable <x> <y> <z>Check whether a block is passable.
interactblockinteractblock <x> <y> <z> <start_dig|finish_dig|cancel_dig>Interact with / dig a block.

Entities & Inventory

CommandUsageDescription
entitiesentities [filter]List entities in the world, optionally filtered.
interactentityinteractentity <id> <attack|interact>Attack or interact with an entity.
inventoryinventoryShow the bot's inventory. Alias: inv.
containercontainer [list]Show the current open container's content. Alias: ct.

Debugging

CommandUsageDescription
debugdebugPrint debug state: position, velocity and current movement info. Alias: state.

Pathfinding vs. raw movement

goto and follow run the full pathfinder (D* Lite) and feed the result into the MovementController. walk and jump are raw, unplanned actions — handy for testing but they don't avoid obstacles.

Released under the GPL-3.0-or-later License.