I have an idea that when the entity is dead, then that entity will explode. However, I use the @SubscribeEvent to subscribe LivingDeathEvent and put in this explode method, the entity just dies and doesn't cause anything
ps. My explode method has animation so when the entity dies I could see the animation is started and the entity turns red, then it just disappears and become smoke.
I have a solution which is when the entity is dead, just heal it instantly and execute the explode method, but it doesn't work. Could anyone help?