Fluid Generation in World

Started by Avak00 on

Topic category: Advanced modding

Joined Oct 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Fluid Generation in World

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

Joined Dec 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Have you imported your…
Thu, 11/01/2018 - 11:12

Have you imported your custom WorldGen class?