PrismarineJS / mineflayer-navigate

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

'stop' event is called upon arrival at destination #9

Closed Darthfett closed 11 years ago

Darthfett commented 11 years ago

Currently, during navigation the 'stop' event is fired even when a bot arrives successfully at his destination. Is there any way to have a 'stop' event that only fires when the bot is interrupted?

andrewrk commented 11 years ago

Currently, 'stop' is emitted under the following conditions:

What is the new list of conditions you would like 'stop' to be emitted for?

rom1504 commented 11 years ago

I think he wants an 'interrupted' which would be emitted under conditions 1 and 3.

Darthfett commented 11 years ago

Yes, what @rom1504 said.

andrewrk commented 11 years ago

0.0.4 has this event.