nssm/mobs/enderduck.lua

56 lines
1.2 KiB
Lua
Raw Normal View History

2018-08-08 12:56:14 +03:00
mobs:register_mob("nssm:enderduck", {
type = "monster",
hp_max = 28,
hp_min = 18,
collisionbox = {-0.28, 0.00, -0.28, 0.28, 1.8, 0.28},
visual = "mesh",
mesh = "enderduck.x",
textures = {
{"enderduck.png"}
},
visual_size = {x = 2, y = 2},
2018-08-08 12:56:14 +03:00
makes_footstep_sound = true,
view_range = 25,
walk_velocity = 3,
fear_height = 4,
run_velocity = 3.9,
rotate = 270,
2018-08-09 13:57:31 +03:00
sounds = {
2018-08-08 12:56:14 +03:00
random = "duck",
},
damage = 5,
reach = 2,
jump = true,
drops = {
{name = "nssm:life_energy", chance = 1, min = 1, max = 2},
{name = "nssm:duck_legs", chance = 1, min = 1, max = 2},
{name = "nssm:black_duck_feather", chance = 3, min = 1, max = 4},
{name = "nssm:duck_beak", chance = 5, min = 1, max = 1},
2018-08-08 12:56:14 +03:00
},
armor = 80,
drawtype = "front",
water_damage = 1,
floats = 1,
2018-08-08 12:56:14 +03:00
lava_damage = 5,
light_damage = 0,
group_attack = true,
attack_animals = true,
knock_back = 4,
blood_texture = "nssm_blood.png",
jump_height = 12,
stepheight = 2.1,
2018-08-08 12:56:14 +03:00
attack_type = "dogfight",
animation = {
speed_normal = 15,
speed_run = 30,
stand_start = 1,
stand_end = 40,
walk_start = 100,
walk_end = 130,
run_start = 100,
run_end = 130,
punch_start = 60,
punch_end = 90,
}
})