06-16-2012, 09:23 PM
I was playing with the code a bit and almost managed to get leaves decay working.
Here is my code: https://dl.dropbox.com/u/21041937/leaves.patch
Let me know if I you found any mistakes in the code. I'm still learning how to program.
Quote:If bit 0x4 is set, the leaves are permanent and will never decay. This bit is set on player-placed leaf blocks and overrides the meaning of bit 0x8.Works.
Quote:If bit 0x8 is set, the leaves will be checked for decay. The bit will be cleared after the check if the leaves do not decay.Works.
Quote:The bit will be set again whenever a block adjacent to the leaves is changed.I have no idea where to implement this. Do I need to make a separate simulator just for setting metadata?
Here is my code: https://dl.dropbox.com/u/21041937/leaves.patch
Let me know if I you found any mistakes in the code. I'm still learning how to program.