Expand description
A pathfinding plugin to make bots able to traverse the world.
Much of this code is based on Baritone.
Modules§
- astar
- costs
- goals
- The goals that a pathfinder can try to reach.
- mining
- moves
- rel_
block_ pos - simulation
- Simulate the Minecraft world, currently only used for tests.
- world
Structs§
- Calculate
Path Opts - Compute
Path - Executing
Path - A component that’s present on clients that are actively following a pathfinder path.
- Goto
Event - Send this event to start pathfinding to the given goal.
- Path
Found Event - Pathfinder
- A component that makes this client able to pathfind.
- Pathfinder
Debug Particles - A component that makes bots run /particle commands while pathfinding to show where they’re going. This requires the bots to have server operator permissions, and it’ll make them spam a lot of commands.
- Pathfinder
Plugin - Stop
Pathfinding Event
Traits§
Functions§
- add_
default_ pathfinder - calculate_
path - Calculate the
PathFoundEvent
for the given pathfinder options. - call_
successors_ fn - check_
for_ path_ obstruction - check_
node_ reached - check_
path_ obstructed - Checks whether the path has been obstructed, and returns Some(index) if it has been. The index is of the first obstructed node.
- goto_
listener - handle_
stop_ pathfinding_ event - handle_
tasks - path_
found_ listener - recalculate_
if_ has_ goal_ but_ no_ path - recalculate_
near_ end_ of_ path - stop_
pathfinding_ on_ instance_ change - tick_
execute_ path - timeout_
movement