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.

Strontium

Members
  • Joined

  • Last visited

Everything posted by Strontium

  1. Is there a way to get an array of all loaded resources (not resourcepacks)? I want to be able to get an array of all shaders avalible under minecraft:shaders/post. I've looked at getAllResources(), but it doesn't look like it does this specific thing. Thanks.
  2. Thank you! I didn't realize the event fired before the tree was actually placed... so thats why the sapling is there, I guess. If anyone in the future ends up here looking for a solution: I just added if (!(event.getWorld().getBlockState(event.getPos()).getBlock() instanceof BlockSapling)) return; to the beginning of my function so that the rest of the code only runs if there is a sapling.
  3. Hi. I am trying to use an event to run some code whenever a Sapling grows into a Tree (using SaplingGrowTreeEvent). The event DOES work, however, I noticed it fires every time a tree generates in the world, not just growing from a sapling. Is there any way to check if the tree is from a sapling, and not worldgen?

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.