Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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?

 

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?

  • Author

Thanks! That worked! :D now onto generating it in the world, wish me luck!

Guest
This topic is now closed to further replies.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.