Iron golems spawn from a structure you build yourself

An iron golem is a large, neutral mob in Minecraft that attacks hostile creatures and protects your base. You create one by placing iron blocks and a carved pumpkin in a specific pattern on the ground, then the golem assembles itself. The pattern is straightforward enough that you can build one in a few minutes once you gather the materials.

Iron golems do not despawn, meaning they stay in your world permanently once created. They wander around your base and attack zombies, skeletons, creepers, and other hostile mobs on sight. If you build multiple golems, they will not fight each other — they only attack hostile creatures and players who hit them first.

Key Takeaways

  • You need four iron blocks and one carved pumpkin to build an iron golem; the blocks must be placed in a T-shape on the ground.
  • The carved pumpkin goes on top as the final piece, and the golem forms when ready once you place it.
  • Iron golems attack hostile mobs automatically but will not attack you unless you hit them first.
  • You can build multiple golems in the same area, and they work together to defend your base.

Gather four iron blocks and one carved pumpkin

You need 36 iron ingots total to craft four iron blocks — that is nine ingots per block. Smelt iron ore in a furnace to get ingots, then arrange nine ingots in a crafting table in a 3×3 square to make one iron block. Repeat this four times.

For the carved pumpkin, find a pumpkin block in the world (they grow in patches in most biomes) and place it in your crafting table with shears to carve a face into it. If you do not have shears, craft them from two iron ingots arranged diagonally in a crafting table. A regular pumpkin will not work — it must be carved.

Gather these materials in your inventory before you start building. You do not need to carry them all at once, but having them nearby makes the process faster.

Place the iron blocks in a T-shape on flat ground

Find a flat area where you want the golem to stand. Place three iron blocks in a horizontal line on the ground. Then place one iron block directly on top of the center block, so you have a T-shape when viewed from above.

The pattern looks like this from above:

Iron Block
Iron BlockIron BlockIron Block

The bottom row is three blocks in a line. The top block sits on the center block of that row. Make sure all four blocks are placed before you add the pumpkin.

Place the carved pumpkin on top to complete the golem

Hold the carved pumpkin in your hand and place it on top of the single iron block that sits above the center of the T-shape. The moment the pumpkin lands, the iron golem forms and comes to life. It will be facing the direction you were facing when you placed the pumpkin.

The golem appears as a large iron figure with a square head and will when ready start walking around. It takes no damage from falling or drowning, so do not worry if it wanders into water or off a small cliff.

Position your golem near your base for defense

Iron golems patrol an area around where they spawn, so place them near the parts of your base you want to protect most — near your door, your farm, or your storage area. A golem will attack any hostile mob that comes within 64 blocks of where it was created.

If you want multiple golems, build them in different spots around your base. They do not interfere with each other and will all attack the same hostile mobs. Some players build golems in a line around their perimeter for maximum coverage.

Golems are slow to move but very strong. A single golem can handle several zombies or skeletons at once. If your golem takes damage, it will heal over time as long as no hostile mobs are nearby.

Repair or remove a golem if needed

If your golem takes heavy damage in combat, you can heal it by right-clicking it with an iron ingot. Each ingot restores some health. This is faster than waiting for natural healing.

If you want to remove a golem, you can break it down by attacking it repeatedly. It will drop iron ingots and poppies (flowers) when it dies. You can then use those ingots to build a new golem elsewhere, or keep them for other crafting.

Frequently Asked Questions

Can I build an iron golem indoors?

Yes, but golems are large and move around, so they need space. A golem is three blocks tall and two blocks wide, so make sure your indoor area has at least that much clearance. Golems can get stuck in tight spaces and may not patrol effectively if confined.

What happens if I hit my iron golem by accident?

The golem will not attack you for one accidental hit. If you hit it multiple times, it will treat you as hostile and attack back. You can repair the damage by right-clicking it with iron ingots to restore its health and reset its attitude toward you.

Do iron golems attack the Ender Dragon or the Wither?

Iron golems will not attack the Ender Dragon or the Wither boss. They only attack standard hostile mobs like zombies, skeletons, and creepers. For boss fights, you need to handle the damage yourself.

Can I move an iron golem to a different location?

You can break down the golem by attacking it, which drops the materials, and then rebuild it in a new location. Golems do not follow you or respond to commands, so moving them requires destroying and rebuilding.

How many iron golems should I build?

One golem can defend a small base effectively. For larger bases or farms, two to four golems spread around the perimeter provide better coverage. More golems means more iron ingots spent, so balance protection with the resources you have available.