I tried this in my generate method in my world generation class:
case(0):
if(world.getBiome(new BlockPos(chunkX, 64, chunkZ + random.nextInt(16))).getClass().equals(MineralBiome.class)) {
generateHuge(random, chunkX, chunkZ, world, chunkGenerator, chunkProvider);
break;
}
generateOverworld(random, chunkX, chunkZ, world, chunkGenerator, chunkProvider);
break;
And it worked until I made the biome have less weight, and it stopped generating. How can I have special generation so it works?