1
0
Fork 0

Nerfed vexes and evokers

This commit is contained in:
the-real-herowl 2023-12-13 04:51:56 +01:00
parent b3da7a473d
commit a2c8d13f04
2 changed files with 11 additions and 2 deletions

View File

@ -37,6 +37,7 @@ mcl_mobs.register_mob("mobs_mc:vex", {
walk_velocity = 3.2,
run_velocity = 5.9,
attack_type = "dogfight",
attack_frequency = 2,
sounds = {
-- TODO: random
death = "mobs_mc_vex_death",
@ -63,10 +64,13 @@ mcl_mobs.register_mob("mobs_mc:vex", {
self.object:set_properties({textures=self.base_texture})
end
else
if self.base_texture[2] == "mobs_mc_vex_charging.png" then
self.base_texture[2] = "mobs_mc_vex.png"
end
if self.base_texture[1] ~= "default_tool_steelsword.png" then
self.base_texture[1] = "default_tool_steelsword.png"
self.object:set_properties({textures=self.base_texture})
end
self.object:set_properties({textures=self.base_texture})
end
-- Take constant damage if the vex' life clock ran out

View File

@ -42,6 +42,7 @@ mcl_mobs.register_mob("mobs_mc:evoker", {
run_velocity = 1.4,
group_attack = true,
attack_type = "dogfight",
attack_frequency = 15,
-- Summon vexes
custom_attack = function(self, to_attack)
if not spawned_vexes[self] then spawned_vexes[self] = {} end
@ -64,7 +65,6 @@ mcl_mobs.register_mob("mobs_mc:evoker", {
table.insert(spawned_vexes[self],ent)
end
end,
shoot_interval = 15,
passive = false,
drops = {
{name = "mcl_core:emerald",
@ -86,6 +86,11 @@ mcl_mobs.register_mob("mobs_mc:evoker", {
},
view_range = 16,
fear_height = 4,
on_spawn = function(self)
self.timer = 15
return true
end,
})
-- spawn eggs