summaryrefslogtreecommitdiff
path: root/soil.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2015-12-08 14:47:22 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2015-12-08 14:47:22 +0000
commit171a67ebf2be68ce08c706c436cb579bd2fa0ad6 (patch)
tree6db4fd6b3cdc58048f08ee303c73839c3d8136fc /soil.lua
parentdc894725c71fa2fbb6d33cd4d76c8f78a009d241 (diff)
Code tweak and tidy, fixed rhubarb spawning
Diffstat (limited to 'soil.lua')
-rw-r--r--soil.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/soil.lua b/soil.lua
index df87eda..e748d5c 100644
--- a/soil.lua
+++ b/soil.lua
@@ -26,6 +26,7 @@ minetest.register_abm({
interval = 15,
chance = 4,
catch_up = false,
+
action = function(pos, node)
pos.y = pos.y + 1
@@ -52,8 +53,10 @@ minetest.register_abm({
if node.name == "farming:soil" then
minetest.set_node(pos, {name = "farming:soil_wet"})
end
+
elseif node.name == "farming:soil_wet" then
minetest.set_node(pos, {name = "farming:soil"})
+
elseif node.name == "farming:soil" then
minetest.set_node(pos, {name = "default:dirt"})
end