Jump to content

[1.8][SOLVED] Leaves Not Decaying


saxon564

Recommended Posts

Pretty self explanatory, I know the issue is the 'Decayable" property is not getting set to true, but for some reason, even when I try to force it to be true, it remains false.

 

Leaf class here

 

Sapling class here

 

Tree generator class here

 

All these classes are on github so they are easier to read.

 

Does anyone have any idea as to why the leaves are not being set with Decayable true?

 

Link to comment
Share on other sites

Solution Found Leaves will now decay

After posting a previous answer which on further testing was bugged which I removed,

I have since found the answer. The Easiest way for me as I am too lazy to copy and paste the code from my class is to provide a github link below.

Look here and look at getStateFromMeta and getMetaFromState.

Also take a look at onBlockPlaced as it fixes the way that if you place a leaf block it will set the decayable property to true.

Hope this helps

Did you really need to know?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.