0
0
Fork 0

Make mob caps configurable

This commit is contained in:
cora 2022-09-13 14:18:29 +02:00
parent 87d4640ca1
commit 8c16b8c7ee
2 changed files with 14 additions and 5 deletions

View File

@ -29,11 +29,11 @@ local dbg_spawn_succ = 0
local aoc_range = 136 local aoc_range = 136
local mob_cap = { local mob_cap = {
monster = 70, monster = minetest.settings:get_bool("mcl_mob_cap_monster") or 70,
animal =10, animal = minetest.settings:get_bool("mcl_mob_cap_animal") or 10,
ambient =15, ambient = minetest.settings:get_bool("mcl_mob_cap_ambient") or 15,
water = 5, --currently unused water = minetest.settings:get_bool("mcl_mob_cap_water") or 5, --currently unused
water_ambient = 20, --currently unused water_ambient = minetest.settings:get_bool("mcl_mob_cap_water_ambient") or 20, --currently unused
} }
--do mobs spawn? --do mobs spawn?

View File

@ -99,6 +99,15 @@ mobs_griefing (Mobs change blocks) bool true
# If enabled, mobs won't damage particles when they got hurt. # If enabled, mobs won't damage particles when they got hurt.
mobs_disable_blood (Disable mob damage particles) bool false 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] [Audio]
# Enable flame sound. # Enable flame sound.
flame_sound (Flame sound) bool true flame_sound (Flame sound) bool true