Skip to content

Instantly share code, notes, and snippets.

Created May 12, 2017 17:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1e0abd14218551e61882138063c3a3e8 to your computer and use it in GitHub Desktop.
Save anonymous/1e0abd14218551e61882138063c3a3e8 to your computer and use it in GitHub Desktop.
package com.chocolatemod.worldgen;
import net.minecraft.world.gen.layer.GenLayer;
import net.minecraft.world.gen.layer.GenLayerVoronoiZoom;
import net.minecraft.world.gen.layer.GenLayerZoom;
public abstract class GenLayerChocolate extends GenLayer {
public GenLayerChocolate(long seed) {
super(seed);
}
public static GenLayer[] makeTheWorld(long seed) {
GenLayer biomes = new GenLayerBiomesChocolate(1L);
// more GenLayerZoom = bigger biomes
biomes = new GenLayerZoom(1000L, biomes);
biomes = new GenLayerZoom(1001L, biomes);
biomes = new GenLayerZoom(1002L, biomes);
biomes = new GenLayerZoom(1003L, biomes);
biomes = new GenLayerZoom(1004L, biomes);
biomes = new GenLayerZoom(1005L, biomes);
GenLayer genlayervoronoizoom = new GenLayerVoronoiZoom(10L, biomes);
biomes.initWorldGenSeed(seed);
genlayervoronoizoom.initWorldGenSeed(seed);
return new GenLayer[]{biomes, genlayervoronoizoom};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment