Started by
Avak00
on
Topic category: Advanced modding
I need the code to generate lakes using worldgenlakes
You need to change this code:
public void generateSurface(World world, Random random, int chunkX, int chunkZ) {
for (int i = 0; i < 10; i++) {
int x = chunkX + random.nextInt(16);
int y = random.nextInt(54) + 21;
int z = chunkZ + random.nextInt(16);
(new WorldGenMinable(block.getDefaultState(), 16)).generate(world, random, new BlockPos(x, y, z));
}
}
I know exactly what need to replace: worldgenminable with worldgenlakes, but this is not enough
Have you imported your custom WorldGen class?