summaryrefslogtreecommitdiff
path: root/melon.lua
diff options
context:
space:
mode:
authorAuke Kok <auke-jan.h.kok@intel.com>2015-04-08 14:17:17 -0700
committerAuke Kok <auke-jan.h.kok@intel.com>2015-04-08 14:17:17 -0700
commitea42b966ff006d6648cbd5edd3f690d634d801b0 (patch)
tree1ffe882d3882103c2c366543eb25c237b476291f /melon.lua
parentca0126dd7c3d69c52c96eda47145479c77dac513 (diff)
After removing the melon, return to pre-flower stage
This adds a bit more delay in between melon harvests, as you need to wait for a flower to grow first, and then a melon. Slightly more realistic, plus the flower doesn't pop up immediately after harvesting.
Diffstat (limited to 'melon.lua')
-rw-r--r--melon.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/melon.lua b/melon.lua
index 2107507..40cccc4 100644
--- a/melon.lua
+++ b/melon.lua
@@ -115,7 +115,7 @@ minetest.register_node("crops:melon", {
if n.name == "crops:melon_plant_5_attached" then
-- make sure it was actually attached to this stem
if n.param2 == faces[face].o then
- minetest.set_node(s, { name = "crops:melon_plant_5" })
+ minetest.set_node(s, { name = "crops:melon_plant_4" })
return code
end
end
@@ -195,6 +195,6 @@ minetest.register_abm({
return
end
end
- minetest.set_node(pos, {name = "crops:melon_plant_5" })
+ minetest.set_node(pos, {name = "crops:melon_plant_4" })
end
})