-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmobs.lua
More file actions
87 lines (76 loc) · 1.86 KB
/
mobs.lua
File metadata and controls
87 lines (76 loc) · 1.86 KB
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
-- Living Armor
mobs:register_mob("crimsonmt:crimson_flyer", {
type = "monster",
passive = false,
attack_type = "dogfight",
pathfinding = true,
reach = 2,
damage = 5,
hp_min = 30,
hp_max = 32,
armor = 90,
collisionbox = {-0.3, -0.01, -0.3, 0.3, 1.94, 0.3},
visual = "mesh",
mesh = "corruptor.obj",
textures = {{"crimson_flyer_texture.png"}},
visual_size = {x=9, y=9},
makes_footstep_sound = true,
-- sounds = {random = "mobs_oerkki"},
fly = true,
fly_in = ("air"),
walk_velocity = 4,
run_velocity = 5,
view_range = 28,
jump = false,
drops = {
{name = "crimsonmt:crimson_bones", chance = 1, min = 0, max = 1}
},
lava_damage = 2,
})
-- where to spawn
mobs:spawn({
name = "crimsonmt:crimson_flyer",
nodes = {"crimsonmt:dirt_with_crimgrass", "crimsonmt:crimstone"},
active_object_count = 2,
chance = 6000
})
-- spawn egg
mobs:register_egg("crimsonmt:crimson_flyer", ("Crimson Flyer"), "corruptionmt_crimstone.png", 1)
mobs:register_mob("crimsonmt:bloodslime", {
type = "monster",
hp_min = 20,
hp_max = 30,
collisionbox = {-0.3, -0.01, -0.3, 0.3, 1.94, 0.3},
stepheight = 0.5,
visual = "mesh",
mesh = "slime.obj",
textures = {{"bloodslime_texture.png"}},
visual_size = {x = 12, y = 12},
makes_footstep_sound = false,
attack_type = "dogfight",
attack_animals = true,
damage = 6,
reach = 2,
passive = false,
walk_velocity = 1,
run_velocity = 4,
walk_chance = 0,
jump_chance = 30,
jump_height = 7,
armor = 100,
view_range = 15,
drops = {
{name = "terralibmt:gel_clump", chance = 1, min = 2, max = 3},
},
water_damage = 0,
lava_damage = 2,
light_damage = 0
})
mobs:spawn({
name = "crimsonmt:bloodslime",
nodes = {"crimsonmt:dirt_with_crimgrass", "crimsonmt:crimstone"},
active_object_count = 1,
chance = 6000
})
-- spawn egg
mobs:register_egg("crimsonmt:bloodslime", ("Bloodslime"), "bloodslime_texture.png", 1)