Limit abm that plants new fungi.
This commit is contained in:
parent
8eab778a39
commit
a0fa05a60f
1 changed files with 2 additions and 4 deletions
6
abms.lua
6
abms.lua
|
@ -679,15 +679,14 @@ minetest.register_abm({
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
-- ***********************************************
|
-- new fungi
|
||||||
-- new fungi -- This may be too cpu-intensive.
|
|
||||||
local mushroom_nodes = {}
|
local mushroom_nodes = {}
|
||||||
for _, mushroom in pairs(mushrooms) do
|
for _, mushroom in pairs(mushrooms) do
|
||||||
mushroom_nodes[#mushroom_nodes+1] = {name = mushroom}
|
mushroom_nodes[#mushroom_nodes+1] = {name = mushroom}
|
||||||
end
|
end
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = {"default:dirt"},
|
nodenames = {"default:dirt"},
|
||||||
neighbors = {"air"},
|
neighbors = {'fun_caves:stone_with_lichen', 'fun_caves:stone_with_algae'},
|
||||||
interval = time_factor,
|
interval = time_factor,
|
||||||
chance = 300,
|
chance = 300,
|
||||||
catch_up = false,
|
catch_up = false,
|
||||||
|
@ -708,7 +707,6 @@ minetest.register_abm({
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
-- ***********************************************
|
|
||||||
|
|
||||||
-- mushroom growth -- small into huge
|
-- mushroom growth -- small into huge
|
||||||
local giant_mushroom_stem_node = {name = 'fun_caves:giant_mushroom_stem'}
|
local giant_mushroom_stem_node = {name = 'fun_caves:giant_mushroom_stem'}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue