Posted August 30, 201411 yr Hello I'm working on my Advanced Dispensers Mod, and I have a Question. Is it possible to get the EntityLivingBase of the Entity who destroyed a Block? In 1.5 there was a function called onBlockDestroyedBy, which had the LivingBase as argument, but the onDestroyedByPlayer doesn't have this any more.
August 30, 201411 yr I don't think there is one with EntityLivingBase, but there is onBlockHarvested with an EntityPlayer instance. There is also onBlockPreDestroyed, but it doesn't have an EntityPlayer field. Lastly, you have the BlockEvent.BreakEvent you can use, with getPlayer(). BEFORE ASKING FOR HELP READ THE EAQ! I'll help if I can. Apologies if I do something obviously stupid. If you don't know basic Java yet, go and follow these tutorials.
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.