65 lines
1.4 KiB
Lua
65 lines
1.4 KiB
Lua
mobs:register_mob("nssm:duckking", {
|
|
type = "monster",
|
|
hp_max = 180,
|
|
hp_min = 180,
|
|
collisionbox = {-1.2, -0.25, -1.2, 1.2, 4, 1.2},
|
|
visual = "mesh",
|
|
mesh = "king_duck.x",
|
|
textures = {
|
|
{"king_duck.png"}
|
|
},
|
|
visual_size = {x = 10, y = 10},
|
|
lifetimer = 300,
|
|
makes_footstep_sound = true,
|
|
view_range = 30,
|
|
rotate = 270,
|
|
duck_father = true,
|
|
walk_velocity = 1,
|
|
fear_height = 4,
|
|
run_velocity = 2,
|
|
damage = 8,
|
|
jump = true,
|
|
sounds = {
|
|
random = "duckking",
|
|
attack = "duckking",
|
|
},
|
|
drops = {
|
|
{name = "nssm:life_energy", chance = 1, min = 7, max = 8},
|
|
{name = "nssm:duck_legs", chance = 1, min = 40, max = 50},
|
|
{name = "nssm:helmet_crown", chance = 1, min = 1, max = 1},
|
|
{name = "nssm:duck_beak", chance = 4, min = 10, max = 20},
|
|
{name = "nssm:duck_feather", chance = 3, min = 20, max = 40},
|
|
},
|
|
armor = 50,
|
|
drawtype = "front",
|
|
water_damage = 0,
|
|
floats = 1,
|
|
lava_damage = 5,
|
|
light_damage = 0,
|
|
attack_type = "dogshoot",
|
|
dogshoot_switch = true,
|
|
dogshoot_count_max = 9,
|
|
blood_texture="nssm_blood.png",
|
|
blood_amount = 50,
|
|
stepheight = 2.1,
|
|
knock_back = 0,
|
|
jump_height = 12,
|
|
arrow = "nssm:duck_father",
|
|
shoot_interval = 3,
|
|
shoot_offset = -1,
|
|
animation = {
|
|
speed_normal = 15,
|
|
speed_run = 25,
|
|
stand_start = 60,
|
|
stand_end = 140,
|
|
walk_start = 0,
|
|
walk_end = 40,
|
|
run_start = 0,
|
|
run_end = 40,
|
|
punch_start = 190,
|
|
punch_end = 220,
|
|
shoot_start = 160,
|
|
shoot_end = 180,
|
|
}
|
|
})
|