2018-08-08 12:56:14 +03:00
|
|
|
mobs:register_mob("nssm:lava_titan", {
|
|
|
|
type = "monster",
|
|
|
|
hp_max = 180,
|
|
|
|
hp_min = 180,
|
|
|
|
collisionbox = {-0.45, -0.05, -0.45, 0.45, 1.8, 0.45},
|
|
|
|
visual = "mesh",
|
|
|
|
mesh = "lava_titan.x",
|
2020-07-26 21:42:13 +03:00
|
|
|
textures = {
|
|
|
|
{"lava_titan.png"}
|
|
|
|
},
|
|
|
|
visual_size = {x = 2.7, y = 2.7},
|
2018-08-08 12:56:14 +03:00
|
|
|
makes_footstep_sound = true,
|
|
|
|
view_range = 20,
|
|
|
|
fear_height = 4,
|
|
|
|
lifetimer = 500,
|
|
|
|
walk_velocity = 0.5,
|
|
|
|
run_velocity = 1.3,
|
|
|
|
floats = 1,
|
|
|
|
sounds = {
|
2022-09-28 12:41:38 +03:00
|
|
|
random = "lava_titan"
|
2018-08-08 12:56:14 +03:00
|
|
|
},
|
|
|
|
damage = 8,
|
|
|
|
jump = false,
|
2020-07-26 21:42:13 +03:00
|
|
|
jump_height = 0,
|
2018-08-08 12:56:14 +03:00
|
|
|
drops = {
|
2020-07-26 21:42:13 +03:00
|
|
|
{name = "nssm:life_energy", chance = 1, min = 7, max = 9},
|
|
|
|
{name = "nssm:lava_titan_eye", chance = 1, min = 1, max = 1},
|
2022-09-28 12:41:38 +03:00
|
|
|
{name = "bucket:bucket_lava", chance = 2, min = 1, max = 3}
|
2018-08-08 12:56:14 +03:00
|
|
|
},
|
|
|
|
armor = 20,
|
|
|
|
drawtype = "front",
|
|
|
|
water_damage = 25,
|
2020-07-26 21:42:13 +03:00
|
|
|
rotate = 270,
|
2018-08-08 12:56:14 +03:00
|
|
|
light_damage = 0,
|
|
|
|
lava_damage = 0,
|
2021-04-05 11:49:24 +03:00
|
|
|
fire_damage = 0,
|
2018-08-08 12:56:14 +03:00
|
|
|
floats = 0,
|
2020-07-26 21:42:13 +03:00
|
|
|
blood_texture = "stone_blood.png",
|
|
|
|
blood_amount = 50,
|
|
|
|
knock_back = 0,
|
2018-08-08 12:56:14 +03:00
|
|
|
attack_type = "dogshoot",
|
|
|
|
dogshoot_switch = true,
|
2018-08-09 13:57:31 +03:00
|
|
|
arrow = "nssm:lava_arrow",
|
|
|
|
shoot_interval = 2,
|
|
|
|
shoot_offset = 0,
|
2018-08-08 12:56:14 +03:00
|
|
|
animation = {
|
|
|
|
speed_normal = 25,
|
|
|
|
speed_run = 45,
|
|
|
|
stand_start = 120,
|
|
|
|
stand_end = 300,
|
|
|
|
walk_start = 10,
|
|
|
|
walk_end = 110,
|
|
|
|
run_start = 10,
|
|
|
|
run_end = 110,
|
|
|
|
punch_start = 301,
|
|
|
|
punch_end = 340,
|
2022-09-28 12:41:38 +03:00
|
|
|
shoot_start = 340,
|
|
|
|
shoot_end = 400
|
2018-08-08 12:56:14 +03:00
|
|
|
},
|
2022-09-28 12:41:38 +03:00
|
|
|
|
2018-08-08 12:56:14 +03:00
|
|
|
do_custom = function (self)
|
2023-06-13 14:50:58 +03:00
|
|
|
nssm:digging_attack(self, nil, self.run_velocity, {x = 0, y = 4, z = 0})
|
2022-09-28 21:01:53 +03:00
|
|
|
end
|
2018-08-08 12:56:14 +03:00
|
|
|
})
|