Illager Guards

Illager Guards (In Java Edition) or Illager-in-disguise (in Pocket Edition and Xbox) are a type of illager that are sent by pillager outposts to spy on villages. They are distinguishable by wearing hats and detective-looking clothing. They are often in groups of two and walk around the village and try to “act like” a normal villager. When the player tries to interact with them they run away hoping to not get caught. If a Iron Golem is nearby they will ring the village bell and warn the villagers that illagers have been spying on them. Illager guards can be caught by iron golems but have a 1/4 chance of being killed as they are very fast.

Behaviour
Illager Guards, though passive, are really just wolves-dressed-as-sheep. They do not attack and all they do is walk around the village and observe the villagers and their houses. Illager Guards are afraid of iron golems and players and run away if they are caught. If a iron golem sees them the villagers will know and begin a Village Gossip, a special event where villagers spread rumours or assumptions that they saw. If a Illager Guard gets caught very quickly, a raid would most likely not happen very soon and they would try to start their observation again but if a Illager Guard gets caught after a long time, they’ve already observed much about the village and there’s a 50/50 chance a raid will begin within 7 Minecraft days. If Illager Guards never get caught, a raid can happen within 3 Minecraft days (50% chance).