diff options
Diffstat (limited to 'flowers.lua')
-rw-r--r-- | flowers.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/flowers.lua b/flowers.lua index 94f20bd..1979599 100644 --- a/flowers.lua +++ b/flowers.lua @@ -16,6 +16,18 @@ minetest.register_abm({ local pos1 = {x=pos.x+4,y=pos.y+2,z=pos.z+4} if #minetest.find_nodes_in_area(pos0, pos1, "group:flora") > 3 then + + local crystal = minetest.find_nodes_in_area(pos0, pos1, {"ethereal:crystalgrass"}) + if #crystal > 6 then + local ppos = crystal[1] + ppos.y = ppos.y - 1 + local nod = minetest.get_node(ppos).name + ppos.y = ppos.y + 1 + if nod == "ethereal:crystal_dirt" then + minetest.set_node(crystal[1], {name="ethereal:crystal_spike"}) + end + end + return end |