nssm/mobs/duckking.lua

66 lines
1.4 KiB
Lua
Raw Permalink Normal View History

2018-08-08 12:56:14 +03:00
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},
2018-08-08 12:56:14 +03:00
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,
2018-08-09 13:57:31 +03:00
sounds = {
2018-08-08 12:56:14 +03:00
random = "duckking",
2022-09-28 12:41:38 +03:00
attack = "duckking"
2018-08-08 12:56:14 +03:00
},
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},
2022-09-28 12:41:38 +03:00
{name = "nssm:duck_feather", chance = 3, min = 20, max = 40}
2018-08-08 12:56:14 +03:00
},
armor = 50,
drawtype = "front",
water_damage = 0,
floats = 1,
lava_damage = 5,
2021-04-05 11:49:24 +03:00
fire_damage = 5,
2018-08-08 12:56:14 +03:00
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,
2018-08-08 12:56:14 +03:00
arrow = "nssm:duck_father",
shoot_interval = 3,
shoot_offset = -1,
2018-08-08 12:56:14 +03:00
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,
2022-09-28 12:41:38 +03:00
shoot_end = 180
2018-08-08 12:56:14 +03:00
}
})