prismarine-physics icon indicating copy to clipboard operation
prismarine-physics copied to clipboard

Implement flying (elytra and creative-like)

Open Karang opened this issue 4 years ago • 8 comments

Karang avatar Jul 05 '20 23:07 Karang

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.

blueforesticarus avatar Nov 15 '21 06:11 blueforesticarus

for mineflayer the reason is nobody did it should probably take a few days

rom1504 avatar Nov 15 '21 16:11 rom1504

Found this: https://imgur.com/a/Vwyjl

lkwilson avatar Aug 06 '23 17:08 lkwilson

and now baritone supports it https://github.com/cabaletta/baritone/blob/64a881f99035920f600ec950eb8de743a74532be/src/main/java/baritone/process/elytra/ElytraBehavior.java#L141

lkwilson avatar Aug 17 '23 01:08 lkwilson

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).

Vakore avatar Aug 17 '23 01:08 Vakore

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

lkwilson avatar Aug 17 '23 01:08 lkwilson

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

lkwilson avatar Aug 19 '23 21:08 lkwilson

I would also appreciate it if someone added creative/spectator support along with Elytra, currently trying to integrate it into the viewer

zardoy avatar Aug 22 '23 23:08 zardoy