Place a Zombie Mob Spawner
Place a working mob spawner that continuously spawns zombies
✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026Places a functional zombie spawner at your position using Java's block entity NBT. Change 'minecraft:zombie' to any entity ID (skeleton, spider, etc.) to spawn different mobs. The spawner functions immediately and respects nearby players.
/setblock ~ ~ ~ spawner{SpawnData:{entity:{id:"minecraft:zombie"}}}67 characters
- Java: yes
- Bedrock: no
- Command block: yes
- Needs cheats / OP: yes
How to use
- Java: open chat (T) and paste the command.
- Change 'minecraft:zombie' to any mob ID if desired.
- Press Enter — a working spawner appears.
- Bedrock: use /setblock ~ ~ ~ mob_spawner, then tap it with a zombie spawn egg.
Related commands
Set a Single Block
Place one block at a specific spot
Place a Chest
Instantly place a chest at a specific location
Place a Command Block
Create a command block at your location for automation
Set Sculk Sensor Block
Place a sculk sensor for redstone detection
Clear an Area (Fill With Air)
Delete a region of blocks by filling it with air
Fill a Hollow Box (Build a Room)
Create a hollow room or box out of any block