PrismarineJS / mineflayer-navigate

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

make it possible to find the path without moving #11

Closed rom1504 closed 11 years ago

rom1504 commented 11 years ago

It would be nice if it was possible to find the path to go to a position without moving. It can be used to know whether a position is reachable.

andrewrk commented 11 years ago

a workaround is respond to the "pathFound" event and immediately call "stop()"

vogonistic commented 11 years ago

I vote for a separation between following a path and finding it. The follow code would make a lot of sense in core mineflayer.

rom1504 commented 11 years ago

the workaround work only with a timeout of 100ms before stopping, i think it must be because the event pathFound is sent some time before the bot start to move (and can be stopped)

vogonistic commented 11 years ago

Can you see if #13 would work for you?

andrewrk commented 11 years ago

fixed by 4771e362316864be220e44bf310d5c645915eea2