summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-06-12 08:14:18 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2017-06-12 08:14:18 +0100
commit8917c9db370df37866e5a0efffd80118e89bccc4 (patch)
tree5712e95ffc30b8ef0ca65c73e7496762592d29a3
parent2c2496199f557b3581ab7e9bae5729d100bb578f (diff)
removed moretrees bonemeal support (use bonemeal mod)
-rw-r--r--bonemeal.lua54
-rw-r--r--depends.txt1
2 files changed, 0 insertions, 55 deletions
diff --git a/bonemeal.lua b/bonemeal.lua
index c67ce3a..60c025c 100644
--- a/bonemeal.lua
+++ b/bonemeal.lua
@@ -99,25 +99,6 @@ local function enough_height(pos, height)
end
end
--- moretrees specific function
-local function more_tree(pos, object)
-
- if type(object) == "table" and object.axiom then
- -- grow L-system tree
- minetest.remove_node(pos)
- minetest.spawn_tree(pos, object)
-
- elseif type(object) == "string" and minetest.registered_nodes[object] then
- -- place node
- minetest.set_node(pos, {name = object})
-
- elseif type(object) == "function" then
- -- function
- object(pos)
-
- end
-end
-
-- growing routine
local function growth(pointed_thing)
@@ -211,41 +192,6 @@ local function growth(pointed_thing)
elseif node.name == "ethereal:birch_sapling" then
ethereal.grow_birch_tree(pos)
--- grow moretree's sapling
-elseif node.name == "moretrees:beech_sapling" then
- more_tree(pos, moretrees.spawn_beech_object)
-elseif node.name == "moretrees:apple_tree_sapling" then
- more_tree(pos, moretrees.spawn_apple_tree_object)
-elseif node.name == "moretrees:oak_sapling" then
- more_tree(pos, moretrees.spawn_oak_object)
-elseif node.name == "moretrees:sequoia_sapling" then
- more_tree(pos, moretrees.spawn_sequoia_object)
-elseif node.name == "moretrees:birch_sapling" then
- --more_tree(pos, moretrees.spawn_birch_object)
- moretrees.grow_birch(pos)
-elseif node.name == "moretrees:palm_sapling" then
- more_tree(pos, moretrees.spawn_palm_object)
-elseif node.name == "moretrees:date_palm_sapling" then
- more_tree(pos, moretrees.spawn_date_palm_object)
-elseif node.name == "moretrees:spruce_sapling" then
- --more_tree(pos, moretrees.spawn_spruce_object)
- moretrees.grow_spruce(pos)
-elseif node.name == "moretrees:cedar_sapling" then
- more_tree(pos, moretrees.spawn_cedar_object)
-elseif node.name == "moretrees:poplar_sapling" then
- more_tree(pos, moretrees.spawn_poplar_object)
-elseif node.name == "moretrees:willow_sapling" then
- more_tree(pos, moretrees.spawn_willow_object)
-elseif node.name == "moretrees:rubber_tree_sapling" then
- more_tree(pos, moretrees.spawn_rubber_tree_object)
-elseif node.name == "moretrees:fir_sapling" then
- --more_tree(pos, moretrees.spawn_fir_object)
- if minetest.find_node_near(pos, 1, {"default:snow"}) then
- moretrees.grow_fir_snow(pos)
- else
- moretrees.grow_fir(pos)
- end
-
-- grow default tree
elseif node.name == "default:sapling"
and enough_height(pos, 7) then
diff --git a/depends.txt b/depends.txt
index b20b90c..e21f4b0 100644
--- a/depends.txt
+++ b/depends.txt
@@ -5,6 +5,5 @@ flowers
doors
bakedclay?
moreblocks?
-moretrees?
intllib?
lucky_block?