-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcorrupt_mind.lua
More file actions
67 lines (61 loc) · 1.68 KB
/
corrupt_mind.lua
File metadata and controls
67 lines (61 loc) · 1.68 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
mobs:register_mob("corruptionmt:corrupt_mind", {
type = "monster",
shoot_offset = 1,
passive = false,
attack_type = "dogshoot",
arrow = "corruptionmt:rotten_spit",
shoot_interval = 2.5,
dogshoot_switch = 1,
dogshoot_count_max = 4,
dogshoot_count2_max = 12,
friendly_fire = false,
pathfinding = true,
physical = false,
reach = 5,
damage = 5,
hp_min = 500,
hp_max = 500,
armor = 90,
collisionbox = {-2.000, -0.5000, -2.000, 1.000, 2.500, 1.000},
visual = "mesh",
mesh = "corruption_mt_corrupt_mind.obj",
textures = {{"corruption_mt_corrupt_mind.png"}},
blood_texture = "corruptionmt_blood.png",
visual_size = {x=35, y=35},
makes_footstep_sound = true,
-- sounds = {random = "mobs_oerkki"},
fly = true,
fly_in = ("air"),
walk_velocity = 4,
run_velocity = 7,
view_range = 64,
drops = {
{name = "corruptionmt:nervous_tissue", chance = 1, min = 12, max = 16}
},
lava_damage = 0,
})
mobs:register_arrow("corruptionmt:rotten_spit", {
visual = "sprite",
visual_size = {x = 1, y = 1},
textures = {"corruptionmt_rotten_spit.png"},
collisionbox = {-0.1, -0.1, -0.1, 0.1, 0.1, 0.1},
velocity = 10,
tail = 1,
tail_texture = "corruptionmt_rotten_spit.png",
tail_size = 10,
glow = 5,
expire = 0.1,
on_activate = function(self, staticdata, dtime_s)
-- make fireball indestructable
self.object:set_armor_groups({immortal = 1, fleshy = 100})
end,
hit_player = function(self, player)
player:punch(self.object, 1.0, {
full_punch_interval = 1.0,
damage_groups = {fleshy = 10}
}, nil)
end
})
if minetest.get_modpath("boss_s_hudbar") then
boss_s_hudbar.add_boss("corruptionmt:rotten_mind", "The Rotten Mind", 350, "boss_bar_purple")
end