Герхард PICCORO Lenz McKAY ed69b46302 fix missing depends bones due skeleton, mobs_animal and fix forced ones due farming
* missing depends on mobs_animal due rats and fox
* missing forced depends on farming https://notabug.org/TenPlus1/dmobs/issues/9
  there's too many references on so must be forced
* fix missing depends on bones due skeleton
* add missing depends on mod.conf
2022-01-24 10:08:27 -04:00

54 lines
1009 B
Lua

--skeleton
local dropsf = {}
-- detect common minetest famous mobs
if minetest.get_modpath("bones") then
table.insert(dropsf, "bones:bones")
end
mobs:register_mob("dmobs:skeleton", {
type = "monster",
reach = 3,
damage = 2,
attack_type = "dogfight",
hp_min = 62,
hp_max = 72,
armor = 100,
collisionbox = {-0.4, 0, -0.4, 0.4, 2.5, 0.4},
visual = "mesh",
mesh = "skeleton.b3d",
textures = {
{"dmobs_skeleton.png"},
},
blood_texture = "default_stone.png",
visual_size = {x=1, y=1},
makes_footstep_sound = true,
walk_velocity = 1,
run_velocity = 2.5,
jump = true,
drops = dropsf,
water_damage = 0,
lava_damage = 2,
fire_damage = 1,
light_damage = 1,
fall_damage = 0,
fear_height = 10,
view_range = 14,
animation = {
speed_normal = 15,
speed_run = 20,
walk_start = 46,
walk_end = 66,
stand_start = 1,
stand_end = 20,
run_start = 46,
run_end = 66,
punch_start = 20,
punch_end = 45,
},
})
mobs:register_egg("dmobs:skeleton", "Skeleton", "default_dirt.png", 1)