Fluid Generation in World

Started by Avak00 on Mon, 10/15/2018 - 12:11

Topic category: Advanced modding

Last seen on 14:39, 15. Oct 2018
Joined Oct 2018
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Fluid Generation in World
Mon, 10/15/2018 - 12:11

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

Last seen on 18:08, 17. Nov 2018
Joined Dec 2016
User points:

Statistics:

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

Have you imported your custom WorldGen class?