Posted October 22, 201410 yr I'm trying to add integer to player NBT when my mob is dead. And also the integer must be added to player who killed it. I don't know how to do it. Thx
October 22, 201410 yr your best bet is probably to use LivingDeathEvent to detect when your mob dyes and you should also be able to get the player that killed it. I am the author of Draconic Evolution
October 22, 201410 yr Also use the IExtendedEntityProperties to save your value instead of trying to inject your data into the players NBT. Here's a good tutorial on how to do it: http://www.minecraftforum.net/forums/mapping-and-modding/mapping-and-modding-tutorials/1571567-1-7-2-1-6-4-eventhandler-and?comment=2 Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! | mah twitter This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.
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.