Alix_The_Alicorn Posted February 18, 2014 Posted February 18, 2014 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. Quote
Alix_The_Alicorn Posted February 18, 2014 Author Posted February 18, 2014 I also need access to an instance of World lol Quote
coolAlias Posted February 18, 2014 Posted February 18, 2014 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. Quote http://i.imgur.com/NdrFdld.png[/img]
Recommended Posts
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.