forked from archfan7411/shadowrealm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mobs.lua
129 lines (127 loc) · 2.46 KB
/
mobs.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
-- Using TenPlus1's Mobs Redo
-- Shadow Realm Mobs
-- Asp
mobs:register_mob("shadowrealm:asp", {
physical = true,
collisionbox = {0.5, 1, 0.5, -0.5, -2, -0.5},
visual = "mesh",
mesh = "shadowrealm_asp.b3d",
textures = {"shadowrealm_asp.png"},
visual_size = {x=3,y=3,z=3},
type = "monster",
hp_min = 20,
hp_max = 40,
walk_velocity = 2,
run_velocity = 3,
stand_chance = 50,
walk_chance = 50,
jump = true,
jump_height = 2,
runaway = false,
pushable = true,
view_range = 10,
damage = 5,
knock_back = true,
fear_height = 10,
fall_damage = true,
water_damage = 1,
lava_damage = 5,
light_damage = 0,
suffocation = true,
floats = 0,
docile_by_day = false,
attack_chance = 100,
attack_monsters = false,
attack_animals = true,
attack_npcs = true,
attack_players = true,
attack_type = "dogfight",
animation = {
stand_start = 1,
stand_end = 10,
stand_speed = 24,
walk_start = 1,
walk_end = 10,
walk_speed = 24,
punch_start = 11,
punch_end = 31,
punch_speed = 24,
},
sounds = {
attack = "shadowrealm_hiss.ogg",
damage = "shadowrealm_hiss.ogg",
},
drops = {
{
name = "shadowrealm:asp_meat",
chance = 2,
min = 0, max = 2,
},
{
name = "shadowrealm:asp_fang",
chance = 1,
min = 1, max = 2,
},
},
max_speed = 2,
jump_height = 1,
view_range = 10,
})
-- Gargantuan
mobs:register_mob("shadowrealm:gargantuan", {
physical = true,
collisionbox = {0.5, 1, 0.5, -0.5, -2, -0.5},
visual = "mesh",
mesh = "shadowrealm_gargantuan.b3d",
textures = {"shadowrealm_gargantuan.png"},
visual_size = {x=6,y=6,z=6},
type = "monster",
hp_min = 200,
hp_max = 300,
walk_velocity = 6,
run_velocity = 8,
stand_chance = 50,
walk_chance = 50,
jump = true,
jump_height = 2,
runaway = false,
pushable = true,
view_range = 10,
damage = 8,
rotate = 270,
knock_back = true,
fear_height = 10,
fall_damage = true,
water_damage = 1,
lava_damage = 5,
light_damage = 0,
suffocation = true,
floats = 0,
docile_by_day = false,
attack_chance = 100,
attack_monsters = false,
attack_animals = true,
attack_npcs = true,
attack_players = true,
attack_type = "dogfight",
animation = {
stand_start = 1,
stand_end = 6,
stand_speed = 24,
walk_start = 1,
walk_end = 6,
walk_speed = 24,
punch_start = 7,
punch_end = 10,
punch_speed = 24,
},
sounds = {
attack = "shadowrealm_growl_01.ogg",
damage = "shadowrealm_growl_02.ogg",
},
drops = {},
max_speed = 10,
jump_height = 1,
view_range = 10,
on_die = realm.on_gargantuan_death
})