PrismarineJS / mineflayer

Create Minecraft bots with a powerful, stable, and high level JavaScript API.
https://prismarinejs.github.io/mineflayer/
MIT License
4.92k stars 904 forks source link

Player hitbox fixes #3382

Closed AreaDenial closed 2 months ago

AreaDenial commented 4 months ago

Initialize width and height on the bot entity during login Add eyeHeight property to the bot entity, which updates on crouch/uncrouch Change raytracing and visibility functions to use bot.entity.eyeHeight instead of bot.entity.height

extremeheat commented 4 months ago

Alot of this entity logic should really be moved to prismarine-entity I think over the messy dynamic object extension code at the moment in entity.js. But the present PR seems to be ok.