From ea42b966ff006d6648cbd5edd3f690d634d801b0 Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Wed, 8 Apr 2015 14:17:17 -0700 Subject: 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. --- melon.lua | 4 ++-- 1 file 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 }) -- cgit v1.2.3