willemml / hl-mc-kt

Headless Minecraft Client written in Kotlin
GNU General Public License v3.0
46 stars 12 forks source link

Fix movement #17

Open willemml opened 3 years ago

willemml commented 3 years ago

Movement physics calculations need to be redone, gravity should be properly implemented to avoid bots getting kicked for fly.

Gjum commented 3 years ago

This uses minecraft-data https://github.com/Gjum/Botlin/blob/master/src/main/kotlin/com/github/gjum/minecraft/botlin/behaviors/BlockPhysics.kt#L140

I had some issues with multi-block structures (doors) in 1.12 where the hitbox depends on the state of an adjacent block; post-flattening should be easier.

willemml commented 3 years ago

That will be very helpful, thanks! I think that the physics were my main problems, though, the project is on hold right now as I would rather work on rust-mc.