summaryrefslogtreecommitdiff
path: root/flowers.lua
diff options
context:
space:
mode:
authortenplus1 <kinsellaja@yahoo.com>2014-12-29 11:03:11 +0000
committertenplus1 <kinsellaja@yahoo.com>2014-12-29 11:03:11 +0000
commitcae854e5baefd2f73ce1682bd35b77222b701b94 (patch)
treeeef4b37b220e420f2b0e64f2ddbcc8e487d5c871 /flowers.lua
parent4c3e8741cad55be7509c49f908ca796d6bba2705 (diff)
Updated to work with MT 0.4.11
Diffstat (limited to 'flowers.lua')
-rw-r--r--flowers.lua12
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