From 812269264bf4dbb0244ddf4ed3c107b8ffb655bb Mon Sep 17 00:00:00 2001 From: ancientmarinerdev Date: Mon, 29 May 2023 20:43:15 +0100 Subject: [PATCH] Add in caps for underground water and axolotl --- mods/ENTITIES/mcl_mobs/spawning.lua | 2 ++ mods/ENTITIES/mobs_mc/axolotl.lua | 2 +- mods/ENTITIES/mobs_mc/glow_squid.lua | 2 +- settingtypes.txt | 9 +++++++++ 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/mods/ENTITIES/mcl_mobs/spawning.lua b/mods/ENTITIES/mcl_mobs/spawning.lua index 10379a6fa..f1f00a6a8 100644 --- a/mods/ENTITIES/mcl_mobs/spawning.lua +++ b/mods/ENTITIES/mcl_mobs/spawning.lua @@ -65,6 +65,8 @@ local mob_cap = { ambient = tonumber(minetest.settings:get("mcl_mob_cap_ambient")) or 15, water = tonumber(minetest.settings:get("mcl_mob_cap_water")) or 8, water_ambient = tonumber(minetest.settings:get("mcl_mob_cap_water_ambient")) or 20, + water_underground = tonumber(minetest.settings:get("mcl_mob_cap_water_underground")) or 5, + axolotl = tonumber(minetest.settings:get("mcl_mob_cap_axolotl")) or 2, -- TODO should be 5 when lush caves added player = tonumber(minetest.settings:get("mcl_mob_cap_player")) or 75, global_hostile = tonumber(minetest.settings:get("mcl_mob_cap_hostile")) or 300, global_non_hostile = tonumber(minetest.settings:get("mcl_mob_cap_non_hostile")) or 300, diff --git a/mods/ENTITIES/mobs_mc/axolotl.lua b/mods/ENTITIES/mobs_mc/axolotl.lua index 124f6bd3a..087f201c7 100644 --- a/mods/ENTITIES/mobs_mc/axolotl.lua +++ b/mods/ENTITIES/mobs_mc/axolotl.lua @@ -2,7 +2,7 @@ local S = minetest.get_translator(minetest.get_current_modname()) local axolotl = { type = "animal", - spawn_class = "water", + spawn_class = "axolotl", can_despawn = true, passive = false, hp_min = 14, diff --git a/mods/ENTITIES/mobs_mc/glow_squid.lua b/mods/ENTITIES/mobs_mc/glow_squid.lua index 5975671b1..2d3f19270 100644 --- a/mods/ENTITIES/mobs_mc/glow_squid.lua +++ b/mods/ENTITIES/mobs_mc/glow_squid.lua @@ -31,7 +31,7 @@ end mcl_mobs.register_mob("mobs_mc:glow_squid", { type = "animal", - spawn_class = "water", + spawn_class = "water_underground", can_despawn = true, passive = true, hp_min = 10, diff --git a/settingtypes.txt b/settingtypes.txt index fde9582d8..eb91b8414 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -151,6 +151,15 @@ mcl_mob_cap_animal (Mob cap animals) int 13 0 1024 #Maximum amount of water mobs that will spawn near a player (default:8) mcl_mob_cap_water (Mob cap water) int 8 0 1024 +#Maximum amount of ambient water mobs that will spawn near a player (default:20) +mcl_mob_cap_water_ambient (Mob cap ambient water) int 20 0 1024 + +#Maximum amount of underground water mobs that will spawn near a player (default:5) +mcl_mob_cap_water_underground (Mob cap underground water) int 5 0 1024 + +#Maximum amount of axolotl mobs that will spawn near a player (default:5) +mcl_mob_cap_axolotl (Mob cap axolotl) int 5 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