
setCloudHeight(-1)

//Creates a new SkyIslandType. The argument is a biome id.
lapis = new SkyIslandType("minecraft:void")
//Sets the block the island is made of. Defaults to stone. Look at a block in world and use the command `/bnb block` to generate the syntax.
lapis.setMainBlock(<minecraft:lapis_block>)
//Disables biome block replacement
lapis.disableBiomeBlockReplacement()
//Disables biome decorations
lapis.disableDecorations()
//Disables initial animal spawning
lapis.disableAnimals()

iron = new SkyIslandType("minecraft:void")
iron.setMainBlock(<minecraft:iron_block>)
iron.disableBiomeBlockReplacement()
iron.disableDecorations()
iron.disableAnimals()

gold = new SkyIslandType("minecraft:void")
gold.setMainBlock(<minecraft:gold_block>)
gold.disableBiomeBlockReplacement()
gold.disableDecorations()
gold.disableAnimals()

diamond = new SkyIslandType("minecraft:void")
diamond.setMainBlock(<minecraft:diamond_block>)
diamond.disableBiomeBlockReplacement()
diamond.disableDecorations()
diamond.disableAnimals()

emerald = new SkyIslandType("minecraft:void")
emerald.setMainBlock(<minecraft:emerald_block>)
emerald.disableBiomeBlockReplacement()
emerald.disableDecorations()
emerald.disableAnimals()

redstone = new SkyIslandType("minecraft:void")
redstone.setMainBlock(<minecraft:redstone_block>)
redstone.disableBiomeBlockReplacement()
redstone.disableDecorations()
redstone.disableAnimals()


skyIslands = new SkyIslandGenerator()
skyIslands.setRegionSize(29)
addGenerator(skyIslands)



//Adds sky islands. Arguments are radius, number of times to attempt to generate in each region, and whether each island should choose a random type (true), or if types should be used in order (false).
medium = skyIslands.addSkyIslands(50, 32, true)
//Adds a SkyIslandType to the island generator.
medium.addType(lapis)
medium.addType(iron)
medium.addType(gold)
medium.addType(diamond)
medium.addType(emerald)
medium.addType(redstone)

small = skyIslands.addSkyIslands(25, 64, true)
small.addType(lapis)
small.addType(iron)
small.addType(gold)
small.addType(diamond)
small.addType(emerald)
small.addType(redstone)

tiny = skyIslands.addSkyIslands(10, 128, true)
tiny.addType(lapis)
tiny.addType(iron)
tiny.addType(gold)
tiny.addType(diamond)
tiny.addType(emerald)
tiny.addType(redstone)

sky = setSkyRenderer()
//top, bottom, north, south, east, west

night = sky.addSkybox("test:textures/skybox/night.png")
day = sky.addSkybox("test:textures/skybox/day.png")

//Celestial angle range, opacity range
//Sunset
day.addAlpha(0.19904304~0.29625022, 1~0)
//Night
day.addAlpha(0.29625022~0.719889, 0~0)
//Sunrise
day.addAlpha(0.719889~0.8037514, 0~1)

//Lazy method for adding a sun and moon since I don't want to make the effort for proper custom ones yet.
sky.addSunMoon()

//Fog
//Day
addFogColor(#2F80C1)
//Sunset
addFogColor(#22053c, 0.19904304~0.29625022, 0~1)
//Night
addFogColor(#22053c, 0.29625022~0.719889, 1~1)
//Sunrise
addFogColor(#22053c, 0.719889~0.8037514, 1~0)

captureTeleports()