mirror of
https://codeberg.org/tenplus1/farming.git
synced 2024-12-26 18:50:20 +01:00
Growing interval and min light changed
This commit is contained in:
parent
55b9244bc7
commit
01c819b93c
@ -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
|
||||
|
4
init.lua
4
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user