Iron Golem

An iron golem is a buildable neutral mob that attacks monsters with its arms, knocking them into the air. Iron golems created by villagers or spawned in villages patrol their village, and may attack players that attack it or have a low popularity or reputation with their village.
== Spawning ==
=== Villages ===
;Java Edition
, villagers can summon iron golems, either when they are gossiping or panicking and the following criteria are met:
# The villager has slept in the last 20 minutes
# The villager has not detected an iron golem in the last 30 seconds
#* An iron golem is detected when it is within 16 blocks of the villager (±16X ±16Z ±16Y axis)
#* The villager scans for golems once every 10 seconds
# The villager has not been near a summoning in the last 30 seconds
#* A villager is near a summoning when it is within 10 blocks of a villager (±10X ±10Z ±10Y axis) who successfully summons an iron golem
# There are enough participants within 10 blocks of the villager, including the villager itself; participating villagers need to fulfil the previous 3 conditions
#* When gossiping, at least 5 participants are needed
#* When panicking, at least 3 are needed
# A valid spawn point for the golem is found
Iron golems still spawn even when the game rule is set to .
To find a valid spawn point, up to 10 attempts are made to spawn a golem within a 17×13×17 box centered on the villager (villager block position ±8 blocks along x/z axes and ±6 blocks along y axis). A random y column is picked and then the topmost block in that column is selected that is air or liquid and has a "solid-blocking" block underneath. The target location then goes through the following checks: 
* the block underneath must have a solid top surface (which is not the same as "solid-blocking").
* the target block must not be a full block, nor be redstone-powered, nor be rails.
* (already the block above the target block is known to be air or liquid)
* the block two blocks up from the target block must not be a full block, nor be redstone-powered, nor be rails, and additionally must not be water.
This means the iron golem can spawn inside 1-deep water or inside blocks like slabs, fences, and carpets, if other checks pass. Adjacent blocks are irrelevant, so golems can spawn partially-inside adjacent solid blocks. However, the spawning iron golem still must not collide with any existing entities.
;Bedrock Edition
, an iron golem can spawn naturally when a village first generates in the world. Iron golems also spawn in villages having at least 20 beds and 10 villagers. The golem attempts to spawn in a 17×13×17 volume, ±8 blocks horizontal and ±6 blocks vertical from the village's center block, which can be (but isn't necessarily) a bed pillow or a bell. First, X and Z coordinates are randomly chosen within the spawn volume, then the highest block at those coordinates within the spawn volume is found. If it is a block with a full top surface—which includes upside-down stairs and top slabs (does not include glass)—and there is no obstruction above it by a block above the spawn volume, then the golem is spawned there. Otherwise the spawn attempt is canceled.
For a village to spawn iron golems, 75% of the villagers in the village must have worked (i.e. stood beside or atop their workstation) in the past day, 100% of the villagers must be linked to a bed, and the village center must be within a player's simulation distance volume.
The maximum distance the player can be from the village for iron golems to spawn can be calculated with the following formulas. These are only approximate because they yield a volume with a rectangular cross section, but the simulation distance volume is roughly rounded and omits the corner chunks.
\mathsf{Horizontal} = 8 \times \mathsf{SimulationDistance} + 32
\mathsf{Vertical} = 8 \times \mathsf{SimulationDistance} + 12
If the village's original iron golem is killed, a new one cannot spawn unless all of the conditions are met. Therefore, a small village does not regenerate an iron golem unless the village is expanded.
If the spawn conditions are met, then the chance of attempting a spawn is per game tick, which averages to one spawn attempt every 35 seconds. Iron golems can spawn provided the 2×3×2 space above the spawn point (that is, horizontally centered on the northwest corner of the block it spawns on) contains only non-full blocks, and the block it spawns on is solid.
=== Creation ===
Iron golems are created by placing four iron blocks in a T shape (as shown in the image), and then placing a carved pumpkin or jack o'lantern on top of the center upper block. The pumpkin may be placed by the player, a dispenser or an enderman, but it must be placed last. It needs at least one block of space around the bottom iron block to be able to spawn and cannot spawn in a confined area; even grass can prevent an iron golem from spawning. Alternatively, the blocks can be placed in any order with an uncarved pumpkin; the player can shear the pumpkin to spawn the golem. When successfully transformed, it is naturally passive toward all players under all circumstances. It can, however, attack the player’s tamed wolves, if punched accidentally, but it never directly attacks the player. The constructed golem attacks hostile mobs like a naturally spawned iron golem.
The block arrangement can be placed upright, lying down, or upside-down. The four empty spaces in the diagram (above and below each of the arms) must be air blocks. Any non-air block (including blocks such as snow layers, grass, and water) present in any of the empty spaces prevent the golem from spawning. 
In Java Edition, the player can place a pumpkin on the four blocks of iron, then shear the pumpkin. The iron golem still spawns like normal.
Like other constructed mobs, iron golems always spawn facing south. Their large size may cause them to take suffocation damage from nearby solid blocks at the level of their head.
Dropping a pumpkin on the correct arrangement of iron blocks does not spawn a iron golem.
=== Pillager outposts ===
Iron golems can also be found surrounding pillager outposts, confined inside dark oak cages. When freed, they can help the player by attacking any nearby pillagers. Pillagers do not attack iron golems in cages, although the iron golem can attack any pillagers that are one block near the cage, because iron golems can attack through a one-block wall.
== Drops ==
Iron golems drop when they die:
* 3–5 s
* 0–2 
Killing an iron golem with a weapon enchanted by Looting has no effect on the number of iron ingots or poppies dropped.
Trading prices are unaffected by the killing of iron golems; however, village popularity decreases by 10, affecting village iron golem behavior if the popularity ranges below -15.
== Behavior ==
Iron golems wander around a village in a patrol-like fashion, staying close to buildings and other structures. Like villagers, iron golems do not wander away from a village, regardless of how they were spawned, but sometimes stand at the border of the village. 
An iron golem sometimes faces a villager as if they are conversing. Iron golems can spawn poppies in their hands and offer them to villagers, symbolizing the friendly relationship between villagers and iron golems. Baby villagers accept the poppy offered by the iron golem.Baby villagers have not accepted poppies in Java Edition since the Village & Pillage update due to a bug . Attacking an iron golem that is not player-built while the iron golem is holding out a poppy causes it to take back the poppy and attack the player instead. If the iron golem sees a target while it is offering the poppy, it runs toward the target and kills the target instead.
, iron golems completely ignore villagers, pushing them aside while walking if a villager is in the iron golem's path, but they still offer poppies if possible.
If not within a village, iron golems slowly wander around attacking hostile mobs (skeletons, zombies, etc.), usually making their way to a nearby village. If in that village, the iron golem doesn't leave.
Iron golems can walk up a full block height without jumping and walk over a 1 block wide hole without falling in. They avoid water, lava, fire, and cactus. Iron golems are immune to both drowning and fall damage. When in water, they sink, but can still move freely. 
When an iron golem's health reduces to 75%, cracks appear on its surface. An iron golem can be healed when the player right-clicks the chest of the iron golem with an iron ingot. This action consumes the ingot.
As with all utility mobs, iron golems can be leashed. The leashed iron golem does not try to break from the lead when it sees a hostile mob. Instead, it looks at the mob while moving. An iron golem that is leashed in mid-air moves its arms and legs while moving. If an iron golem is leashed to a fence, it attacks the hostile mob but does not follow the mob if the hostile mob goes out the attack range, as the iron golem cannot break free from fence leads.
In Java Edition, when iron golems move when provoked, they look like if they're taking strides toward the mob. Iron golems that aren't provoked move slower in Java Edition. Iron golems move faster , as it walks like its normal walking speed, either when provoked or not provoked. 
Iron golems cannot pick up weapons or armor, but the player can use NBT commands in Java Edition to give the iron golem weapons or armor, although the armor or weapons are not visible. 
=== Attacking ===
When attacking, an iron golem moves quickly toward its target and swings its arms up violently to attack, flinging the target into the air, and dealing to damage in Normal difficulty. Iron golems have a large attack range, allowing them to attack through a solid 1 block thick wall, even without a line of sight to the target. When an iron golem attacks, it also deals a long knockback range. Iron golems cannot attack targets that are three blocks high above the same ground level as the golem.
It is possible for multiple golems to hit the same target simultaneously, flinging the victim to a height proportional to the number of golems that attacked. The mob/player flung can die from fall damage.
If an iron golem attacks a group of zombies, for example, it targets one zombie to attack until that zombie dies before it attacks a different zombie, even while other zombies are attacking at the same time. The iron golem attacks hostile mobs that attack it in order.
If the mob is flung out of sight, the iron golem attacks the next mob that attacks it. Sometimes, the iron golem might attack the nearest hostile mob if they are in groups.
When an iron golem kills any mob, the player can obtain items dropped by the mob, but no experience orbs. Iron golems that kill a raid mob also causes the mob to drop its raid loot, even when the mob wasn't attacked by the player before it is killed.
Iron golems never attack each other, as iron golems cannot "accidentally" hit another iron golem when attacking.
==== Provocation by players ====
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.
A naturally-spawned iron golem becomes hostile toward a player who attacks a villager near an iron golem. Also, if a player has -15 popularity or less in a village, or has -100 or lower reputation with any nearby villager, naturally-spawned iron golems become hostile to that player until the player's popularity climbs above -15 and reputation with all nearby villagers goes above -100.
A village iron golem retaliates when attacked by a player (even throwing an ender pearl at an iron golem provokes it). If a village has more than one naturally-spawned iron golems and a player attacks one in front of the other(s), all of iron golems in that type may become hostile to the player.
Iron golems are not provoked by players who attack wandering traders.
If a golem spawns from its spawn egg, it will behave in the same way as village golems.
Throwing a positive splash potion or a positive lingering potion does not anger iron golems.
==== Provocation by other mobs ====
Although they are guardians of villages, iron golems are not actually provoked when a mob attacks a nearby villager (in contrast to a player attacking a villager). With the exception of creepers, ghasts, and goats (although they still can attack ghasts if close), they are provoked when attacked by any mobs, and by the presence of nearby monsters. Even if a witch accidentally throws a positive splash potion at an iron golem during a raid, this does not stop the iron golem from attacking the witch. Iron golems are ineffective against flying hostile mobs that don't venture into the iron golem's reach, such as phantoms.
The list below contains mobs (including players) that can have hostile interactions with iron golems. The iron golem also attacks neutral mobs or hostile mobs that attack the player such as piglins or zombified piglins.
Entity 	Iron golem attacks the mob?	Attacks the iron golem?	Notes
 	 	 	
Chicken Jockey 	 	 	Iron golems attack the rider, not the chicken. The rider (not the chicken) attacks the golem. When a zombified piglin rider is attacked, the group of zombified piglins retaliate.
 	 	 	A nearby creeper explosion can still damage the golem.
 	 	 	
When in near vicinity, iron golems try to attack the ender dragon, although they are rarely able to.	 	 	
 	 	 	Unlike when a player looks at an enderman, an enderman is not provoked by an iron golem looking at it.
 	 	 	
 	 	 	Iron golems do not seek or approach any ghast outside its attack range, but can attack ghasts that happen to approach within reach.
 	 	 	Giants cannot move or attack due to lacking AI.
 	 	 	
 	 	 	Guardians and elder guardians can still damage iron golems with their spikes defense.
 	 	 	A group of hoglins does not retaliate if babies are attacked.
Illagers: 	 	 	Iron golems also attack unarmed pillagers, despite them being passive in Java Edition.
 	 	 	Iron golems never attack each other, and cannot hit each other by accident.
 	 	 	An iron golem attacks a llama that accidentally hits the golem with its spit. After being hit by the golem, the llama deliberately attacks the golem.
 	 	 	
 	 	 	
 	 	 	Iron golems also attack baby piglins, despite them being passive. Piglins also attack as a group if one piglin or piglin brute is attacked by an iron golem.
 	 	 	Piglin brutes also attack as a group if one piglin or piglin brute is attacked by an iron golem.
 	 	 	A naturally-spawned iron golem or commands-spawned iron golem attacks the player if the player attacks the golem or a villager while playing in the Adventure and Survival mode.A naturally-spawned iron golem can also attack any nearby player who has -15 or lower popularity, or -100 or lower reputation with any nearby villager in a village.
 	 	 	Iron golems attack pufferfish if damaged by the pufferfish's defense.
 	 	 	
 	 	 	
 	 	 	Iron golems attack skeletons riding skeleton horses (along with the other way around). However, they do not attack the skeleton horse itself.
 	 	 	Slimes chase iron golems, but cannot attack.
 	 	 	The iron golem retaliates when a snow golem accidentally hits it with a snowball.
 	 	 	Spiders are hostile toward iron golems when light level is below 12. Otherwise, they only retaliate if attacked.
 	 	 	A vex attacks an iron golem rarely when the vex is near to golem. It attacks immediately when an evoker summons three vexes.
 	 	 	An iron golem retaliates against a villager who accidentally damages it by setting off a firework.
 	 	 	Iron golems always attack wardens that are in range.
 	 	 	Attack iron golems if patrolling in an illager patrol or iron golem attacking one witch. The witch throws splash potions of Poison or Harming when an iron golem attacks the witch.
 	 	 	Iron golems always attack withers, even when the attacks do no damage while the wither is generating health after being summoned.
(tamed) 	 	 	Tamed wolves attack the iron golem if it attacks its owner, or the owner attacks the golem. When attacked by the wolf, the golem retaliates. A player-built iron golem attacks the player's wolves if attacked by the wolf. Iron golems and untamed wolves never attack one another.
 	 	 	Unlike hoglins, a group does not attack the golem if the golem attacks one zoglin.
Zombie variants: 	 	 	Swimming drowned do not attack any mob that is not touching water during daytime.
 	 	 	
All other mobs 	 	 	
A naturally-spawned iron golem knows where raiding illager locations are from behind solid walls and from underground and attempts to move toward them. An iron golem created by the player or summoned by a command cannot detect raiders through obstructions. Iron golems also looks down or looks up if the hostile mob is above or below the iron golem.
=== Being attacked ===
Zombies (and variants), zoglins, skeletons (and variants), silverfish, spiders, cave spiders, magma cubes, withers, illagers, and witches naturally attack iron golems on sight and may cause major damage, especially if the mobs attack in groups.
Iron golems have 100% knockback resistance from normal attacks. They can still be knocked back by the Knockback enchantment on swords and the Punch enchantment on bows.
=== Cracking ===
Iron golems have different stages of being cracked to show their health. When their health is above , they do not have any cracks. When their health is between and , some cracks appear. When their health is between and , they appear more cracked. When their health is lower than , many cracks are visible.
File:Iron Golem.png|No deterioration More than 75% of health remaining
File:Iron Golem Cracked Low.png|Low deterioration More than 50% but no more than 75% of health remaining
File:Iron Golem Cracked Medium.png|Average deterioration More than 25% but no more than 50% of health remaining
File:Iron Golem Cracked High.png|Strong deterioration No more than 25% of health remaining
=== Healing ===
 an iron ingot on an iron golem restores its health by .
== Preferred path ==
Like villagers, iron golems use a strategy of pathfinding that prioritizes walking on certain "low-cost" blocks.
Preferred Path Blocks	Block Cost
 	0
 	1
 	50
Other 	1.5
Jump cost 	5
Iron golems attempt to walk on a one-block-wide path, despite them being two blocks wide. An iron golem favors a wider path if it sees one.
=== Climbing ===
Iron golems can climb ladders or vines if the ladder or vine is in its path, or if pushed onto a ladder or vine.
== Sounds ==
:
Iron golems use the Friendly Creatures sound category for entity-dependent sound events.
:
== Data values ==
=== ID ===
:
:
=== Entity data ===
Iron golems have entity data associated with them that contain various properties.
:
:
: See Bedrock Edition level format/Entity format.
== Achievements ==
== Advancements ==
== History ==
== Issues ==
== Trivia ==
* The iron golem's holding out flowers to villagers is a reference to the ancient robots in Hayao Miyazaki's animated film Laputa: Castle in the Sky. When baby villagers notice the poppy in its hand, they slowly approach, and take the flower eventually. Iron golems do not actually pick up poppies; they spawn them in their hands. 
* Iron golems do not get into boats or minecarts on their own, although , pushing a minecart on rails into a golem forces it into the minecart.
* It is possible for an enderman to cause an iron golem to spawn by placing a pumpkin in the correct position on an arrangement of iron blocks previously placed by the player.
* The iron golem is a purchasable avatar item on the Xbox 360 Marketplace.
* It is impossible to spawn an iron golem holding a poppy using a command (such as summon or data). Its NBT matches with a naturally generated golem (HandItems:[{id:"minecraft:poppy",Count:1b},{}]), but does not visually update.
== Gallery ==
=== Screenshots ===
Iron golem.png|Creation of an iron golem.
IronGolemRose.png|An iron golem offers a villager a poppy.
IronGolemHoldingRose.png|An iron golem offers a poppy to several villager children.
IronGolemKillingSpider.png|An iron golem attacking a spider by throwing it into the air.
Iron golem (2).png|An iron golem attacking a witch.
Village Golem Attacking.png|An iron golem attacking the player.
Iron golems doing crazy.png|Iron golems acting strangely in a player-created village, by attempting to cross in a two-block-high gap.
Iron Golem Bumping Heads.png|Two iron golems bump their heads.
=== Development images ===
1.2 Dev Iron Golem.png|First image of iron golem.
=== In other media ===
File:Horse Update image.png|An Iron Golem in promotional artwork for the Horse Update.
File:MineCon 2015 artwork.jpg|An Iron Golem in promotional artwork for Minecon 2015.
File:Village and Pillage banner.png|Iron Golems in promotional artwork for the Village and Pillage Update.
File:Iron Golem Artwork.png|Official Iron Golem artwork.
File:Iron Golem Art.png|Another official Iron Golem artwork.
File:SSBU spirit Villager & Iron Golem.png|Villager and Iron Golem Spirit from Super Smash Bros. Ultimate.
File:Iron Golem (Trails & Tales Event).png|The Secret Iron Golem, featured in the Trails & Tales Event.
File:LEGO Iron Golem.png|Lego Minecraft Iron Golem.
File:Iron Golem JINX.jpg|Official T-shirt artwork made by JINX.
File:Minecraft Heroes Crest JINX.jpg|Official T-shirt artwork "Minecraft Heroes Crest" which depicts an iron golem and an ender dragon. Made by JINX.
== References ==
== External links ==
*Meet the Iron Golem – Minecraft.net on February 27, 2017
Category:Neutral mobs
cs:Železný golem
de:Eisengolem
es:Gólem de hierro
fr:Golem de fer
hu:Vasgólem
it:Golem di ferro
ja:アイアンゴーレム
ko:철 골렘
nl:IJzergolem
pl:Żelazny golem
pt:Golem de ferro
ru:Железный голем
uk:Залізний ґолем
zh:铁傀儡