One of my mod needs to be able to force kill zombies when they are hit by a player (in EEHitBy).
It worked perfectly fine with 1.19 and before
Since the 1.20 I'm still able to kill the zombie in EEHitBy but now the EEKilled doesn't identify the source anymore, it just use the zombie itself.
Zombies who commit suicide can makes sense (in some way) but it makes my mod unusable with mods like HeroesAndBandits or ExpansionHardLine and lot of other mod that need to identify the killers to give them rewards.
I use "SetHealth(0);" to kill zombies I tried "DecreaseHealth" too, maybe there is a more appropriate way I don't know.