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

Hi hello, I continued working with my mod and at the moment I have

a full new world generation with my own world generator and my

own ores, but the question that I want to do is...

 

At the moment I want to add a specific ore to a specific biome because

my world generator is creating all my ores in all my biomes. I think is

possible to do but is the first time that I doing this case. I was trying to

do all the morning watching the code of the e.hills to see the

code but the code of the e.hills is not working.

 

I hope someone know how to do to help me.

 

Thanks.

 

  • Author

Thanks is working really good :)

 

This is the code that I did in my worldgenerator in case that someone need to do the same thing.

 

 

 

BiomeGenBase biomeGenBase = world.getWorldChunkManager().getBiomeGenAt(x+16, y+16);

if (biomeGenBase == Biome that we want to add the specific ore)

{

this.addOreSpawn(Our Ore, world, random, x, y, 16, 16, 5+random.nextInt(5), 5, 0, 100);

}

 

 

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.