minetest-mod-nssm/mobs/giant_sandworm.lua
2016-09-02 16:28:22 +02:00

52 lines
966 B
Lua

mobs:register_mob("nssm:giant_sandworm", {
type = "monster",
hp_max = 130,
hp_min = 120,
collisionbox = {-1.2, 0, -1.2, 1.2, 4.5, 1.2},
visual = "mesh",
mesh = "giant_sandworm.x",
textures = {{"sandworm.png"}},
visual_size = {x=13, y=13},
makes_footstep_sound = false,
view_range = 9,
rotate = 270,
reach = 8,
walk_velocity = 0,
run_velocity = 0,
damage = 8,
jump = false,
drops = {
{name = "nssm:worm_flesh",
chance = 1,
min = 20,
max = 30,},
{name = "nssm:life_energy",
chance = 1,
min = 7,
max = 8,},
{name = "nssm:black_sand",
chance = 1,
min = 1,
max = 1,},
},
armor = 60,
drawtype = "front",
water_damage = 5,
lava_damage = 3,
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,
},
})