blue agave needs light to spread, increased spread chance value
This commit is contained in:
parent
16bcdb0adf
commit
5665c80657
7
init.lua
7
init.lua
@ -276,9 +276,14 @@ minetest.register_abm({
|
||||
nodenames = {"wine:blue_agave"},
|
||||
neighbors = {"default:desert_sand"},
|
||||
interval = 17,
|
||||
chance = 33,
|
||||
chance = 76,
|
||||
action = function(pos, node)
|
||||
|
||||
local light = minetest.get_node_light(pos)
|
||||
if not light or light < 13 then
|
||||
return
|
||||
end
|
||||
|
||||
local n = minetest.find_nodes_in_area_under_air(
|
||||
{x = pos.x + 2, y = pos.y + 1, z = pos.z + 2},
|
||||
{x = pos.x - 2, y = pos.y - 1, z = pos.z - 2},
|
||||
|
Loading…
x
Reference in New Issue
Block a user