Posted March 17, 20169 yr I had this in my 1.7.10 mod if(metadata > 3) To see if my furnace was burning. How would I do this in blockstate form? [shadow=gray,left][glow=red,2,300]KEEGAN[/glow][/shadow]
March 17, 20169 yr Have a BOOLEAN property for BURNING - check out any of the vanilla toggleable blocks such as doors, levers, pressure plates, etc. All of them have some sort of boolean property. Do the same. http://i.imgur.com/NdrFdld.png[/img]
March 17, 20169 yr If you extended the vanilla BlockFurnace class, then there's already a boolean "isBurning". It's not a property, perhaps because furnace block types get swapped instead of changing state. The boolean is private, but you can crack it using reflection to force the field to be readable. Alternatively, you could simply have your constructor save the isBurning parameter into your own copy (mimic the vanilla block's constructor). Don't forget to call super. The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.
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.