Skip to content

Instantly share code, notes, and snippets.

@keybounce
Last active August 29, 2015 14:19
Show Gist options
  • Save keybounce/96a4743fd3fd995ec9a3 to your computer and use it in GitHub Desktop.
Save keybounce/96a4743fd3fd995ec9a3 to your computer and use it in GitHub Desktop.
Silly Biome Tops, Biome Tweaker
#Set top and filler for all biomes
# Coarse dirt, and Sandstone are "catchmes" for COG. Permits trees to be planted at worldgen.
# COG will later turn the dirt into netherrack and lava, and the sandstone into sandstone, netherrack, lava.
# Harder wildlife will kill the trees, and the saplings will "time out" with the unplantable ground
#
# NB: None of those will support unstable stone ... Enjoy caving
## So, coarse dirt does not work. That means normal grass/dirt as normal.
# COG will have to catch grass, and look deep -- grass can easily make it down to 59.
# Sandstone still works in filler.
# Shores, beaches, get sand normally (stone beach gets gravel ... maybe include that in limonite?)
# But deserts, mesas ... those sand-tops need to be "nastified" by COG, so we set them to the grass markers here.
## ** Ack, Mesa!
# Mesas will not work correctly unless they are sand and stained_hardened_clay.
# Period.
#
# Caves / ravines will not carve correctly with any other top/filler.
# What this means: Mesas have to look normal here, and tweaked in COG.
#
# Hardened clay, and stained hardened clay, can be matched easily. The top block (red sand)
# can be detected. So all the "nethering", netherrack, air pockets, etc, all has to be COG.
# Sandstone filler marker, lava oceans
allBiomes = forAllBiomesExcept(14, 37-39, 40-58, 163-167)
## EXCLUDE TF !! -- 40-58
# Exclude mesas - 37-39, 165-167
# Exclude savanna M's 163-164
# and mushroom islands (14)
#
# TF is left alone.
# Mesas have to be tweaked with COG only.
# Savanna M's are left alone (normal 163, plateau 164)
# Savanna M's, and Mesa plateau M's (M 166, FM 167) , are left as the "normal" vanilla biomes.
# Bryce (165) can be tweaked in COG.
# ** Surface block cannot be changed without clobbering spawns.
# NB: I think it can be changed to grass (permits identifying surface block).
# ** COG can/will look for grass.
#
# The ability of substitute to look for only the top of the ground won't work if
# grass has spread into cave openings, or if there are overhangs. That can happen
# anywhere. So, we have to have an explicit "top block" target for it.
#
# Hence, I really need "grass" to work in all of those biomes.
allBiomes.set("topBlock", "minecraft:grass")
allBiomes.set("fillerBlock", "minecraft:sandstone")
allBiomes.set("liquidFillerBlock","minecraft:lava")
# Except mushroom island!
mushroom=forBiomes(14)
mushroom.set("topBlock", "minecraft:mycelium")
mushroom.set("fillerBlock", "minecraft:sandstone")
mushroom.set("liquidFillerBlock","minecraft:lava")
beaches = forBiomesOfTypes("BEACH", "RIVER")
# Mushroom island shore (mycelium and dirt) is a beach.
# Stone beach (stone top and filler) is a beach
beaches.set("topBlock", "minecraft:sand")
## beaches.set("fillerBlock", "minecraft:sand")
# it's sandstone from allBiomes
## May be too easy, test without it first
# COG will turn some of that sand into limonite
# Note that the body of the beach/river is still sandstone.
#Turn Savanna Plat and Mesa Plats, to solid netherrack and spawn nether mobs
# COG needs sandstone to identify the top blocks
# 35 savanna (normal changes), 163 savanna M (vanilla)
# 36 savanna platea (nether changes), 164 Savanna P M (giant hills, vanilla)
# 37 mesa, 165 bryce
# 38 Mesa P F (nether changes), 166 P F M (vanilla)
# 39 Mesa P (nether changes), 167 P M (vanilla)
plateauNonMBiomes = forBiomes(36, 38, 39)
plateauNonMBiomes.removeAllSpawns("CREATURE")
plateauNonMBiomes.removeAllSpawns("MONSTER")
plateauNonMBiomes.removeAllSpawns("CAVE_CREATURE")
plateauNonMBiomes.removeAllSpawns("WATER_CREATURE")
#
# Now to play with the nether mobs.
# Raise the magma cubes up, lower pigmen slightly.
plateauNonMBiomes.addSpawn("net.minecraft.entity.monster.EntityPigZombie", "MONSTER", 100, 4, 4)
plateauNonMBiomes.addSpawn("net.minecraft.entity.monster.EntityGhast", "MONSTER", 50, 4, 4)
plateauNonMBiomes.addSpawn("net.minecraft.entity.monster.EntityMagmaCube", "MONSTER", 20, 4, 4)
plateauNonMBiomes.set("enableRain", false)
plateauNonMBiomes.addDicType("NETHER")
# COG will insert giant air pockets in these
## Things to look out for:
## 1. Jungles spawn very large amounts of trees, including some survivors.
## 2. Mega taigas spawn very large amounts of trees.
##
## Both of those may get toned down to pure netherrack (no trees) instead of dying trees.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment