summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2016-07-03 04:52:27 -0400
committerGitHub <noreply@github.com>2016-07-03 04:52:27 -0400
commit5735554d6abcb7939c614ac3197f8207d5564be7 (patch)
treed37859050c821b7a226ce1bf97f6f942940816ae /init.lua
parent8aa4888deefb6d1f6e380763ca662018a82b767f (diff)
parentd72574d28835e30e9d7fa7644268876e6920421a (diff)
Merge pull request #26 from Rogier-5/poplar
Add poplar tree
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 2c50fd9..8189ffd 100644
--- a/init.lua
+++ b/init.lua
@@ -97,6 +97,8 @@ if moretrees.spawn_saplings then
moretrees.spawn_jungletree_object = "moretrees:jungletree_sapling_ongen"
moretrees.spawn_fir_object = "moretrees:fir_sapling_ongen"
moretrees.spawn_fir_snow_object = "snow:sapling_pine"
+ moretrees.spawn_poplar_object = "moretrees:poplar_sapling_ongen"
+ moretrees.spawn_poplar_small_object = "moretrees:poplar_small_sapling_ongen"
else
moretrees.spawn_beech_object = moretrees.beech_model
moretrees.spawn_apple_tree_object = moretrees.apple_tree_model
@@ -113,6 +115,8 @@ else
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_poplar_object = moretrees.poplar_model
+ moretrees.spawn_poplar_small_object = moretrees.poplar_small_model
end
if moretrees.enable_beech then
@@ -175,6 +179,14 @@ if moretrees.enable_fir then
end
end
+if moretrees.enable_poplar then
+ biome_lib:register_generate_plant(moretrees.poplar_biome, moretrees.spawn_poplar_object)
+ biome_lib:register_generate_plant(moretrees.poplar_biome_2, moretrees.spawn_poplar_object)
+ biome_lib:register_generate_plant(moretrees.poplar_biome_3, moretrees.spawn_poplar_object)
+ biome_lib:register_generate_plant(moretrees.poplar_small_biome, moretrees.spawn_poplar_small_object)
+ biome_lib:register_generate_plant(moretrees.poplar_small_biome_2, moretrees.spawn_poplar_small_object)
+end
+
-- Code to spawn a birch tree
function moretrees.grow_birch(pos)