nssm/mobs/icesnake.lua

63 lines
1.2 KiB
Lua

mobs:register_mob("nssm:icesnake", {
type = "monster",
hp_max = 27,
hp_min = 17,
collisionbox = {-0.7, 0, -0.7, 0.7, 0.50, 0.7},
visual = "mesh",
mesh = "icesnake.x",
textures = {{"icesnake.png"}},
visual_size = {x=7, y=7},
makes_footstep_sound = false,
view_range = 10,
rotate = 270,
fear_height = 3,
walk_velocity = 1.2,
run_velocity = 3,
sounds = {
random = "icesnake",
},
damage = 5,
reach = 2,
jump = true,
drops = {
{name = "nssm:life_energy",
chance = 1,
min = 1,
max = 2},
{name = "nssm:frosted_amphibian_heart",
chance = 1,
min = 1,
max = 1},
{name = "nssm:little_ice_tooth",
chance = 2,
min = 0,
max = 4},
{name = "nssm:amphibian_ribs",
chance = 2,
min = 1,
max = 1},
},
armor = 70,
drawtype = "front",
water_damage = 0,
lava_damage = 20,
light_damage = 0,
on_rightclick = nil,
attack_type = "dogfight",
animation = {
speed_normal = 15,
speed_run = 25,
stand_start = 170,
stand_end = 220,
walk_start = 1,
walk_end = 60,
run_start = 80,
run_end = 120,
punch_start = 130,
punch_end = 160,
},
do_custom = function(self)
putting_ability(self, "default:ice", self.run_velocity)
end,
})