PrismarineJS / mineflayer-navigate

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

Bots can't walk through Snow #6

Closed Darthfett closed 11 years ago

Darthfett commented 11 years ago

Bots seem incapable of walking through snow (block 78). It is treated as a solid block.

I am not sure why this is, as I see in mineflayer/lib/enums/blocks.json that the boundingBox is "empty".

andrewrk commented 11 years ago

snow is actually solid. the reason you thought snow is "empty" is because of https://github.com/superjoe30/mineflayer/issues/111

unless I am mistaken, snow has to be solid until we have improved physics, because there is a little tiny bounding box according to the server and we only support "block" and "empty"

Darthfett commented 11 years ago

Snow has no bounding box, the Notchian client allows you to walk through it (your Y does not change as you walk on/off snow).

Why did I "think snow was empty"?

andrewrk commented 11 years ago

OK sounds like this line can be fixed: https://github.com/superjoe30/mineflayer/blob/master/lib/enums/blocks.json#L726

Darthfett commented 11 years ago

Block 78, not block 80. Block 80 is the solid block, 78 is the thin block that lands on top of blocks when it's snowing.

andrewrk commented 11 years ago

hmm that's weird, you're right, needs investigation

andrewrk commented 11 years ago

works fine. you were using an old version of mineflayer