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",
|
2020-07-26 21:42:13 +03:00
|
|
|
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 = {
|
2022-09-28 12:41:38 +03:00
|
|
|
random = "duck"
|
2018-08-08 12:56:14 +03:00
|
|
|
},
|
|
|
|
damage = 5,
|
|
|
|
reach = 2,
|
|
|
|
jump = true,
|
|
|
|
drops = {
|
2020-07-26 21:42:13 +03:00
|
|
|
{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},
|
2022-09-28 12:41:38 +03:00
|
|
|
{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,
|
2020-07-26 21:42:13 +03:00
|
|
|
floats = 1,
|
2018-08-08 12:56:14 +03:00
|
|
|
lava_damage = 5,
|
|
|
|
light_damage = 0,
|
2021-04-05 11:49:24 +03:00
|
|
|
fire_damage = 4,
|
2020-07-26 21:42:13 +03:00
|
|
|
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,
|
2022-09-28 12:41:38 +03:00
|
|
|
punch_end = 90
|
2018-08-08 12:56:14 +03:00
|
|
|
}
|
|
|
|
})
|