Герхард PICCORO Lenz McKAY
ed69b46302
* 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
54 lines
1009 B
Lua
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)
|