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

View file

@ -159,25 +159,10 @@ mcl_mobs.register_arrow("mobs_mc:shulkerbullet", {
textures = {"mobs_mc_shulkerbullet.png"}, textures = {"mobs_mc_shulkerbullet.png"},
velocity = 6, velocity = 6,
homing = true, homing = true,
hit_player = function(self, player) hit_player = mcl_mobs.get_arrow_damage_func(4),
player:punch(self.object, 1.0, { hit_mob = mcl_mobs.get_arrow_damage_func(4),
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
}) })
mcl_mobs.register_egg("mobs_mc:shulker", S("Shulker"), "#946694", "#4d3852", 0) 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) mcl_mobs:non_spawn_specific("mobs_mc:shulker","overworld",0,minetest.LIGHT_MAX+1)
--[[ --[[