mirror of
https://github.com/ElCeejo/animalia.git
synced 2025-03-15 04:11:25 +00:00
Spawn Settings
This commit is contained in:
parent
1bc8aa8e75
commit
56d5e39873
2 changed files with 35 additions and 23 deletions
|
@ -2,6 +2,14 @@
|
||||||
-- Spawning --
|
-- Spawning --
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
|
local common_spawn_chance = tonumber(minetest.settings:get("animalia_common_chance")) or 20000
|
||||||
|
|
||||||
|
local ambient_spawn_chance = tonumber(minetest.settings:get("animalia_ambient_chance")) or 6000
|
||||||
|
|
||||||
|
local pest_spawn_chance = tonumber(minetest.settings:get("animalia_pest_chance")) or 4000
|
||||||
|
|
||||||
|
local predator_spawn_chance = tonumber(minetest.settings:get("animalia_predator_chance")) or 30000
|
||||||
|
|
||||||
-- Get Biomes --
|
-- Get Biomes --
|
||||||
|
|
||||||
local chicken_biomes = {}
|
local chicken_biomes = {}
|
||||||
|
@ -26,7 +34,7 @@ minetest.register_on_mods_loaded(function()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
creatura.register_abm_spawn("animalia:chicken", {
|
creatura.register_abm_spawn("animalia:chicken", {
|
||||||
chance = 10000,
|
chance = common_spawn_chance,
|
||||||
min_height = 0,
|
min_height = 0,
|
||||||
max_height = 1024,
|
max_height = 1024,
|
||||||
min_group = 3,
|
min_group = 3,
|
||||||
|
@ -36,7 +44,7 @@ creatura.register_abm_spawn("animalia:chicken", {
|
||||||
})
|
})
|
||||||
|
|
||||||
creatura.register_abm_spawn("animalia:cow", {
|
creatura.register_abm_spawn("animalia:cow", {
|
||||||
chance = 10000,
|
chance = common_spawn_chance,
|
||||||
min_height = 0,
|
min_height = 0,
|
||||||
max_height = 1024,
|
max_height = 1024,
|
||||||
min_group = 3,
|
min_group = 3,
|
||||||
|
@ -47,7 +55,7 @@ creatura.register_abm_spawn("animalia:cow", {
|
||||||
})
|
})
|
||||||
|
|
||||||
creatura.register_abm_spawn("animalia:fox", {
|
creatura.register_abm_spawn("animalia:fox", {
|
||||||
chance = 10000,
|
chance = predator_spawn_chance,
|
||||||
min_height = 0,
|
min_height = 0,
|
||||||
max_height = 1024,
|
max_height = 1024,
|
||||||
min_group = 1,
|
min_group = 1,
|
||||||
|
@ -57,7 +65,7 @@ creatura.register_abm_spawn("animalia:fox", {
|
||||||
})
|
})
|
||||||
|
|
||||||
creatura.register_abm_spawn("animalia:horse", {
|
creatura.register_abm_spawn("animalia:horse", {
|
||||||
chance = 10000,
|
chance = common_spawn_chance,
|
||||||
min_height = 0,
|
min_height = 0,
|
||||||
max_height = 1024,
|
max_height = 1024,
|
||||||
min_group = 3,
|
min_group = 3,
|
||||||
|
@ -79,7 +87,7 @@ creatura.register_abm_spawn("animalia:rat", {
|
||||||
})
|
})
|
||||||
|
|
||||||
creatura.register_abm_spawn("animalia:owl", {
|
creatura.register_abm_spawn("animalia:owl", {
|
||||||
chance = 30000,
|
chance = predator_spawn_chance,
|
||||||
interval = 60,
|
interval = 60,
|
||||||
min_height = 3,
|
min_height = 3,
|
||||||
max_height = 1024,
|
max_height = 1024,
|
||||||
|
@ -90,7 +98,7 @@ creatura.register_abm_spawn("animalia:owl", {
|
||||||
})
|
})
|
||||||
|
|
||||||
creatura.register_abm_spawn("animalia:pig", {
|
creatura.register_abm_spawn("animalia:pig", {
|
||||||
chance = 10000,
|
chance = common_spawn_chance,
|
||||||
min_height = 0,
|
min_height = 0,
|
||||||
max_height = 1024,
|
max_height = 1024,
|
||||||
min_group = 2,
|
min_group = 2,
|
||||||
|
@ -100,7 +108,7 @@ creatura.register_abm_spawn("animalia:pig", {
|
||||||
})
|
})
|
||||||
|
|
||||||
creatura.register_abm_spawn("animalia:reindeer", {
|
creatura.register_abm_spawn("animalia:reindeer", {
|
||||||
chance = 10000,
|
chance = common_spawn_chance,
|
||||||
min_height = 0,
|
min_height = 0,
|
||||||
max_height = 1024,
|
max_height = 1024,
|
||||||
min_group = 6,
|
min_group = 6,
|
||||||
|
@ -110,7 +118,7 @@ creatura.register_abm_spawn("animalia:reindeer", {
|
||||||
})
|
})
|
||||||
|
|
||||||
creatura.register_abm_spawn("animalia:sheep", {
|
creatura.register_abm_spawn("animalia:sheep", {
|
||||||
chance = 10000,
|
chance = common_spawn_chance,
|
||||||
min_height = 0,
|
min_height = 0,
|
||||||
max_height = 1024,
|
max_height = 1024,
|
||||||
min_group = 3,
|
min_group = 3,
|
||||||
|
@ -121,7 +129,7 @@ creatura.register_abm_spawn("animalia:sheep", {
|
||||||
})
|
})
|
||||||
|
|
||||||
creatura.register_abm_spawn("animalia:turkey", {
|
creatura.register_abm_spawn("animalia:turkey", {
|
||||||
chance = 10000,
|
chance = common_spawn_chance,
|
||||||
min_height = 0,
|
min_height = 0,
|
||||||
max_height = 1024,
|
max_height = 1024,
|
||||||
min_group = 3,
|
min_group = 3,
|
||||||
|
@ -130,16 +138,8 @@ creatura.register_abm_spawn("animalia:turkey", {
|
||||||
nodes = {"group:soil"},
|
nodes = {"group:soil"},
|
||||||
})
|
})
|
||||||
|
|
||||||
creatura.register_mob_spawn("animalia:wolf", {
|
|
||||||
chance = 3,
|
|
||||||
min_group = 2,
|
|
||||||
max_group = 3,
|
|
||||||
spawn_on_gen = true,
|
|
||||||
biomes = animalia.registered_biome_groups["boreal"].biomes
|
|
||||||
})
|
|
||||||
|
|
||||||
creatura.register_abm_spawn("animalia:wolf", {
|
creatura.register_abm_spawn("animalia:wolf", {
|
||||||
chance = 10000,
|
chance = predator_spawn_chance,
|
||||||
min_height = 0,
|
min_height = 0,
|
||||||
max_height = 1024,
|
max_height = 1024,
|
||||||
min_group = 2,
|
min_group = 2,
|
||||||
|
@ -151,7 +151,7 @@ creatura.register_abm_spawn("animalia:wolf", {
|
||||||
-- Ambient Spawning
|
-- Ambient Spawning
|
||||||
|
|
||||||
creatura.register_abm_spawn("animalia:bat", {
|
creatura.register_abm_spawn("animalia:bat", {
|
||||||
chance = 10000,
|
chance = ambient_spawn_chance,
|
||||||
interval = 30,
|
interval = 30,
|
||||||
min_light = 0,
|
min_light = 0,
|
||||||
min_height = -31000,
|
min_height = -31000,
|
||||||
|
@ -163,7 +163,7 @@ creatura.register_abm_spawn("animalia:bat", {
|
||||||
})
|
})
|
||||||
|
|
||||||
creatura.register_abm_spawn("animalia:bird", {
|
creatura.register_abm_spawn("animalia:bird", {
|
||||||
chance = 15000,
|
chance = ambient_spawn_chance,
|
||||||
interval = 60,
|
interval = 60,
|
||||||
min_light = 0,
|
min_light = 0,
|
||||||
min_height = 1,
|
min_height = 1,
|
||||||
|
@ -203,7 +203,7 @@ creatura.register_on_spawn("animalia:bird", function(self, pos)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
creatura.register_abm_spawn("animalia:frog", {
|
creatura.register_abm_spawn("animalia:frog", {
|
||||||
chance = 7500,
|
chance = ambient_spawn_chance,
|
||||||
interval = 60,
|
interval = 60,
|
||||||
min_light = 0,
|
min_light = 0,
|
||||||
min_height = -1,
|
min_height = -1,
|
||||||
|
@ -215,7 +215,7 @@ creatura.register_abm_spawn("animalia:frog", {
|
||||||
})
|
})
|
||||||
|
|
||||||
creatura.register_abm_spawn("animalia:tropical_fish", {
|
creatura.register_abm_spawn("animalia:tropical_fish", {
|
||||||
chance = 2000,
|
chance = ambient_spawn_chance,
|
||||||
min_height = -128,
|
min_height = -128,
|
||||||
max_height = 1,
|
max_height = 1,
|
||||||
min_group = 6,
|
min_group = 6,
|
||||||
|
|
|
@ -14,4 +14,16 @@ convert_redo_items(Convert Mobs Redo Items) bool false
|
||||||
guano_accumulation (Guano Accumulation) bool true
|
guano_accumulation (Guano Accumulation) bool true
|
||||||
|
|
||||||
# If true, Guano can be used as fertilizer
|
# If true, Guano can be used as fertilizer
|
||||||
guano_fertilization (Guano Fertilization) bool true
|
guano_fertilization (Guano Fertilization) bool true
|
||||||
|
|
||||||
|
# Chance for Common Mobs to spawn (1 in x nodes will spawn a mob every minute)
|
||||||
|
animalia_common_chance (Common Mob Spawn Chance) int 40000 20000 60000
|
||||||
|
|
||||||
|
# Chance for Ambient Mobs to spawn (1 in x nodes will spawn a mob every minute)
|
||||||
|
animalia_ambient_chance (Ambient Mob Spawn Chance) int 15000 5000 25000
|
||||||
|
|
||||||
|
# Chance for Pest Mobs to spawn (1 in x nodes will spawn a mob every minute)
|
||||||
|
animalia_pest_chance (Pest Mob Spawn Chance) int 5000 100 15000
|
||||||
|
|
||||||
|
# Chance for Common Mobs to spawn (1 in x nodes will spawn a mob every minute)
|
||||||
|
animalia_predator_chance (Predator Mob Spawn Chance) int 40000 20000 50000
|
Loading…
Add table
Reference in a new issue