summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua21
1 files changed, 10 insertions, 11 deletions
diff --git a/init.lua b/init.lua
index 0fe676f..8bf900e 100644
--- a/init.lua
+++ b/init.lua
@@ -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