diff --git a/cocoa.lua b/cocoa.lua index 7ca61b3..30f2307 100644 --- a/cocoa.lua +++ b/cocoa.lua @@ -148,7 +148,7 @@ minetest.register_abm({ else return end - if minetest.get_node(pos).name == "air" and minetest.get_node_light(pos) > 11 then + if minetest.get_node(pos).name == "air" and minetest.get_node_light(pos) > 12 then -- print ("COCOA", pos.x, pos.y, pos.z) minetest.set_node(pos,{name="farming:cocoa_"..tostring(math.random(1,3))}) end diff --git a/init.lua b/init.lua index 3ee27c5..f63db4c 100644 --- a/init.lua +++ b/init.lua @@ -72,7 +72,7 @@ end minetest.register_abm({ nodenames = {"group:growing"}, neighbors = {"farming:soil_wet", "default:jungletree"}, - interval = 60, + interval = 80, chance = 2, action = function(pos, node) @@ -88,7 +88,7 @@ minetest.register_abm({ if plant == "farming:cocoa_" and minetest.find_node_near(pos, 1, {"default:jungletree", "moretrees:jungletree_leaves_green"}) then - if minetest.get_node_light(pos) < 12 then return end + if minetest.get_node_light(pos) < 13 then return end else