Fix shulker bullets ignoring armor

This commit is contained in:
cora 2023-10-26 21:35:13 +02:00 committed by the-real-herowl
parent 55fe71d73b
commit cf51c60527
1 changed files with 2 additions and 17 deletions

View File

@ -159,25 +159,10 @@ mcl_mobs.register_arrow("mobs_mc:shulkerbullet", {
textures = {"mobs_mc_shulkerbullet.png"},
velocity = 6,
homing = true,
hit_player = function(self, player)
player:punch(self.object, 1.0, {
full_punch_interval = 1.0,
damage_groups = {fleshy = 4},
}, nil)
end,
hit_mob = function(self, mob)
mob:punch(self.object, 1.0, {
full_punch_interval = 1.0,
damage_groups = {fleshy = 4},
}, nil)
end,
hit_node = function(self, pos, node)
end
hit_player = mcl_mobs.get_arrow_damage_func(4),
hit_mob = mcl_mobs.get_arrow_damage_func(4),
})
mcl_mobs.register_egg("mobs_mc:shulker", S("Shulker"), "#946694", "#4d3852", 0)
mcl_mobs:non_spawn_specific("mobs_mc:shulker","overworld",0,minetest.LIGHT_MAX+1)
--[[