Place a Zombie Mob Spawner
Place a working mob spawner that continuously spawns zombies
⚠︎ Awaiting in-game verification for Java 26.2Places 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
Create a command block at your location for automation
/setblock ~ ~1 ~ command_block[facing=up]{Command:"/say Hello"}Delete a region of blocks by filling it with air
/fill ~ ~ ~ ~10 ~10 ~10 airCreate a hollow room or box out of any block
/fill ~ ~ ~ ~10 ~6 ~10 stone hollowCreate a pool or lake by filling a region with water
/fill ~ ~ ~ ~10 ~ ~10 water