forked from NPXcoot/nssm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcrab.lua
55 lines (55 loc) · 994 Bytes
/
crab.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
nssm:register_mob("nssm:crab", {
type = "monster",
hp_max = 17,
hp_min = 15,
collisionbox = {-0.5, 0, -0.5, 0.5, 0.55, 0.5},
visual = "mesh",
mesh = "crab.x",
textures = {{"crab1.png"},{"crab2.png"}},
sounds = {
random = "crab",
},
visual_size = {x=3, y=3},
makes_footstep_sound = true,
view_range = 7,
rotate = 270,
fear_height = 4,
walk_velocity = 1,
run_velocity = 2,
damage = 3,
floats = 0,
jump = true,
drops = {
{name = "nssm:life_energy",
chance = 1,
min = 1,
max = 2,},
{name = "nssm:surimi",
chance = 1,
min = 1,
max = 2,},
{name = "nssm:crab_chela",
chance = 4,
min = 1,
max = 2,},
},
armor = 60,
drawtype = "front",
water_damage = 0,
lava_damage = 10,
light_damage = 0,
on_rightclick = nil,
attack_type = "dogfight",
animation = {
speed_normal = 25,
speed_run = 35,
stand_start = 10,
stand_end = 80,
walk_start = 120,
walk_end = 140,
run_start = 120,
run_end = 140,
punch_start = 90,
punch_end = 110,
}
})