block continoues Elytra Boost

Discussion in 'Plugin Development' started by Loopy, Dec 10, 2020.

Thread Status:
Not open for further replies.
  1. Offline

    Loopy

    Hey all,

    as you can already read in the title above, I played arround with elytras. When you activate a rocket while flying it doesnt only set your velocity once, its a continoues Boost. Is there any way i could block or cancel all the upcoming Velocity changes, when the rocket gets activated? I do not want to cancel the PlayerItemConsumeEvent tho..
     
  2. Offline

    Kars

    1. On rocket fire, save player's velocity.
    2. On the next tick, set player's velocity to the saved value.
    If the boost happens continuously like you said, you will have to repeat this process. This will be tricky. It could be doable but you would have to experiment with different velocity values.
     
    Loopy likes this.
Thread Status:
Not open for further replies.

Share This Page