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
Spawn a zombie equipped with armor
/summon zombie ~ ~ ~ {equipment:{head:{id:"diamond_helmet",count:1}}}Spawn an armor stand for displaying equipment or decoration
/summon armor_stand ~ ~ ~