Minecraft wiki entry for Guardian, associated text: The guardian's eye follows and stares at any nearby players, and always looks directly at its target. In Java Edition, the eye does not follow unarmored players under the effects of a potion of Invisibility and the guardians cannot attack them. A player can wear one piece of armor while under the effects of Invisibility and not be attacked.