Minecraft wiki entry for Pillager, associated text: When a player is in creative mode or applied with the invisibility effect, getting near a pillager still causes it to take notice and stare at the player. If a pillager notices a target while staring at the player, the pillager stops staring and attacks the target. If a player with the invisibility effect attacks a pillager, the pillager still retaliates.