nssm_extra-cd2025/mobs/albino_spider.lua
2024-07-16 13:12:19 +01:00

52 lines
1.3 KiB
Lua

mobs:register_mob("nssm:albino_spider", {
type = "monster",
hp_max = 23,
hp_min = 17,
collisionbox = {-0.35, 0.00, -0.35, 0.35, 0.6, 0.35},
visual = "mesh",
mesh = "albino_spider.x",
textures = {{"albino_spider.png"}},
visual_size = {x = 4, y = 4},
makes_footstep_sound = false,
view_range = 22,
walk_velocity = 0.6,
fear_height = 3,
run_velocity = 3,
-- sounds = {
-- random = "albino_spider",
-- },
damage = 3,
reach = 2,
jump = true,
drops = {
{name = "nssm:life_energy", chance = 1, min = 1, max = 4},
{name = "nssm:spider_leg", chance = 2, min = 1, max = 8},
{name = "nssm:silk_gland", chance = 4, min = 1, max = 3},
{name = "nssm:spider_meat", chance = 4, min = 1, max = 2},
},
armor = 70,
drawtype = "front",
water_damage = 2,
lava_damage = 14,
light_damage = 0,
group_attack = true,
attack_animals = true,
suffocation = 0,
knock_back = 1,
blood_texture = "nssm_blood_blue.png",
stepheight=1.1,
attack_type = "dogfight",
animation = {
speed_normal = 20, speed_run = 25,
stand_start = 1, stand_end = 80,
walk_start = 120, walk_end = 160,
run_start = 210, run_end = 222,
punch_start = 80, punch_end = 110,
die_start = 170, die_end = 190,
},
-- do_custom = function(self)
-- webber_ability(self, "nssm:web", 2)
-- end
})