Posted August 14, 20169 yr 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.