2023-07-20 01:07:27 +02:00
|
|
|
local ghost_bones_only = minetest.settings:get_bool("mobs_ghost_redo_bones_only", false)
|
|
|
|
|
|
|
|
if ghost_bones_only then
|
2023-07-20 20:11:17 +02:00
|
|
|
spawnit.register({
|
|
|
|
entity_name = "mobs_ghost_redo:ghost",
|
|
|
|
groups = { monster = 1 },
|
|
|
|
chance = yl_spawnit.base_chance,
|
2024-02-09 20:59:07 +01:00
|
|
|
within = { "not walkable" },
|
2023-07-20 20:11:17 +02:00
|
|
|
on = { "any" },
|
|
|
|
near = { "bones:bones" },
|
2023-07-23 00:47:38 +02:00
|
|
|
max_node_light = 10,
|
2023-07-20 20:11:17 +02:00
|
|
|
max_in_area = 2,
|
2023-07-22 23:09:04 +02:00
|
|
|
max_any_in_area = 6,
|
2023-07-20 20:11:17 +02:00
|
|
|
min_player_distance = 12,
|
|
|
|
spawn_in_protected = false,
|
2023-08-05 02:57:23 +02:00
|
|
|
}, yl_spawnit.settings.check_nodes)
|
2023-07-20 01:07:27 +02:00
|
|
|
else
|
2023-07-20 20:11:17 +02:00
|
|
|
spawnit.register({
|
|
|
|
entity_name = "mobs_ghost_redo:ghost",
|
|
|
|
groups = { monster = 1 },
|
|
|
|
chance = yl_spawnit.base_chance * 3,
|
2024-02-09 20:59:07 +01:00
|
|
|
within = { "not walkable" },
|
2023-07-20 20:11:17 +02:00
|
|
|
on = { "any" },
|
|
|
|
near = { "any" },
|
2023-07-23 00:47:38 +02:00
|
|
|
max_node_light = 10,
|
2023-07-20 20:11:17 +02:00
|
|
|
max_in_area = 2,
|
2023-07-22 23:09:04 +02:00
|
|
|
max_any_in_area = 6,
|
2023-07-20 20:11:17 +02:00
|
|
|
min_player_distance = 12,
|
|
|
|
spawn_in_protected = false,
|
2023-08-05 02:57:23 +02:00
|
|
|
}, yl_spawnit.settings.check_nodes)
|
2023-07-20 01:07:27 +02:00
|
|
|
|
2023-07-20 20:11:17 +02:00
|
|
|
spawnit.register({
|
|
|
|
entity_name = "mobs_ghost_redo:ghost",
|
|
|
|
groups = { monster = 1 },
|
2024-01-13 21:07:43 +01:00
|
|
|
chance = yl_spawnit.base_chance * 3,
|
2024-02-09 20:59:07 +01:00
|
|
|
within = { "not walkable" },
|
2023-07-20 20:11:17 +02:00
|
|
|
on = { "any" },
|
|
|
|
near = { "bones:bones" },
|
2023-07-23 00:47:38 +02:00
|
|
|
max_node_light = 10,
|
2023-07-20 20:11:17 +02:00
|
|
|
max_in_area = 4,
|
2023-07-22 23:09:04 +02:00
|
|
|
max_any_in_area = 6,
|
2023-07-20 20:11:17 +02:00
|
|
|
min_player_distance = 12,
|
|
|
|
spawn_in_protected = false,
|
2023-08-05 02:57:23 +02:00
|
|
|
}, yl_spawnit.settings.check_nodes)
|
2023-07-20 20:11:17 +02:00
|
|
|
end
|