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

Started by k0vsh1k on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Jan 2023
Points:
303

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
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?

Active 1 month ago
Joined May 2021
Points:
826

User statistics:

  • Modifications: 4
  • Forum topics: 11
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 353
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