mirror of
https://github.com/mt-mods/plantlife_modpack.git
synced 2025-07-07 18:40:34 +02:00
fix some params
This commit is contained in:
@ -78,7 +78,7 @@ end
|
|||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = {"default:dirt_with_grass"},
|
nodenames = {"default:dirt_with_grass"},
|
||||||
interval = 1000,
|
interval = 1000,
|
||||||
chance = 200,
|
chance = 20,
|
||||||
label = "[poisoninvy] spawn plants",
|
label = "[poisoninvy] spawn plants",
|
||||||
min_y = -16,
|
min_y = -16,
|
||||||
max_y = 48,
|
max_y = 48,
|
||||||
@ -88,7 +88,7 @@ minetest.register_abm({
|
|||||||
if not n_top then return end
|
if not n_top then return end
|
||||||
if n_top.name ~= "air" then return end
|
if n_top.name ~= "air" then return end
|
||||||
|
|
||||||
local n_light = minetest.get_node_light(p_top, nil)
|
local n_light = minetest.get_node_light(p_top)
|
||||||
if n_light < 7 then
|
if n_light < 7 then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
@ -109,7 +109,7 @@ minetest.register_abm({
|
|||||||
|
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = {"poisonivy:seedling"},
|
nodenames = {"poisonivy:seedling"},
|
||||||
interval = 500,
|
interval = 1000,
|
||||||
chance = 30,
|
chance = 30,
|
||||||
label = "grow poisonivy",
|
label = "grow poisonivy",
|
||||||
action = function(pos, node)
|
action = function(pos, node)
|
||||||
@ -117,7 +117,7 @@ minetest.register_abm({
|
|||||||
local n_top = minetest.get_node(p_top)
|
local n_top = minetest.get_node(p_top)
|
||||||
|
|
||||||
if n_top.name == "air" then
|
if n_top.name == "air" then
|
||||||
minetest.swap_node(p_top, {name = "poisonivy:sproutling"})
|
minetest.swap_node(pos, {name = "poisonivy:sproutling"})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user