Posted May 31, 20187 yr I'm creating a mod where a given set of mobs are part of a wave, and when the player kills all of the enemies he is teleported onto the next level with a new wave. However, I've found a really strange problem. When creeper's explode, they are not firing ANY LivingDeath event.So far our mod is working ok, with all other kinds of enemies appropriately firing the LivingDeath event, but just not when a creeper explodes. Has anyone else had this kind of problem? If so, is there some other way to watch and react to creeper explosion deaths? Thanks for any insight anyone has! With the code below I'm logging all of the LivingDeath events. @SubscribeEvent void onDeath(LivingDeathEvent e) { if(e.getEntity().getEntityWorld().isRemote){ return; } Utils.getLogger().info("Enemy Dead: " + e.getEntity().getUniqueID()); }
May 31, 20187 yr Author Ok, that's quite surprising to me. Thank you very much for pointing me to the ExplosionEvent, that should solve my problem
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.