forked from thunderdog1138/star_wars
Update 'mods/ethereal/sapling.lua'
This commit is contained in:
parent
f07cd1c672
commit
b9bcd25d68
|
@ -58,6 +58,7 @@ register_sapling("ethereal:palm_tree", "Palm Tree", "palm_tree_sapling", 9)
|
|||
register_sapling("ethereal:wroshyr_tree", "Wroshyr Tree", "wroshyr_tree_sapling", 31)
|
||||
register_sapling("ethereal:gnarltree", "Gnarltree", "gnarltree_sapling", 7)
|
||||
register_sapling("ethereal:pine_tree", "Pine_tree", "sakura_sapling", 14)
|
||||
register_sapling("ethereal:bush", "Bush", "bush_sapling", 3)
|
||||
|
||||
local add_tree = function (pos, ofx, ofy, ofz, schem, replace)
|
||||
-- check for schematic
|
||||
|
@ -109,7 +110,11 @@ function ethereal.grow_pine_tree(pos)
|
|||
end
|
||||
|
||||
function ethereal.grow_gnarltree(pos)
|
||||
add_tree(pos, 3, 0, 3, ethereal.gnarltree)
|
||||
add_tree(pos, 3, 0, 3, ethereal.gnarl_tree)
|
||||
end
|
||||
|
||||
function ethereal.grow_bush(pos)
|
||||
add_tree(pos, 1, 0, 1, ethereal.bush)
|
||||
end
|
||||
|
||||
-- check if sapling has enough height room to grow
|
||||
|
@ -181,6 +186,10 @@ local grow_sapling = function(pos, node)
|
|||
elseif node.name == "ethereal:gnarltree_sapling"
|
||||
and minetest.get_item_group(under, "soil") > 0 then
|
||||
ethereal.grow_sakura_tree(pos)
|
||||
|
||||
elseif node.name == "ethereal:bush_sapling"
|
||||
and minetest.get_item_group(under, "soil") > 0 then
|
||||
ethereal.grow_bush(pos)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue