Minecraft wiki entry for Iron_Golem, associated text: An iron golem built by a player never attacks players, even when hit or when the player attacks another villager or another golem in front of the player-built golem. A player-built golem attacks the player's tamed wolf if the wolf attacks the golem.