prismarine-physics
prismarine-physics copied to clipboard
Implement flying (elytra and creative-like)
Does anybody know what the major obsticle is? Neither this nor baritone support elytra, despite the obvious benefit. I am assuming there is a reason.
for mineflayer the reason is nobody did it should probably take a few days
Found this: https://imgur.com/a/Vwyjl
and now baritone supports it https://github.com/cabaletta/baritone/blob/64a881f99035920f600ec950eb8de743a74532be/src/main/java/baritone/process/elytra/ElytraBehavior.java#L141
https://gist.github.com/samsartor/a7ec457aca23a7f3f120
There's this? Comments note a small change in code but that's it. It might give a good idea on how to do it. Idk any legal/licensing though if that's a concern(I don't think so but I'm no lawyer).
Nice, I also found similar looking code to that in MCP-Reborn's output:
- src/main/java/net/minecraft/world/entity/LivingEntity.java
I've been comparing all these methods, and they are all roughly similar with some bugs / negligable differences. I have an implementation that seems good, but I haven't tackled rockets or edge cases.
https://github.com/lkwilson/prismarine-physics/pull/1
I have a pr to help with this, but I'm not sure if I put things in the right spot: https://github.com/PrismarineJS/prismarine-physics/pull/106
I would also appreciate it if someone added creative/spectator support along with Elytra, currently trying to integrate it into the viewer