Make spawners mobs faster
This commit is contained in:
parent
15466f92f3
commit
2d5850a9da
@ -273,7 +273,7 @@ function spawners_mobs.tick(pos)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.get_node_timer(pos):start(math.random(30, 60))
|
minetest.get_node_timer(pos):start(math.random(5, 15))
|
||||||
end
|
end
|
||||||
|
|
||||||
-- how often a spawn failure tick is retried (e.g. too dark)
|
-- how often a spawn failure tick is retried (e.g. too dark)
|
||||||
@ -289,7 +289,7 @@ function spawners_mobs.tick_short(pos)
|
|||||||
meta:set_int('tick_short', tick_short_counter)
|
meta:set_int('tick_short', tick_short_counter)
|
||||||
-- print('tick_short_counter: ' .. tick_short_counter .. ' at ' .. minetest.pos_to_string(pos))
|
-- print('tick_short_counter: ' .. tick_short_counter .. ' at ' .. minetest.pos_to_string(pos))
|
||||||
end
|
end
|
||||||
minetest.get_node_timer(pos):start(math.random(20, 60))
|
minetest.get_node_timer(pos):start(math.random(5, 10))
|
||||||
-- minetest.get_node_timer(pos):start(math.random(10, 20))
|
-- minetest.get_node_timer(pos):start(math.random(10, 20))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user