nssm/mobs/crocodile.lua

55 lines
1.1 KiB
Lua
Raw Normal View History

2018-08-08 12:56:14 +03:00
mobs:register_mob("nssm:crocodile", {
type = "monster",
hp_max = 30,
hp_min = 15,
collisionbox = {-0.45, -0.30, -0.45, 0.45, 0.3, 0.45},
visual = "mesh",
mesh = "crocodile.x",
textures = {
{"croco.png"}
},
2018-08-09 13:57:31 +03:00
sounds = {
2018-08-08 12:56:14 +03:00
random = "crocod",
},
visual_size = {x = 4, y = 4},
2018-08-08 12:56:14 +03:00
makes_footstep_sound = true,
view_range = 15,
walk_velocity = 1,
run_velocity = 1,
damage = 5,
floats = 1,
jump = true,
drops = {
{name = "nssm:life_energy", chance = 1, min = 1, max = 2},
{name = "nssm:crocodile_tail", chance = 2, min = 1, max = 1},
2022-09-28 12:41:38 +03:00
{name = "nssm:crocodile_skin", chance = 3, min = 1, max = 1}
2018-08-08 12:56:14 +03:00
},
armor = 60,
drawtype = "front",
reach = 2,
water_damage = 0,
lava_damage = 10,
2021-04-05 11:49:24 +03:00
fire_damage = 10,
2018-08-08 12:56:14 +03:00
light_damage = 0,
group_attack = true,
attack_animals = true,
knock_back = 3,
blood_texture = "nssm_blood.png",
stepheight = 1.1,
2018-08-08 12:56:14 +03:00
attack_type = "dogfight",
animation = {
speed_normal = 25,
speed_run = 25,
stand_start = 1,
stand_end = 80,
walk_start = 230,
walk_end = 270,
run_start = 230,
run_end = 270,
punch_start = 205,
punch_end = 220,
--swim_start = 100,
--swim_end = 140,
}
})