diff --git a/mods/ENTITIES/mcl_mobs/spawning.lua b/mods/ENTITIES/mcl_mobs/spawning.lua index 810f9df4fb..7a67bd4c83 100644 --- a/mods/ENTITIES/mcl_mobs/spawning.lua +++ b/mods/ENTITIES/mcl_mobs/spawning.lua @@ -29,11 +29,11 @@ local dbg_spawn_succ = 0 local aoc_range = 136 local mob_cap = { - monster = 70, - animal =10, - ambient =15, - water = 5, --currently unused - water_ambient = 20, --currently unused + monster = minetest.settings:get_bool("mcl_mob_cap_monster") or 70, + animal = minetest.settings:get_bool("mcl_mob_cap_animal") or 10, + ambient = minetest.settings:get_bool("mcl_mob_cap_ambient") or 15, + water = minetest.settings:get_bool("mcl_mob_cap_water") or 5, --currently unused + water_ambient = minetest.settings:get_bool("mcl_mob_cap_water_ambient") or 20, --currently unused } --do mobs spawn? diff --git a/settingtypes.txt b/settingtypes.txt index 5f80766538..3d0ce9c05b 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -99,6 +99,15 @@ mobs_griefing (Mobs change blocks) bool true # If enabled, mobs won't damage particles when they got hurt. mobs_disable_blood (Disable mob damage particles) bool false +#Maximum amount of monsters that will spawn near a player (default:70) +mcl_mob_cap_monster (Mob cap monsters) int 70 0 2048 + +#Maximum amount of animals that will spawn near a player (default:10) +mcl_mob_cap_animal (Mob cap animals) int 10 0 1024 + +#Maximum amount of ambient mobs that will spawn near a player (default:15) +mcl_mob_cap_ambient (Mob cap ambient mobs) int 15 0 1024 + [Audio] # Enable flame sound. flame_sound (Flame sound) bool true