diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2013-01-19 18:36:13 -0500 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2013-01-19 23:26:16 -0500 |
commit | 1bd0afbc842aaacbfd7eb31ac88be4f9c08eba5c (patch) | |
tree | 1fd99a64ab63c90adaf74a29df64bbf1c1b41280 /biome_defs.lua | |
parent | c4f79a76cdd052b9553e2c0a35d7a6f7e4f52c37 (diff) |
Working on adding a whole new set of trees to the mod
Most of the added code written by RealBadAngel
Also adds a couple of additional biome controls to jungle trees and conifers.
Also adds a text file describing the biome settings in a human-readable manner.
At present, this doesn't actually add anything new, it just refactors the
code to allow for more trees, and adds a bunch of biome definitions, tree
models, textures, etc. but no code to use them, yet.
Diffstat (limited to 'biome_defs.lua')
-rw-r--r-- | biome_defs.lua | 148 |
1 files changed, 148 insertions, 0 deletions
diff --git a/biome_defs.lua b/biome_defs.lua new file mode 100644 index 0000000..c03f673 --- /dev/null +++ b/biome_defs.lua @@ -0,0 +1,148 @@ +--[[ + +-- Example biome definition: + +mytree_biome = { + surface = "default:dirt_with_grass", -- must grow on these nodes only + avoid_nodes = {"default:tree"}, -- avoid spawning near these + avoid_radius = 12, -- Keep this much room around the above avoid items + seed_diff = 12345, -- perlin seed-diff for "generally able to grow plants here" control + neighbors = "default:dirt_with_grass", -- this node must be adjacent to the node being spawned on + ncount = 8, -- and there must be this many of them + depth = 1, -- spawning surface must be no deeper than this + min_elevation = -5, -- minimum elevation to spawn on + max_elevation = 10, -- maximum elevation + near_nodes = {"default:water_source"}, -- trees will only spawn near these nodes + near_nodes_size = 10, -- within this radius of at least one of them + near_nodes_count = 20, -- there must ne this many of those nodes in the area + temp_min = 0.5, -- minimum allowable temperature (highest temperature map perlin value) + temp_max = 0.1, -- maximum allowable temperature (lowest perlin value) +} +]]-- + +moretrees.jungletree_biome = { + surface = "default:dirt_with_grass", + avoid_nodes = moretrees.avoidnodes, + avoid_radius = 12, + seed_diff = 329, + min_elevation = -5, + max_elevation = 10, + near_nodes = {"default:water_source"}, + near_nodes_size = 15, + near_nodes_count = 10, +-- temp_min = 0.05, +} + +moretrees.conifer_biome = { + surface = "default:dirt_with_grass", + avoid_nodes = moretrees.avoidnodes, + avoid_radius = 10, + seed_diff = 359, + min_elevation = 25, + temp_min = 0.9, + temp_max = 0.3, +} + +moretrees.palm_biome = { + surface = "default:sand", + avoid_nodes = moretrees.avoidnodes, + avoid_radius = 5, + seed_diff = 330, + min_elevation = -1, + max_elevation = 1, + near_nodes = {"default:water_source"}, + near_nodes_size = 15, + near_nodes_count = 10, + temp_min = 0.15, + temp_max = -0.15, +} + +moretrees.apple_biome = { + surface = "default:dirt_with_grass", + avoid_nodes = moretrees.avoidnodes, + avoid_radius = 15, + seed_diff = 331, + min_elevation = 1, + max_elevation = 10, + temp_min = 0.1, + temp_max = -0.15, +} + +moretrees.oak_biome = { + surface = "default:dirt_with_grass", + avoid_nodes = moretrees.avoidnodes, + avoid_radius = 15, + seed_diff = 332, + min_elevation = 0, + max_elevation = 10, + temp_min = 0.4, + temp_max = 0.2, +} + +moretrees.sequoia_biome = { + surface = "default:dirt_with_grass", + avoid_nodes = moretrees.avoidnodes, + avoid_radius = 10, + seed_diff = 333, + min_elevation = 0, + max_elevation = 10, + temp_min = 1, + temp_max = -0.4, +} + +moretrees.birch_biome = { + surface = "default:dirt_with_grass", + avoid_nodes = moretrees.avoidnodes, + avoid_radius = 5, + seed_diff = 334, + min_elevation = 10, + max_elevation = 15, + temp_min = 0.9, + temp_max = 0.3, +} + +moretrees.spruce_biome = { + surface = "default:dirt_with_grass", + avoid_nodes = moretrees.avoidnodes, + avoid_radius = 10, + seed_diff = 335, + min_elevation = 20, + temp_min = 0.9, + temp_max = 0.7, +} + +moretrees.pine_biome = { + surface = "default:dirt_with_grass", + avoid_nodes = moretrees.avoidnodes, + avoid_radius = 10, + seed_diff = 336, + near_nodes = {"default:water_source"}, + near_nodes_size = 15, + near_nodes_count = 5, +} + +moretrees.willow_biome = { + surface = "default:dirt_with_grass", + avoid_nodes = moretrees.avoidnodes, + avoid_radius = 20, + seed_diff = 337, + min_elevation = -5, + max_elevation = 5, + near_nodes = {"default:water_source"}, + near_nodes_size = 15, + near_nodes_count = 5, +} + +moretrees.rubber_biome = { + surface = "default:dirt_with_grass", + avoid_nodes = moretrees.avoidnodes, + avoid_radius = 20, + seed_diff = 338, + min_elevation = -5, + max_elevation = 5, + near_nodes = {"default:water_source"}, + near_nodes_size = 15, + near_nodes_count = 10, + temp_min = -0.15, +} + |