minetest-mod-nssm/mobs/silver_sandonisc.lua
2017-03-01 11:13:15 +01:00

67 lines
1.3 KiB
Lua

mobs:register_mob("nssm:silver_sandonisc", {
type = "monster",
hp_max = 40,
hp_min = 25,
collisionbox = {-0.4, -0.2, -0.4, 0.4, 0.5, 0.4},
visual = "mesh",
mesh = "silver_sandonisc.x",
textures = {{"silver_sandonisc.png"}},
visual_size = {x=8, y=8},
makes_footstep_sound = false,
view_range = 17,
rotate = 270,
reach = 5,
fear_height = 3,
walk_velocity = 0.6,
run_velocity = 5,
damage = 3,
-- sounds = {
-- random = "silver_sandonisc",
--distance = 40,
--},
jump = false,
drops = {
{name = "nssm:life_energy",
chance = 1,
min = 2,
max = 3,},
},
armor = 60,
drawtype = "front",
water_damage = 5,
lava_damage = 10,
light_damage = 0,
group_attack=true,
attack_animals=true,
knock_back=2,
blood_texture="nssm_blood_blue.png",
stepheight=1.1,
on_rightclick = nil,
attack_type = "dogfight",
animation = {
speed_normal = 20,
speed_run = 30,
stand_start = 170,
stand_end = 230,
walk_start = 80,
walk_end = 120,
run_start = 40,
run_end = 70,
punch_start = 130,
punch_end = 160,
punch2_start = 40,
punch2_end = 70,
speed_punch2 = 40,
die_start = 235,
die_end = 255,
},
do_custom = function (self)
if self.other_state and self.other_state == "charge" then
do_charge(self)
end
end,
custom_attack = function (self)
charge_attack(self)
end,
})