summaryrefslogtreecommitdiff
path: root/sapling.lua
diff options
context:
space:
mode:
authorroot <root@linux-forks.de>2018-09-14 16:56:37 +0200
committerroot <root@linux-forks.de>2018-09-14 16:56:37 +0200
commit31fe2ff374e72fb8ea44d50cd82d6fc8b9be5463 (patch)
tree87768ea1339a0c838716d8bb3418e35a80b00c46 /sapling.lua
parentb32bd2d50b685e9f550f1138d3db1ed0c6504d2c (diff)
parent43d62b57428b4738a7e8cee0fae78b1147f9b085 (diff)
Merge branch 'master' of https://notabug.org/TenPlus1/ethereal
Diffstat (limited to 'sapling.lua')
-rw-r--r--sapling.lua28
1 files changed, 7 insertions, 21 deletions
diff --git a/sapling.lua b/sapling.lua
index 6ace2f2..1ed8d4b 100644
--- a/sapling.lua
+++ b/sapling.lua
@@ -78,11 +78,11 @@ local path = minetest.get_modpath("ethereal").."/schematics/"
-- grow tree functions
function ethereal.grow_yellow_tree(pos)
- ethereal.add_tree(pos, 4, 0, 4, path .. "yellowtree.mts")
+ ethereal.add_tree(pos, 4, 0, 4, ethereal.yellowtree)
end
function ethereal.grow_big_tree(pos)
- ethereal.add_tree(pos, 4, 0, 4, path .. "bigtree.mts")
+ ethereal.add_tree(pos, 4, 0, 4, ethereal.bigtree)
end
function ethereal.grow_banana_tree(pos)
@@ -90,27 +90,23 @@ function ethereal.grow_banana_tree(pos)
end
function ethereal.grow_frost_tree(pos)
- ethereal.add_tree(pos, 4, 0, 4, path .. "frosttrees.mts")
+ ethereal.add_tree(pos, 4, 0, 4, ethereal.frosttrees)
end
function ethereal.grow_mushroom_tree(pos)
- ethereal.add_tree(pos, 4, 0, 4, path .. "mushroomone.mts")
+ ethereal.add_tree(pos, 4, 0, 4, ethereal.mushroomone)
end
function ethereal.grow_palm_tree(pos)
- ethereal.add_tree(pos, 4, 0, 4, path .. "palmtree.mts")
+ ethereal.add_tree(pos, 4, 0, 4, ethereal.palmtree)
end
function ethereal.grow_willow_tree(pos)
- ethereal.add_tree(pos, 5, 0, 5, path .. "willow.mts")
+ ethereal.add_tree(pos, 5, 0, 5, ethereal.willow)
end
function ethereal.grow_redwood_tree(pos)
- if math.random(1, 2) == 1 then
- ethereal.add_tree(pos, 9, 3, 9, path .. "redwood.mts") -- shinji
- else
- ethereal.add_tree(pos, 8, 6, 8, path .. "redwood_tree.mts") -- iska
- end
+ ethereal.add_tree(pos, 7, 0, 7, ethereal.redwood_tree)
end
function ethereal.grow_orange_tree(pos)
@@ -160,7 +156,6 @@ ethereal.grow_sapling = function (pos, node)
-- Check if Ethereal Sapling is growing on correct substrate
if node.name == "ethereal:yellow_tree_sapling"
--- and under == "default:dirt_with_snow" then
and minetest.get_item_group(under, "soil") > 0 then
ethereal.grow_yellow_tree(pos)
@@ -189,7 +184,6 @@ ethereal.grow_sapling = function (pos, node)
ethereal.grow_willow_tree(pos)
elseif node.name == "ethereal:redwood_sapling"
- --and under == "bakedclay:red" then
and under == "default:dirt_with_dry_grass" then
ethereal.grow_redwood_tree(pos)
@@ -226,11 +220,3 @@ minetest.register_abm({
ethereal.grow_sapling(pos, node)
end,
})
-
---[[ burn saplings
-minetest.register_craft({
- type = "fuel",
- recipe = "group:ethereal_sapling",
- burntime = 10,
-})
-]] \ No newline at end of file