1
0
mirror of https://codeberg.org/tenplus1/farming.git synced 2024-12-27 11:10:20 +01:00

Growing interval and min light changed

This commit is contained in:
tenplus1 2015-02-08 17:00:24 +00:00
parent 55b9244bc7
commit 01c819b93c
2 changed files with 3 additions and 3 deletions

View File

@ -148,7 +148,7 @@ minetest.register_abm({
else return else return
end 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) -- print ("COCOA", pos.x, pos.y, pos.z)
minetest.set_node(pos,{name="farming:cocoa_"..tostring(math.random(1,3))}) minetest.set_node(pos,{name="farming:cocoa_"..tostring(math.random(1,3))})
end end

View File

@ -72,7 +72,7 @@ end
minetest.register_abm({ minetest.register_abm({
nodenames = {"group:growing"}, nodenames = {"group:growing"},
neighbors = {"farming:soil_wet", "default:jungletree"}, neighbors = {"farming:soil_wet", "default:jungletree"},
interval = 60, interval = 80,
chance = 2, chance = 2,
action = function(pos, node) action = function(pos, node)
@ -88,7 +88,7 @@ minetest.register_abm({
if plant == "farming:cocoa_" if plant == "farming:cocoa_"
and minetest.find_node_near(pos, 1, {"default:jungletree", "moretrees:jungletree_leaves_green"}) then 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 else