minetest-mod-nssm/mobs/berinhog.lua
2017-02-24 19:51:44 +01:00

68 lines
1.2 KiB
Lua

mobs:register_mob("nssm:berinhog", {
type = "monster",
hp_max = 36,
hp_min = 27,
collisionbox = {-0.5, 0, -0.5, 0.5, 1.2, 0.5},
visual = "mesh",
mesh = "berinhog.x",
textures = {{"berinhog.png"}},
visual_size = {x=6, y=6},
makes_footstep_sound = true,
view_range = 18,
rotate=270,
walk_velocity = 1,
fear_height = 4,
run_velocity = 4,
sounds = {
random = "berinhog",
},
damage = 1,
jump = true,
drops = {
{name = "nssm:life_energy",
chance = 1,
min = 3,
max = 4},
--[[ {name = "nssm:berinhog_steak",
chance = 2,
min = 1,
max = 2},
{name = "nssm:berinhog_fur",
chance = 2,
min = 1,
max = 1},
{name = "nssm:berinhog_horn",
chance = 3,
min = 1,
max = 2},]]
},
armor = 70,
drawtype = "front",
water_damage = 2,
lava_damage = 5,
reach=3,
light_damage = 0,
group_attack=true,
attack_animals=true,
knock_back=0,
blood_texture="nssm_blood.png",
stepheight=1.1,
on_rightclick = nil,
attack_type = "dogfight",
animation = {
speed_normal = 20,
speed_run = 20,
stand_start = 0,
stand_end = 40,
walk_start = 210,
walk_end = 250,
run_start = 140,
run_end = 160,
punch_start = 170,
punch_end = 200,
speed_die = 10,
die_start = 110,
die_end = 130,
}
})