Posted June 20, 201411 yr Hello MCF forums, I would like to know how to make only certain biomes spawn in my custom dimension. I have looked at the Nether chunk manager but i couldnt find any thing.
June 22, 201411 yr Hi Pure guess: WorldProvider.getBiomeGenForCoords WorldProvider.registerWorldChunkManager and WorldChunkManager.getBiomesForGeneration -TGG
June 22, 201411 yr Author Ummm.... i know that this is probably a stupid question but how would i use that? Here is a link to my code. http://pastebin.com/x6encRwH
June 22, 201411 yr In your WorldChunkManager you can override anything related to biomes to only return your biome, for example: public BiomeGenBase biomeToUse = (Your Biome); public WorldChunkManager(NAME)(BiomeGenBase par1BiomeGenBase, float par2) { super(par1BiomeGenBase, par2); allowedBiomes.clear(); this.biomeToUse = (Your Biome); allowedBiomes.add((Your Biome)); } @SuppressWarnings("rawtypes") public boolean areBiomesViable(int par1, int par2, int par3, List par4List) { return par4List.contains(this.biomeToUse); } public BiomeGenBase getBiomeGenAt(int par1, int par2) { return this.biomeToUse; } public BiomeGenBase[] getBiomesForGeneration(BiomeGenBase[] par1ArrayOfBiomeGenBase, int par2, int par3, int par4, int par5) { if (par1ArrayOfBiomeGenBase == null || par1ArrayOfBiomeGenBase.length < par4 * par5) { par1ArrayOfBiomeGenBase = new BiomeGenBase[par4 * par5]; } Arrays.fill(par1ArrayOfBiomeGenBase, 0, par4 * par5, this.biomeToUse); return par1ArrayOfBiomeGenBase; } public BiomeGenBase[] getBiomeGenAt(BiomeGenBase[] par1ArrayOfBiomeGenBase, int par2, int par3, int par4, int par5, boolean par6) { return this.loadBlockGeneratorData(par1ArrayOfBiomeGenBase, par2, par3, par4, par5); } I also made my chunk manager extend WorldChunkManagerHell.
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.