I have a variable in my block, private boolean active, and if I try to set it using this.active (which if this.active is true, it changes how that block renders), it changes ALL the blocks. Is there a reason for this?
Rollback Post to RevisionRollBack
I mod things. Check me out on twitter or on Espernet IRC at #TheSteamTank
All blocks of one type are one instance. Use World.setBlockMetadata instead.
I don't want to use metadata, that's already for something else. So even a variable in my block's code isn't local? What about furnaces? They have local variables? Is this not true?
Hmm... Any other ideas? Is there a way to replace a block without triggering breakBlock by the way?
Rollback Post to RevisionRollBack
I mod things. Check me out on twitter or on Espernet IRC at #TheSteamTank
A) Set a block to a burning state when something happens WITHOUT using metadata or calling that block's breakblock function like what's called with setBlockWithNotify
There's always your friendly local TileEntities. Poke around BlockContainer, BlockNote, and BlockSign to learn the ropes, then enjoy the ability to save any fields you want for any block in your world!
Plus, TileEntities come with the ability to add a TileEntityRenderer to your block, which can render fancy stuff like lit and unlit furnaces!
A) Set a block to a burning state when something happens WITHOUT using metadata or calling that block's breakblock function like what's called with setBlockWithNotify
Related code only if you know what is directly related. If you are unsure you can of course post it as a whole. My recommendation is Pastebin.com if your code exceeds the maximum post size.
Rollback Post to RevisionRollBack
- Quote my post if you want to make sure I read it -
I mod things. Check me out on twitter or on Espernet IRC at #TheSteamTank
Hmm... Any other ideas? Is there a way to replace a block without triggering breakBlock by the way?
I mod things. Check me out on twitter or on Espernet IRC at #TheSteamTank
I mod things. Check me out on twitter or on Espernet IRC at #TheSteamTank
Show your code then? Please
All 571 lines for my block file?
I want to know how to
A) Set a block to a burning state when something happens WITHOUT using metadata or calling that block's breakblock function like what's called with setBlockWithNotify
I mod things. Check me out on twitter or on Espernet IRC at #TheSteamTank
Plus, TileEntities come with the ability to add a TileEntityRenderer to your block, which can render fancy stuff like lit and unlit furnaces!
Related code only if you know what is directly related. If you are unsure you can of course post it as a whole. My recommendation is Pastebin.com if your code exceeds the maximum post size.