DestructEntityEvent - How to get all damage Sources

Hey,
i’m currently developing a plugin where i need to get all the damage sources of a dieing Entity (Zombie, Skeleton ,…).

I’ve already discovered the DestructEntityEvent but my problem is the following:

  1. I hit a Zombie with a sword one time
  2. I light the Zombie until he dies
  3. The DestructEntityEvent fires, but the only damage source i get is Fire

Now my question is, if there’s any possibility to get all the damage sources which have forced the Entitys death and if not so, do you guys have any idea for a workaround?

Thank you!

Tthe event is called when an entity is removed from the world - chunk unload, player logout, death…

DestructEntityEvent.Death is called when entity dies there is no logical reason why this event should hold data containing all damagetypes which an entity took during its entire lifetime.

If you want to track this kind of stuff look for DamageEntityEvent

1 Like

You’re also welcome to track this information yourself.

Even better, write it in a self-contained plugin, along with more like it, and release it as a developer resource.