PrismarineJS / mineflayer-navigate

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

TypeError: Cannot read property 'floored' of undefined #45

Closed catjacks38 closed 4 years ago

catjacks38 commented 4 years ago

Here's my code: bot.navigate.to(vec3(0,0,0));

I'm trying to make a navigation system to have it go to different positions in the world, but i keep getting this error and I don't know how to fix it.

rom1504 commented 4 years ago

The error means you're making make the bot go to a block that doesn't exist. Indeed 0,0,0 doesn't have any block.

On Wed, Jan 29, 2020, 00:06 nano38 notifications@github.com wrote:

Here's my code: bot.navigate.to(vec3(0,0,0));

I'm trying to make a navigation system to have it go to different positions in the world, but i keep getting this error and I don't know how to fix it.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/PrismarineJS/mineflayer-navigate/issues/45?email_source=notifications&email_token=AAR437VRY5H2XRQAR2HXZOLRAC26RA5CNFSM4KM3YG4KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IJMD4GQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR437TASY2WKSBHTGRPKJDRAC26RANCNFSM4KM3YG4A .