Posted February 18, 201411 yr I need a way of accessing the position of the block being destroyed in Block.idDropped(). I am coding in 1.6. I need this to execute some code if a certain bool is true when the block is destroyed by any means.
February 18, 201411 yr Can't you do whatever it is you need to do in the breakBlock method? That gives you both the position and the world object, and is only called when the block is destroyed. If it's about dropping items, just don't drop any items by default, and drop them yourself from within the breakBlock method. http://i.imgur.com/NdrFdld.png[/img]
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.