Posted June 24, 201411 yr Hi, does Minecraft Forge has a player death event? I want to get the player who died and the killer of the player. Is this possible? I know, how to do this in Bukktit, but I didn't find anything in Minecraft Forge. Can anyone help me?
June 24, 201411 yr would the more generic "entityLivingDeath" event suit your needs? net.minecraftforge.event.entity.living.LivingDeathEvent; https://lh6.googleusercontent.com/-z5frUimWWu0/U4Wuz9xle4I/AAAAAAAABsE/q3eMXJIDXIM/s800/EmeraldCasinoSig.png[/img]
June 24, 201411 yr ^^^^^^^^^^^^^^^^^^ ninja'd whilst I looked for it Just do a if (event.entity instanceof PlayerEntity) { //yourcode } inside your method that handles the livingDeathEvent event. (The PlayerEntity I have not found - it is more likely EntityPlayer and it could be something else - learn to use your IDE and look) http://i1279.photobucket.com/albums/y523/textcraft/Jun%202014%20-%202/a77dd69ddfa9e622422c5e5cd7e377b14d5cdedec1b7a8e19dde68c9e22be6dfbf81219d3893f419da39a3ee5e6b4b0d3255bfef95601890afd8070929aa338b0dfc68d48355_zps0c847cf3.png[/img] I have a reputation for text walls. If you ask me a question I will most likely explain it in the most wordy way possible. -0 characters left
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.