From bc8892e022b01fe6471e242df641b01bba77e136 Mon Sep 17 00:00:00 2001 From: mckaygerhard Date: Sun, 6 Aug 2023 22:15:14 -0400 Subject: [PATCH] mobs and mobs_jam that mixed and resume mobs_animal+mobs_monster+mobs_doomed * spawn tune up, more animals in the world and more monters in undergrounds * penguin spawns more (was pretty rare found one) also permit to spawn in higer grounds * rats spawns more but pretty more down, basically only in dungeons * sheep spawns more due we need more lana, autodetect ethereal and put nodes to spawn * tortoise spawns more * wardog spawns more * panda spawn not only in ethereal, also spawn in normal mods * kitty spawn more frecuently, less rare * mese monster and lava flan spwans more * owl spawn more * fire spirit can spawn now in lava also, and cave realms if detected * cow spawns more * more chicken and als permit to spawn ar the sea level too * bee spawn little more but in more high levels * bunny spawns more --- bee.lua | 6 +++--- bunny.lua | 2 +- chicken.lua | 4 ++-- cow.lua | 4 ++-- fire_spirit.lua | 10 +++++----- kitten.lua | 8 ++++---- mese_monster.lua | 2 +- oerkki.lua | 2 +- owl.lua | 2 +- panda.lua | 13 ++++++++----- penguin.lua | 4 ++-- rat.lua | 10 +++++----- sheep.lua | 6 ++++-- tortoise.lua | 2 +- warthog.lua | 2 +- 15 files changed, 41 insertions(+), 36 deletions(-) diff --git a/bee.lua b/bee.lua index b8cc5d0..a7f1c25 100644 --- a/bee.lua +++ b/bee.lua @@ -56,9 +56,9 @@ if not mobs.custom_spawn_animal then nodes = {"group:flower"}, min_light = 14, interval = 60, - chance = 7000, - min_height = 3, - max_height = 200, + chance = 6000, + min_height = 11, + max_height = 300, day_toggle = true }) end diff --git a/bunny.lua b/bunny.lua index bb0745b..147dbcd 100644 --- a/bunny.lua +++ b/bunny.lua @@ -141,7 +141,7 @@ if not mobs.custom_spawn_animal then neighbors = {"group:grass"}, min_light = 14, interval = 60, - chance = 8000, + chance = 5000, min_height = 5, max_height = 200, day_toggle = true diff --git a/chicken.lua b/chicken.lua index 574b6f6..850acaa 100644 --- a/chicken.lua +++ b/chicken.lua @@ -109,8 +109,8 @@ if not mobs.custom_spawn_animal then neighbors = {"group:grass"}, min_light = 14, interval = 60, - chance = 8000, - min_height = 5, + chance = 4000, + min_height = 2, max_height = 200, day_toggle = true }) diff --git a/cow.lua b/cow.lua index e538c15..b4abc1b 100644 --- a/cow.lua +++ b/cow.lua @@ -158,8 +158,8 @@ if not mobs.custom_spawn_animal then neighbors = {"group:grass"}, min_light = 14, interval = 60, - chance = 8000, - min_height = 5, + chance = 4000, + min_height = 3, max_height = 200, day_toggle = true }) diff --git a/fire_spirit.lua b/fire_spirit.lua index eadf683..7abbcc2 100644 --- a/fire_spirit.lua +++ b/fire_spirit.lua @@ -81,10 +81,10 @@ mobs:register_mob(":mobs_monster:fire_spirit", { }) -local spawnon = {"default:obsidian"} +local spawnon = {"default:obsidian", "default:lava_source"} if minetest.get_modpath("caverealms") then - spawnon = {"default:obsidian", "caverealms:hot_cobble"} + spawnon = {"default:obsidian", "caverealms:hot_cobble", "default:lava_source"} end if not mobs.custom_spawn_monster then @@ -93,11 +93,11 @@ if not mobs.custom_spawn_monster then name = ":mobs_monster:fire_spirit", nodes = spawnon, neighbors = {"group:fire"}, - min_light = 12, + min_light = 5, max_light = 15, - chance = 1500, + chance = 1200, active_object_count = 1, - max_height = -150 + max_height = -100 }) end diff --git a/kitten.lua b/kitten.lua index b2a71de..96328a0 100644 --- a/kitten.lua +++ b/kitten.lua @@ -134,21 +134,21 @@ mobs:register_mob(":mobs_animal:kitten", { }) -local spawn_on = "default:dirt_with_grass" +local spawn_on = {"default:dirt_with_grass"} if minetest.get_modpath("ethereal") then - spawn_on = "ethereal:grove_dirt" + spawn_on = {"ethereal:grove_dirt","default:dirt_with_grass"} end if not mobs.custom_spawn_animal then mobs:spawn({ name = ":mobs_animal:kitten", - nodes = {spawn_on}, + nodes = spawn_on, neighbors = {"group:grass"}, min_light = 14, interval = 60, - chance = 10000, + chance = 8000, min_height = 5, max_height = 50, day_toggle = true diff --git a/mese_monster.lua b/mese_monster.lua index 0059d0b..bdfd3d9 100644 --- a/mese_monster.lua +++ b/mese_monster.lua @@ -328,7 +328,7 @@ if not mobs.custom_spawn_monster then name = ":mobs_monster:mese_monster", nodes = {"default:stone"}, max_light = 7, - chance = 5000, + chance = 4500, active_object_count = 1, max_height = -90 }) diff --git a/oerkki.lua b/oerkki.lua index 8898b67..a6fe3b2 100644 --- a/oerkki.lua +++ b/oerkki.lua @@ -66,7 +66,7 @@ if not mobs.custom_spawn_monster then name = ":mobs_monster:oerkki", nodes = {"default:stone"}, max_light = 7, - chance = 7000, + chance = 5000, max_height = -60 }) end diff --git a/owl.lua b/owl.lua index f41194c..ef79ce0 100644 --- a/owl.lua +++ b/owl.lua @@ -98,4 +98,4 @@ mobs:register_mob(":mobs_doomed:owl", { mobs:register_egg(":mobs_doomed:owl", "Owl", "default_tree.png", 1) mobs:spawn({name = ":mobs_doomed:owl", nodes = {"group:tree"}, neighbor = {}, - min_light = 0, max_light = 7, interval = 300, chance = 16000, active_object_count = 2, min_height = 0, max_height = 2000}) + min_light = 0, max_light = 7, interval = 300, chance = 9000, active_object_count = 2, min_height = 0, max_height = 2000}) diff --git a/panda.lua b/panda.lua index e2c655b..77176cc 100644 --- a/panda.lua +++ b/panda.lua @@ -33,7 +33,7 @@ stepheight = 0.6, run_velocity = 1.5, jump = false, jump_height = 6, - follow = {"ethereal:bamboo", "bamboo:trunk"}, + follow = {"ethereal:bamboo", "bamboo:trunk", "default:papyrus"}, view_range = 8, drops = { {name = "mobs:meat_raw", chance = 1, min = 1, max = 2} @@ -69,16 +69,19 @@ stepheight = 0.6, end }) +local spawn_on = {"default:dirt_with_grass"} -if minetest.get_modpath("ethereal") and not mobs.custom_spawn_animal then +if minetest.get_modpath("ethereal") then spawn_on = {"ethereal:bamboo_dirt", "default:dirt_with_grass"} end + +if not mobs.custom_spawn_animal then mobs:spawn({ name = ":mobs_animal:panda", - nodes = {"ethereal:bamboo_dirt"}, + nodes = spawn_on, neighbors = {"group:grass"}, min_light = 14, interval = 60, - chance = 8000, - min_height = 10, + chance = 4000, + min_height = 5, max_height = 80, day_toggle = true }) diff --git a/penguin.lua b/penguin.lua index 9ec0653..5dac2f4 100644 --- a/penguin.lua +++ b/penguin.lua @@ -68,8 +68,8 @@ if not mobs.custom_spawn_animal then nodes = {"default:snowblock"}, min_light = 14, interval = 60, - chance = 20000, - min_height = 0, + chance = 10000, + min_height = 1000, max_height = 200, day_toggle = true }) diff --git a/rat.lua b/rat.lua index b03a754..374ef07 100644 --- a/rat.lua +++ b/rat.lua @@ -5,7 +5,7 @@ local S = mobs.intllib_animal -- Rat by KPavel and PilzAdam (B3D model by sirrobzeroone) mobs:register_mob(":mobs_animal:rat", { -stepheight = 0.6, + stepheight = 0.6, type = "animal", passive = true, hp_min = 1, @@ -75,11 +75,11 @@ if not mobs.custom_spawn_animal then mobs:spawn({ name = ":mobs_animal:rat", nodes = {"default:stone"}, - min_light = 3, - max_light = 9, + min_light = 2, + max_light = 10, interval = 60, - chance = 8000, - max_height = 0, + chance = 1000, + max_height = 50, -- on_spawn = rat_spawn, }) end diff --git a/sheep.lua b/sheep.lua index 8dbaf7d..8683294 100644 --- a/sheep.lua +++ b/sheep.lua @@ -370,9 +370,11 @@ end if not mobs.custom_spawn_animal then local max_ht = 400 - local spawn_on = {"default:dirt_with_grass", "ethereal:green_dirt"} + local spawn_on = {"default:dirt_with_grass"} local mod_ethereal = minetest.get_modpath("ethereal") - local spawn_chance = 8000 + local spawn_chance = 4000 + + if mod_ethereal then spawn_on = {"default:dirt_with_grass", "ethereal:green_dirt"} end mobs:spawn({ name = ":mobs_animal:sheep_white", diff --git a/tortoise.lua b/tortoise.lua index 4901702..ccd043e 100644 --- a/tortoise.lua +++ b/tortoise.lua @@ -71,4 +71,4 @@ mobs:register_mob(":mobs_doomed:tortoise", { mobs:register_egg(":mobs_doomed:tortoise", "Tortoise", "default_grass.png", 1) mobs:spawn({name = ":mobs_doomed:tortoise", nodes = {"default:water_source", "group:sand"}, neighbor = {}, - min_light = 5, max_light = 10, interval = 300, chance = 8000, active_object_count = 2, min_height = -100, max_height = 500}) + min_light = 5, max_light = 10, interval = 300, chance = 4000, active_object_count = 2, min_height = -100, max_height = 500}) diff --git a/warthog.lua b/warthog.lua index 8cffa34..bf49188 100644 --- a/warthog.lua +++ b/warthog.lua @@ -88,7 +88,7 @@ if not mobs.custom_spawn_animal then neighbors = spawn_by, min_light = 14, interval = 60, - chance = 8000, + chance = 4000, min_height = 0, max_height = 200, day_toggle = true