PrismarineJS / mineflayer-navigate

mineflayer plugin which gives bots a high level 3d navigating API using A*
59 stars 22 forks source link

Digging when no path found? #5

Closed yocontra closed 11 years ago

yocontra commented 11 years ago

Is there an easy spot to plug in digging when a path can't be found?

andrewrk commented 11 years ago

It's tricky. You'd have to rewrite the core algorithm. However it is possible to add a parameter to the "cannotFind" event which contains the closest point that it can navigate to. Would that solve your issue?

andrewrk commented 11 years ago

You can use mineflayer-scaffold for this.