mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-26 18:09:33 +01:00
Add logging
This commit is contained in:
parent
634379dfe9
commit
1dc7cab6be
1 changed files with 2 additions and 0 deletions
|
@ -496,6 +496,8 @@ end
|
|||
|
||||
local two_pi = 2 * math.pi
|
||||
local function get_next_mob_spawn_pos(pos)
|
||||
-- TODO We should consider spawning something a little further away sporadically.
|
||||
-- It would be good for sky farms and variance, rather than all being on the 24 - 32 block away radius
|
||||
local distance = math_random(MOB_SPAWN_ZONE_INNER + 1, MOB_SPAWN_ZONE_MIDDLE)
|
||||
local angle = math_random() * two_pi
|
||||
local xoff = math_round(distance * math_cos(angle))
|
||||
|
|
Loading…
Reference in a new issue