diff options
author | Auke Kok <auke-jan.h.kok@intel.com> | 2015-04-10 16:41:48 -0700 |
---|---|---|
committer | Auke Kok <auke-jan.h.kok@intel.com> | 2015-04-10 16:41:48 -0700 |
commit | 44505e228260ce740f5ef3da895546ed188ad94c (patch) | |
tree | 8bc140453adbaa34994bb186cbe30c137dab148f /melon.lua | |
parent | c80f2534322e0cc74df533c067c8d379508820a0 (diff) |
restrict all of these crops from growing if they're not on soil
Diffstat (limited to 'melon.lua')
-rw-r--r-- | melon.lua | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -136,6 +136,7 @@ minetest.register_node("crops:melon", { -- minetest.register_abm({ nodenames = { "crops:melon_plant_1", "crops:melon_plant_2", "crops:melon_plant_3","crops:melon_plant_4" }, + neighbors = { "group:soil" }, interval = interval, chance = chance, action = function(pos, node, active_object_count, active_object_count_wider) @@ -155,6 +156,7 @@ minetest.register_abm({ -- minetest.register_abm({ nodenames = { "crops:melon_plant_5" }, + neighbors = { "group:soil" }, interval = interval, chance = chance, action = function(pos, node, active_object_count, active_object_count_wider) |