mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-01 23:11:11 +01:00
Adjust spawning to be closer and more frequent
This commit is contained in:
parent
75247ad53d
commit
8c10fe4057
1 changed files with 2 additions and 2 deletions
|
@ -486,7 +486,7 @@ end
|
||||||
local axis
|
local axis
|
||||||
--inner and outer part of square donut radius
|
--inner and outer part of square donut radius
|
||||||
local inner = 1
|
local inner = 1
|
||||||
local outer = 70
|
local outer = 50
|
||||||
local int = {-1,1}
|
local int = {-1,1}
|
||||||
local position_calculation = function(pos)
|
local position_calculation = function(pos)
|
||||||
|
|
||||||
|
@ -539,7 +539,7 @@ if mobs_spawn then
|
||||||
local timer = 0
|
local timer = 0
|
||||||
minetest.register_globalstep(function(dtime)
|
minetest.register_globalstep(function(dtime)
|
||||||
timer = timer + dtime
|
timer = timer + dtime
|
||||||
if timer >= 15 then
|
if timer >= 8 then
|
||||||
timer = 0
|
timer = 0
|
||||||
for _,player in ipairs(minetest.get_connected_players()) do
|
for _,player in ipairs(minetest.get_connected_players()) do
|
||||||
for i = 1,math.random(3,8) do
|
for i = 1,math.random(3,8) do
|
||||||
|
|
Loading…
Reference in a new issue