How to stop death animation for custom entity

Started by Jorgin Legal on

Topic category: Help with modding (Java Edition)

Last seen on 19:31, 13. Jul 2021
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to stop death animation for custom entity

So, i'm making an entity the player can spawn freely, and to prevent lag, i kill all entities of that kind before spawning a new one.

But, i am faced with a problem: the death animation makes no sense. What's supposedly happening is just teleportation of the entity, but because of the animation you can see it die, and doesn't make much sense(especially considering it isn't even a living being)

How do i remove the death animation? Or is there a better way to remove the entities without resorting to 'kill @e[type=potatoes_of_truth:super_dummy]'?

Please help, i have no idea how to do this. I'm reasonably Ok with coding, if you give me the code.

Thanks in advance!

Last seen on 20:17, 27. Oct 2022
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
what you could do is just…
Sat, 10/15/2022 - 17:18

what you could do is just teleport the entity to a position far in the void before the death animation.

Last seen on 23:44, 19. Apr 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Do you know how i could do…
Thu, 04/18/2024 - 10:49

Do you know how i could do that cause ive been having the same problems