From cae854e5baefd2f73ce1682bd35b77222b701b94 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Mon, 29 Dec 2014 11:03:11 +0000 Subject: Updated to work with MT 0.4.11 --- flowers.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'flowers.lua') 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 -- cgit v1.2.3