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.
Note that the pathfinder is highly optimized, but it will be very slow if it’s not compiled with optimizations enabled.
For smoother and more realistic path execution, also see
SimulationPathfinderExecutionPlugin.
Much of the pathfinder’s code is based on Baritone. <3
Modules§
- astar
- costs
- custom_
state - debug
- execute
- goals
- The goals that a pathfinder can try to reach.
- mining
- moves
- positions
- 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 - 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.
- stop_
pathfinding_ on_ world_ change