diff options
author | tenplus1 <kinsellaja@yahoo.com> | 2014-12-29 11:03:11 +0000 |
---|---|---|
committer | tenplus1 <kinsellaja@yahoo.com> | 2014-12-29 11:03:11 +0000 |
commit | cae854e5baefd2f73ce1682bd35b77222b701b94 (patch) | |
tree | eef4b37b220e420f2b0e64f2ddbcc8e487d5c871 /flowers.lua | |
parent | 4c3e8741cad55be7509c49f908ca796d6bba2705 (diff) |
Updated to work with MT 0.4.11
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 |