yl_spawnit/mobs_others.lua
2023-07-20 09:36:19 -07:00

27 lines
585 B
Lua

local DAWN = 4500 / 24000
local DUSK = 19500 / 24000
spawnit.register({
entity_name = "mobs_others:snow_walker",
groups = { monster = 1 },
chance = 300,
on = {
"default:dirt_with_snow",
"default:permafrost",
"default:permafrost_with_stones",
"default:permafrost_with_moss",
"default:snow",
"default:snowblock",
"default:ice",
"default:cave_ice",
},
min_y = -15,
max_in_area = 2,
min_time_of_day = DUSK,
max_time_of_day = DAWN,
min_player_distance = 12,
spawn_in_protected = false,
}, true)
-- the ice monsters are automatically spawned w/ the snow walkers