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

I am having trouble finding the method, or variables, in BlockSapling to be able to use four saplings + bonemeal to generate my custom tree. I can get the Big and normal trees and huge trees to work with one sapling, but I want to use four like you would with a jungle tree.

 

Any help is appreciated, thanks.

How do you logically thing it would work?

 

and what code have you tried to use?

 

Edit:

Okay here's some hints:

You can use the method of World called getBlockId(int, int, int) which gets the block ID of the block at coords (x,y,z) you pass into it. Use that to check for which blocks are where in relation to the current block :)

If you guys dont get it.. then well ya.. try harder...

  • 3 weeks later...
  • Author

How do you logically thing it would work?

 

and what code have you tried to use?

 

Edit:

Okay here's some hints:

You can use the method of World called getBlockId(int, int, int) which gets the block ID of the block at coords (x,y,z) you pass into it. Use that to check for which blocks are where in relation to the current block :)

 

I see where you are coming from, and I might need a little more to go on about the coords and all, I haven't really dabbled to much into that to be familiar with how that works.

 

Though in the sapling class there is a line that checks for "isSameSapling" I am just not understanding why it is not working for my custom sapling.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

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.