Summon an Iron Golem
Spawn an iron golem to protect an area
✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026Spawns 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
- Java: yes
- Bedrock: yes
- Command block: yes
- Needs cheats / OP: yes
How to use
- Open chat (T on Java, / on Bedrock) and paste the command.
- Press Enter — the iron golem spawns at your position.
- Do not attack it — iron golems turn hostile if you hit them first.
- It will defend the area from hostile mobs automatically.
Related commands
Summon Lightning Bolt
Strike lightning at your location
Summon Zombie Wearing Armor
Spawn a zombie equipped with armor
Summon the Wither Boss
Spawn the Wither immediately without placing skulls
Summon the Ender Dragon
Spawn an ender dragon anywhere in your world
Summon an Armor Stand
Spawn an armor stand for displaying equipment or decoration
Summon the Warden
Spawn a warden without triggering sculk shriekers