diff options
author | Auke Kok <auke-jan.h.kok@intel.com> | 2015-04-08 14:17:17 -0700 |
---|---|---|
committer | Auke Kok <auke-jan.h.kok@intel.com> | 2015-04-08 14:17:17 -0700 |
commit | ea42b966ff006d6648cbd5edd3f690d634d801b0 (patch) | |
tree | 1ffe882d3882103c2c366543eb25c237b476291f /melon.lua | |
parent | ca0126dd7c3d69c52c96eda47145479c77dac513 (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.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 }) |