Skip to content
/craftcmd

Summon an Iron Golem

Spawn an iron golem to protect an area

✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026

Spawns an iron golem that is passive toward players but aggressive toward hostile mobs. It will patrol and attack zombies, creepers, and other hostiles. Iron golems spawned this way are not claimed to villages, so they stay where summoned. Useful for protecting builds or farms.

/summon iron_golem ~ ~ ~
24 characters

How to use

  1. Open chat (T on Java, / on Bedrock) and paste the command.
  2. Press Enter — the iron golem spawns at your position.
  3. Do not attack it — iron golems turn hostile if you hit them first.
  4. It will defend the area from hostile mobs automatically.

Related commands

Strike lightning at your location

/summon lightning_bolt ~ ~ ~
Summon Zombie Wearing Armor
Summon Zombie Wearing Armor Awaiting in-game verification
Java

Spawn a zombie equipped with armor

/summon zombie ~ ~ ~ {equipment:{head:{id:"diamond_helmet",count:1}}}

Spawn the Wither immediately without placing skulls

/summon wither ~ ~5 ~

Spawn an ender dragon anywhere in your world

/summon ender_dragon ~ ~ ~

Spawn an armor stand for displaying equipment or decoration

/summon armor_stand ~ ~ ~

Spawn a warden without triggering sculk shriekers

/summon warden ~ ~ ~