summaryrefslogtreecommitdiff
path: root/soil.lua
diff options
context:
space:
mode:
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