Expand description
A pathfinding plugin to make bots able to traverse the world.
For the new functions on Client that the pathfinder adds, see
PathfinderClientExt.
Much of this code is based on Baritone.
Modules§
- astar
- costs
- custom_
state - debug
- 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 Ctx - 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
Opts - Configuration options that the pathfinder will use when calculating and executing a path.
- Pathfinder
Plugin - Stop
Pathfinding Event
Traits§
Functions§
- add_
default_ pathfinder - calculate_
path - Calculate the
PathFoundEventfor 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.
- goto_
listener - handle_
stop_ pathfinding_ event - handle_
tasks - path_
found_ listener - player_
pos_ to_ block_ pos - Convert a player position to a block position, used internally in the pathfinder.
- recalculate_
if_ has_ goal_ but_ no_ path - recalculate_
near_ end_ of_ path - stop_
pathfinding_ on_ instance_ change - tick_
execute_ path - timeout_
movement