mobs_nssm/ant_worker.lua

44 lines
818 B
Lua

mobs:register_mob("nssm:ant_worker", {
type = "animal",
hp_max = 13,
hp_min = 13,
collisionbox = {-0.4, 0.00, -0.4, 0.4, 0.5, 0.4},
visual = "mesh",
mesh = "ant_worker.x",
textures = {{"ant_worker.png"}},
visual_size = {x=2, y=2},
makes_footstep_sound = true,
view_range = 20,
fear_height = 4,
walk_velocity = 1.5,
run_velocity = 2,
rotate = 270,
sounds = {
random = "ant",
},
damage = 2,
jump = true,
drops = {
{name = "default:mese_crystal_fragment", chance = 3, min = 1, max = 2},
},
armor = 90,
water_damage = 2,
lava_damage = 7,
light_damage = 0,
attack_type = "dogfight",
animation = {
speed_normal = 20,
speed_run = 25,
stand_start = 1,
stand_end = 50,
walk_start = 120,
walk_end = 160,
run_start = 120,
run_end = 160,
punch_start = 50,
punch_end = 70,
}
})