Minecraft wiki entry for Defeating_a_bastion_remnant, associated text: If you're good at sniping, you may also be able to avoid aggravating nearby piglins as damaging a piglin will only aggravate nearby allies 16 block away from the area where the piglin took damage, not the player's location.