[0.2-Alpha] Biome API - Now With Trees
Posted: Fri Dec 07, 2012 13:25
Since terrain generation became greatly sped up, this is now possible to do in an ethical manor.
Download
Jungle biomes can be brought back with this.
Currently this has support for 3 layers of biome, an ore that generates in the 3rd layer, and trees.
This is how you use this:
Required noise: The rarity of the biome (0-1, Higher is rarer)
First_layer_depth: How deep the first layer is (example: 10)
First_layer: What node makes up the first layer? (example: "default:glass")
Second_layer_depth: see First_layer_depth
Second_layer: see First_layer
Third_layer_depth: see First_layer_depth
Third_layer: see First_layer
Ore: What ore should generate in this biome? (example: "default:mese")
Ore_chance: How rare should the ore be? Now I recommend you use 0.05 and below or your biomes will be FLOODED with ores! (example: 0.05)
Tree: Spawn trees? This must be a boolean (True/False)(example: True)
Tree_height: How tall should the trees be? (example: 5)
Tree_chance: How thickly should these trees spawn? (example:0.05)
Stump: What should the body of the tree be made of? (example:"default:wood")
Leaves: What should the leaves be made of? (example: "default:stone")
Remove_tree: Should the map generator remove default trees in the biome? This must be a boolean (True/False) (example: True)
And in case all that doesn't make sense, here's a jungle biome I created:
Have fun!
Download
Jungle biomes can be brought back with this.
Currently this has support for 3 layers of biome, an ore that generates in the 3rd layer, and trees.
This is how you use this:
Code: Select all
new_biome(required_noise,first_layer_depth,first_layer,second_layer_depth,second_layer,third_layer_depth,third_layer,ore,ore_chance,tree,tree_height,tree_chance,stump,leaves,remove_tree)
First_layer_depth: How deep the first layer is (example: 10)
First_layer: What node makes up the first layer? (example: "default:glass")
Second_layer_depth: see First_layer_depth
Second_layer: see First_layer
Third_layer_depth: see First_layer_depth
Third_layer: see First_layer
Ore: What ore should generate in this biome? (example: "default:mese")
Ore_chance: How rare should the ore be? Now I recommend you use 0.05 and below or your biomes will be FLOODED with ores! (example: 0.05)
Tree: Spawn trees? This must be a boolean (True/False)(example: True)
Tree_height: How tall should the trees be? (example: 5)
Tree_chance: How thickly should these trees spawn? (example:0.05)
Stump: What should the body of the tree be made of? (example:"default:wood")
Leaves: What should the leaves be made of? (example: "default:stone")
Remove_tree: Should the map generator remove default trees in the biome? This must be a boolean (True/False) (example: True)
And in case all that doesn't make sense, here's a jungle biome I created:
Code: Select all
new_biome(0.0,1,"default:dirt_with_grass",5,"default:dirt",30,"default:stone","default:stone_with_iron",0.08,true,10,0.1,"default:jungletree","default:leaves",false)