Solved How to decrease knockback on damage.

Discussion in 'Plugin Development' started by Tim_M, Sep 29, 2021.

  1. Offline


    I'm trying to recreate the anti knockback property of netherite armor, so that when you are punched, or a creeper explodes you wouldn't take as much knockback, but you would still take it. I could of course cancel playerdamageevent run a calculation then apply the damage and knockback, but was wondering if there is a better way.
  2. Offline


    As far as i know knockback is handled client-side. So your method sounds about right.
  3. Offline


    well, use a 1 tick delayed task, get the player's velocity and multiply by some number, that you want.....(less than 1 but more than zero in your case)
  4. Offline


    Alr thanks

Share This Page