-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathspawn.lua
40 lines (37 loc) · 1.16 KB
/
spawn.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
local has = mobs_balrog.has
local settings = mobs_balrog.settings
mobs:spawn({
name = "mobs_balrog:balrog",
nodes = { "group:stone" },
max_light = settings.max_light,
min_light = settings.min_light,
interval = settings.spawn_interval,
chance = settings.spawn_chance,
active_object_count = settings.active_object_count,
min_height = settings.min_height,
max_height = settings.max_height,
})
mobs:spawn({
name = "mobs_balrog:balrog",
nodes = { "group:stone" },
max_light = settings.max_light,
min_light = settings.min_light,
interval = settings.spawn_interval,
chance = settings.spawn_chance * 2,
active_object_count = settings.active_object_count,
min_height = settings.min_height,
max_height = (3 * settings.min_height + settings.max_height) / 4,
})
if has.nether and settings.spawn_in_nether then
mobs:spawn({
name = "mobs_balrog:balrog",
nodes = { "nether:rack", "nether:rack_deep" },
max_light = settings.max_light,
min_light = settings.min_light,
interval = settings.spawn_interval,
chance = settings.spawn_chance,
active_object_count = settings.active_object_count,
min_height = nether.DEPTH_FLOOR,
max_height = nether.DEPTH_CEILING,
})
end