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 working on a mod that adds biomes to the Nether. I am wondering what the best way to generate resources in the biomes would be. I know that resources are generated in the ChunkProvider#populate method but the only issues with this is that each of my biomes are different than the default (e.g. different resources) and my mod allows other mods to add their own biomes. This is one of the ways I did it previously:

 

Class that controls generation:

https://github.com/LogicTechCorp/NetherEx/blob/4d840f7bc98d1862b230c916f4577a4fc770be74/src/main/java/nex/api/biome/feature/BiomeFeature.java

 

Where the stuff is generated:

https://github.com/LogicTechCorp/NetherEx/blob/4d840f7bc98d1862b230c916f4577a4fc770be74/src/main/java/nex/api/biome/NetherBiome.java#L32-L43

 

How the generators get added:

https://github.com/LogicTechCorp/NetherEx/blob/4d840f7bc98d1862b230c916f4577a4fc770be74/src/main/java/nex/world/biome/BiomeHell.java#L22-L29

 

Which would be the best way to do it:

 

Continue to use my previous method

Use the Biome#decorate method

Use IWorldGenerators

Still fire the TerrainGen Events in ChunkProvider#populate and subscribe to them

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.