//Sets the spawn structure at y 58
setSpawnStructure("deserted_island03", 58)

//Creates a new LayerGenerator and saves it as a variable
layers = new LayerGenerator()

//Adds a layer of bedrock in y 0
layers.addLayer(0~0, <minecraft:bedrock>)

//Adds a layer of water from y 1 to y 26
layers.addLayer(1~26, <minecraft:stone>)

//Adds a layer of water from y 27 to y 32
layers.addLayer(27~32, <minecraft:sand>)

//Adds a layer of water from y 33 to y 60
layers.addLayer(33~60, <minecraft:water>)

//Adds the layer generator to the dimension
addGenerator(layers)

//overworld = new OverworldGenerator()
addGenerator(overworld)

//Adds the vanilla caves.
caves = new VanillaCaveGenerator()
addGenerator(caves)

//Adds the vanilla ravines.
ravines = new VanillaRavineGenerator()
addGenerator(ravines)

//Adds the various structures of the overworld.
generateMineshaft()
generateVillage()
generateStronghold()
generateTemple()
generateMonument()

//Add laval lakes for below sea level. This are fairly common.
lavaLake = new VanillaLakeGenerator(<minecraft:lava>)
lavaLake.setSpawnChance(32)
lavaLake.setHeight(8, 22)
addGenerator(lavaLake)

//Adds vanilla dungeons.
dungeon = new VanillaDungeonGenerator()
addGenerator(dungeon)

//Generates animals.
animals = new VanillaAnimalGenerator()
addGenerator(animals)

//Adds vanilla decorations. This includes trees, ores, etc.
decoration = new VanillaDecorationGenerator()
addGenerator(decoration)