Minecraft wiki entry for Village, associated text: Iron golems constructed by the player are always passive toward the player, even if the popularity score of the player is -15 or less or when the player attacks the iron golem or attacks a villager in front of the golem. Iron golems spawned by the player (using a /summon command) or an iron golem that was naturally spawned in a village are neutral toward the player (they attack the player only if the player attacks them), or when the player's popularity of -15 or less.