Solved Play default minecraft player damage animation.

Discussion in 'Spigot Plugin Development' started by kowagatte, Jun 29, 2016.

  1. Is there any way to play the minecraft animation of the player being hurt. I am remaking the damage system,
    I cancel the damage event, so I was wondering, if there was a way to play the damage animation.
     
  2. I just took the easy way out and never cancelled the event and at the end of the event set the damage to 0 so it plays the damage animation but does 0 damage.
     
  3. Does anyone know? I am planning on trying to make it cause damage when there was no damage caused by the player, so I cannot just set it to 0 damage like kowagatted did.
     
  4. Like the player is not taking any damage in the first place? you can use the Damageable#damage(double Damage); and just deal 0 damage.
     
    • Useful Useful x 1