Posted March 25, 201411 yr 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.
March 25, 201411 yr 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.