nssm/mobs/tarantula.lua

136 lines
2.8 KiB
Lua
Raw Normal View History

2018-08-08 12:56:14 +03:00
mobs:register_mob("nssm:tarantula", {
type = "monster",
hp_max = 50,
hp_min = 50,
collisionbox = {-0.5, 0.00, -0.5, 0.5, 0.9, 0.5},
visual = "mesh",
mesh = "tarantula.x",
textures = {
{"tarantula.png"}
},
visual_size = {x = 8, y = 8},
2018-08-08 12:56:14 +03:00
makes_footstep_sound = true,
view_range = 20,
lifetimer = 500,
walk_velocity = 0.7,
fear_height = 4,
run_velocity = 3,
2018-08-09 13:57:31 +03:00
rotate = 270,
sounds = {
2018-08-08 12:56:14 +03:00
random = "tarry",
},
damage = 8,
jump = true,
drops = {
{name = "nssm:super_silk_gland", chance = 1, min = 3, max = 5},
2018-08-08 12:56:14 +03:00
},
armor = 60,
drawtype = "front",
water_damage = 1,
lava_damage = 7,
2021-04-05 11:49:24 +03:00
fire_damage = 7,
2018-08-08 12:56:14 +03:00
reach = 3,
knock_back = 0,
blood_texture = "nssm_blood_blue.png",
stepheight = 1.1,
2018-08-08 12:56:14 +03:00
light_damage = 0,
dogshoot_switch = true,
attack_type = "dogshoot",
2018-08-09 13:57:31 +03:00
arrow = "nssm:thickwebball",
shoot_interval = 2,
shoot_offset = 1,
2018-08-08 12:56:14 +03:00
animation = {
speed_normal = 20,
speed_run = 25,
stand_start = 1,
stand_end = 60,
walk_start = 100,
walk_end = 140,
run_start = 140,
run_end = 160,
punch_start = 180,
punch_end = 200,
shoot_start = 180,
shoot_end = 200,
},
2018-08-08 12:56:14 +03:00
on_die = function(self, pos)
2018-08-08 12:56:14 +03:00
self.object:remove()
2021-04-05 11:49:24 +03:00
minetest.add_particlespawner({
amount = 200,
time = 0.1,
minpos = {x=pos.x-1, y=pos.y-1, z=pos.z-1},
maxpos = {x=pos.x+1, y=pos.y+1, z=pos.z+1},
minvel = {x=-0, y=-0, z=-0},
maxvel = {x=1, y=1, z=1},
minacc = {x=-0.5,y=5,z=-0.5},
maxacc = {x=0.5,y=5,z=0.5},
minexptime = 0.1,
maxexptime = 1,
minsize = 3,
maxsize = 4,
collisiondetection = false,
texture = "tnt_smoke.png"
})
2018-08-08 12:56:14 +03:00
minetest.add_entity(pos, "nssm:tarantula_propower")
end,
})
mobs:register_mob("nssm:tarantula_propower", {
type = "monster",
hp_max = 90,
hp_min = 90,
collisionbox = {-0.5, 0.00, -0.5, 0.5, 1, 0.5},
visual = "mesh",
mesh = "tarantula_propower.x",
textures = {
{"tarantula.png"}
},
visual_size = {x = 10, y = 10},
2018-08-08 12:56:14 +03:00
makes_footstep_sound = true,
view_range = 30,
lifetimer = 500,
walk_velocity = 1.5,
run_velocity = 3.3,
2018-08-09 13:57:31 +03:00
rotate = 270,
sounds = {
2018-08-08 12:56:14 +03:00
random = "tarry",
},
damage = 12,
jump = true,
drops = {
{name = "nssm:life_energy", chance = 1, min = 16, max = 18},
{name = "nssm:spider_leg", chance = 1, min = 1, max = 8},
{name = "nssm:tarantula_chelicerae", chance = 1, min = 1, max = 1},
{name = "nssm:silk_gland", chance = 2, min = 1, max = 3},
{name = "nssm:spider_meat", chance = 2, min = 1, max = 2},
2018-08-08 12:56:14 +03:00
},
armor = 40,
drawtype = "front",
water_damage = 1,
lava_damage = 3,
2021-04-05 11:49:24 +03:00
fire_damage = 3,
2018-08-08 12:56:14 +03:00
reach = 4,
knock_back = 0,
blood_texture = "nssm_blood_blue.png",
stepheight = 2.1,
2018-08-08 12:56:14 +03:00
light_damage = 0,
attack_type = "dogfight",
animation = {
speed_normal = 20,
speed_run = 25,
stand_start = 1,
stand_end = 60,
walk_start = 100,
walk_end = 140,
run_start = 140,
run_end = 160,
punch_start = 180,
punch_end = 200,
}
})