mckaygerhard e96fc05124 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
2023-08-06 22:14:48 -04:00

79 lines
1.7 KiB
Lua

local followf = {}
table.insert(followf, "mobs:meat_raw")
--if minetest.get_modpath("mobs_animal") then
table.insert(followf, "mobs_animal:muttom_raw")
--end
-- Fox
mobs:register_mob(":mobs_doomed:fox", {
type = "monster",
attacks_monsters = true,
reach = 1,
damage = 2,
attack_type = "dogfight",
hp_min = 42,
hp_max = 52,
armor = 130,
collisionbox = {-0.4, -0.6, -0.4, 0.3, 0.3, 0.3},
-- runaway = true,
-- pathfinding = true,
visual = "mesh",
mesh = "mobs_fox.b3d",
textures = {
{"mobs_fox.png"},
},
blood_texture = "mobs_blood.png",
visual_size = {x=1.5, y=1.5},
makes_footstep_sound = true,
walk_velocity = 1,
run_velocity = 2.5,
jump = true,
drops = {
{name = "mobs:meat_raw", chance = 1, min = 1, max = 1},
},
on_activate = function(self)
if math.random(1,5) == 1 then
self.type = "animal"
end
end,
water_damage = 0,
lava_damage = 2,
light_damage = 0,
fire_damage = 2,
fall_damage = 1,
fear_height = 4,
replace_rate = 10,
replace_what = {"farming:wheat_5", "default:fence_wood", "default:grass_5", "default:dirt_with_grass"},
replace_with = "air",
follow = followf,
view_range = 14,
animation = {
speed_normal = 6,
speed_run = 15,
walk_start = 25,
walk_end = 35,
stand_start = 51,
stand_end = 60,
run_start = 1,
run_end = 16,
punch_start = 36,
punch_end = 51,
},
on_rightclick = function(self, clicker)
if mobs:feed_tame(self, clicker, 8, true, true) then
return
end
mobs:capture_mob(self, clicker, 0, 5, 50, false, nil)
end,
})
mobs:register_egg(":mobs_doomed:fox", "Fox", "wool_orange.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})