OnEntityDeath doesn't work when tree explodesSolved

When a tree is destroyed by being cut down or blown up, for some reason the OnEntityDeath hook is not called. What could be the replacement for this?

OnEntityKill solves this problem

Locked automatically