52 lines
1009 B
Lua
52 lines
1009 B
Lua
nssm:register_mob("nssm:sandworm", {
|
|
type = "monster",
|
|
hp_max = 30,
|
|
hp_min = 25,
|
|
collisionbox = {-0.4, -0.2, -0.4, 0.4, 1.90, 0.4},
|
|
visual = "mesh",
|
|
mesh = "sandworm.x",
|
|
textures = {{"sandworm.png"}},
|
|
visual_size = {x=4, y=4},
|
|
makes_footstep_sound = false,
|
|
view_range = 17,
|
|
rotate = 270,
|
|
reach = 4,
|
|
fear_height = 3,
|
|
walk_velocity = 2,
|
|
run_velocity = 2,
|
|
damage = 4,
|
|
jump = false,
|
|
drops = {
|
|
{name = "nssm:worm_flesh",
|
|
chance = 2,
|
|
min = 1,
|
|
max = 3,},
|
|
{name = "nssm:life_energy",
|
|
chance = 1,
|
|
min = 2,
|
|
max = 3,},
|
|
},
|
|
armor = 90,
|
|
drawtype = "front",
|
|
water_damage = 5,
|
|
lava_damage = 10,
|
|
light_damage = 0,
|
|
on_rightclick = nil,
|
|
attack_type = "dogfight",
|
|
animation = {
|
|
speed_normal = 25,
|
|
speed_run = 40,
|
|
stand_start = 1,
|
|
stand_end = 100,
|
|
walk_start = 110,
|
|
walk_end = 140,
|
|
run_start = 110,
|
|
run_end = 140,
|
|
punch_start = 150,
|
|
punch_end = 180,
|
|
},
|
|
do_custom = function(self)
|
|
nssm:digging_ability(self, nil, self.run_velocity, {x=0, y=2, z=0})
|
|
end,
|
|
})
|