Jump to content

Recommended Posts

Posted

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());
 

}

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.