mobs_nssm/ant_soldier.lua

44 lines
835 B
Lua

mobs:register_mob("nssm:ant_soldier", {
type = "monster",
hp_max = 20,
hp_min = 20,
collisionbox = {-0.49, 0.00, -0.49, 0.49, 0.9, 0.49},
visual = "mesh",
mesh = "ant_soldier.x",
textures = {{"ant_soldier.png"}},
visual_size = {x=3, y=3},
makes_footstep_sound = true,
view_range = 20,
fear_height = 4,
walk_velocity = 1.5,
run_velocity = 3,
rotate = 270,
sounds = {
random = "ant",
},
damage = 4,
jump = true,
drops = {
{name = "default:mese_crystal_fragment", chance = 1, min = 1, max = 2},
},
reach = 2,
armor = 90,
water_damage = 2,
lava_damage = 7,
light_damage = 0,
attack_type = "dogfight",
animation = {
speed_normal = 20,
speed_run = 35,
stand_start = 1,
stand_end = 60,
walk_start = 90,
walk_end = 130,
run_start = 90,
run_end = 130,
punch_start = 60,
punch_end = 80,
}
})