1
0
Fork 0

Add logging

Texture-Rename2
ancientmarinerdev 2023-01-28 00:24:33 +00:00 committed by Gitea
parent 634379dfe9
commit 1dc7cab6be
1 changed files with 2 additions and 0 deletions

View File

@ -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))