diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2015-08-14 14:38:35 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2015-08-14 14:40:45 -0400 |
commit | 6694b8da616241ec59072950f60e686464526178 (patch) | |
tree | 4dd93899b2aee40f1e23f2bf005082b38c1faefa /init.lua | |
parent | 2ae8a32aa368b0962d90ec3a509c5d80df7e6f39 (diff) |
made birch, spruce, fir, and jungle trees spawn again
turned out to be I was using foo:bar for their function calls, which
biome_lib filters out (only group defs can use that format). Changed
them to quoted-string "foo.bar" format. Also, jungle trees need a
moretrees-specific copy of the default jungle trunk node so that there's
something unique to match against for the density limit.
also, made jungle trees use the same biome settings as giant tree ferns
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 21 |
1 files changed, 10 insertions, 11 deletions
@@ -118,14 +118,13 @@ else moretrees.spawn_rubber_tree_object = moretrees.rubber_tree_model moretrees.spawn_willow_object = moretrees.willow_model moretrees.spawn_acacia_object = moretrees.acacia_model - moretrees.spawn_birch_object = "moretrees:grow_birch" - moretrees.spawn_spruce_object = "moretrees:grow_spruce" - moretrees.spawn_jungletree_object = "moretrees:grow_jungletree" - moretrees.spawn_fir_object = "moretrees:grow_fir" - moretrees.spawn_fir_snow_object = "moretrees:grow_fir_snow" + moretrees.spawn_birch_object = "moretrees.grow_birch" + moretrees.spawn_spruce_object = "moretrees.grow_spruce" + moretrees.spawn_jungletree_object = "moretrees.grow_jungletree" + moretrees.spawn_fir_object = "moretrees.grow_fir" + moretrees.spawn_fir_snow_object = "moretrees.grow_fir_snow" end - if moretrees.enable_beech then biome_lib:register_generate_plant(moretrees.beech_biome, moretrees.spawn_beech_object) end @@ -183,7 +182,7 @@ end -- Code to spawn a birch tree -function moretrees:grow_birch(pos) +function moretrees.grow_birch(pos) minetest.remove_node(pos) if math.random(1,2) == 1 then minetest.spawn_tree(pos, moretrees.birch_model1) @@ -194,7 +193,7 @@ end -- Code to spawn a spruce tree -function moretrees:grow_spruce(pos) +function moretrees.grow_spruce(pos) minetest.remove_node(pos) if math.random(1,2) == 1 then minetest.spawn_tree(pos, moretrees.spruce_model1) @@ -219,7 +218,7 @@ moretrees.ct_rules_b1 = "[-FBf][+FBf]" moretrees.ct_rules_a2 = "FF[FF][&&-FBF][&&+FBF][&&---FBF][&&+++FBF]F/A" moretrees.ct_rules_b2 = "[-fB][+fB]" -function moretrees:grow_jungletree(pos) +function moretrees.grow_jungletree(pos) local r1 = math.random(2) local r2 = math.random(3) if r1 == 1 then @@ -259,7 +258,7 @@ end -- code to spawn fir trees -function moretrees:grow_fir(pos) +function moretrees.grow_fir(pos) if math.random(2) == 1 then moretrees.fir_model.leaves="moretrees:fir_leaves" else @@ -286,7 +285,7 @@ end -- same thing, but a smaller version that grows only in snow biomes -function moretrees:grow_fir_snow(pos) +function moretrees.grow_fir_snow(pos) if math.random(2) == 1 then moretrees.fir_model.leaves="moretrees:fir_leaves" else |