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
|
||||
})
|
||||
|
||||
-- ***********************************************
|
||||
-- new fungi -- This may be too cpu-intensive.
|
||||
-- new fungi
|
||||
local mushroom_nodes = {}
|
||||
for _, mushroom in pairs(mushrooms) do
|
||||
mushroom_nodes[#mushroom_nodes+1] = {name = mushroom}
|
||||
end
|
||||
minetest.register_abm({
|
||||
nodenames = {"default:dirt"},
|
||||
neighbors = {"air"},
|
||||
neighbors = {'fun_caves:stone_with_lichen', 'fun_caves:stone_with_algae'},
|
||||
interval = time_factor,
|
||||
chance = 300,
|
||||
catch_up = false,
|
||||
|
@ -708,7 +707,6 @@ minetest.register_abm({
|
|||
end
|
||||
end
|
||||
})
|
||||
-- ***********************************************
|
||||
|
||||
-- mushroom growth -- small into huge
|
||||
local giant_mushroom_stem_node = {name = 'fun_caves:giant_mushroom_stem'}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue