Jump to content

Recommended Posts

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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