Minecraft wiki entry for Pillager, associated text: If pillagers are part of a patrol, they do not attack immediately. The patrol members' heads turn to follow the player's or of the villager-like mob who attracted their attention. If the player or villager-like mob attacks or approaches within 10 blocks of the patrol members, then this provokes them into loading their crossbows and attacking. This is intended behavior.[1]