nssm/mobs/stone_eater.lua

63 lines
1.4 KiB
Lua
Raw Normal View History

2018-08-08 12:56:14 +03:00
mobs:register_mob("nssm:stone_eater", {
type = "monster",
hp_max = 27,
hp_min = 19,
collisionbox = {-0.3, -0.05, -0.3, 0.3, 0.65, 0.3},
visual = "mesh",
mesh = "stone_eater.x",
textures = {
{"stone_eater.png"}
},
visual_size = {x = 10, y = 10},
2018-08-08 12:56:14 +03:00
makes_footstep_sound = false,
view_range = 16,
rotate = 270,
fear_height = 4,
jump = false,
2022-09-28 12:41:38 +03:00
jump_height = 0,
2018-08-08 12:56:14 +03:00
walk_velocity = 1,
run_velocity = 1.5,
damage = 5,
reach = 1.5,
drops = {
{name = "default:stone", chance = 2, min = 1, max = 3},
{name = "nssm:life_energy", chance = 1, min = 2, max = 3},
2022-09-28 12:41:38 +03:00
{name = "nssm:stoneater_mandible", chance = 2, min = 1, max = 4}
2018-08-08 12:56:14 +03:00
},
armor = 40,
drawtype = "front",
water_damage = 1,
lava_damage = 1,
2021-04-05 11:49:24 +03:00
fire_damage = 1,
group_attack = true,
attack_animals = true,
knock_back = 0,
blood_texture = "stone_blood.png",
immune_to={
2022-09-28 12:41:38 +03:00
{"default:sword_stone", -2},
{"default:stone", -2},
{"default:cobble", -2},
{"default:axe_stone", -2},
{"default:shovel_stone", -2},
{"default:pick_stone", -2}
},
2018-08-08 12:56:14 +03:00
light_damage = 0,
attack_type = "dogfight",
animation = {
speed_normal = 20,
speed_run = 20,
stand_start = 1,
stand_end = 60,
walk_start = 70,
walk_end = 110,
run_start = 130,
run_end = 150,
punch_start = 160,
2022-09-28 12:41:38 +03:00
punch_end = 185
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, "stone", self.run_velocity, {x = 0, y = 1, z = 0})
2022-09-28 12:41:38 +03:00
end
2018-08-08 12:56:14 +03:00
})