2023-03-15 19:50:35 +00:00
|
|
|
ebiometrees = {}
|
|
|
|
|
2023-03-18 21:48:40 +00:00
|
|
|
function ebiometrees.is_leaves_can_grow_here(pos)
|
|
|
|
return false
|
|
|
|
end
|
|
|
|
|
|
|
|
function ebiometrees.grow_closure(nextstage)
|
|
|
|
local function growtree(pos)
|
|
|
|
minetest.set_node(pos, {name=nextstage})
|
2023-03-15 19:50:35 +00:00
|
|
|
end
|
2023-03-18 21:48:40 +00:00
|
|
|
return growtree
|
2023-03-15 19:50:35 +00:00
|
|
|
end
|
|
|
|
|
2023-03-18 21:48:40 +00:00
|
|
|
function ebiometrees.leaves_grower(leaves_name)
|
|
|
|
local function grow_leaves(pos)
|
|
|
|
local free_node = minetest.find_node_near(pos, 1, "air")
|
|
|
|
if free_node
|
|
|
|
then
|
|
|
|
minetest.set_node(free_node, {name=leaves_name})
|
|
|
|
end
|
|
|
|
return true
|
2023-03-15 19:50:35 +00:00
|
|
|
end
|
2023-03-18 21:48:40 +00:00
|
|
|
return grow_leaves
|
2023-03-15 19:50:35 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
function ebiometrees.root_sapling(pos)
|
|
|
|
minetest.set_node(pos, {name="ebiome:oak_sprout"})
|
|
|
|
return false
|
|
|
|
end
|
|
|
|
|