How can I disable the animation of an entity falling after death

Started by k0vsh1k on

Topic category: Help with modding (Java Edition)

Last seen on 11:20, 22. Dec 2023
Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I disable the animation of an entity falling after death

I made an animation of the character's death, but because of the animation of the fall after death, it looks terrible. How can I disable it?

Last seen on 08:09, 24. Apr 2024
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The Geckolib plugin already…
Sun, 01/29/2023 - 01:08

The Geckolib plugin already has that, but if you ar not using the plaugin ... then add the followin to your entity's renderer.



@Override
protected float getDeathMaxRotation(TesterEntity entityLivingBaseIn) {
return 0.0F;
}//TesterEntity is your custom entity's name