DarkStorm652 / DarkBot

Minecraft thin client and automation framework
BSD 2-Clause "Simplified" License
124 stars 53 forks source link

Path finding support for block bounding boxes. #25

Open FusHerkA opened 10 years ago

FusHerkA commented 10 years ago

This functionality is required for several block types, including slabs and stairs.

LefsFlare commented 9 years ago

Old news, since the bot was coded with floats, if the Y coordinate has a .5 at the back, it's pathfinding code cannot make make a patch, thus it gets stuck on slabs. Interestingly enough, because of this bug, it never walks across half slabs, only full blocks.

t81lal commented 9 years ago

@LefsFlare positions are doubles https://github.com/DarkStorm652/DarkBot/blob/master/src/main/java/org/darkstorm/darkbot/minecraftbot/world/entity/Entity.java#L10

LefsFlare commented 9 years ago

Oh well, I didn't check. I do know that the path-finding code doesn't support decimals very well.

DarkStorm652 commented 9 years ago

https://github.com/DarkStorm652/DarkBot/commit/67e7898a7eec95684d804d7eeafa8256b4b2f4f5

I'm currently just adding bounding boxes of other blocks and I will close this and merge the development branch once complete.