Skip to content
/craftcmd

Place a Zombie Mob Spawner

Place a working mob spawner that continuously spawns zombies

⚠︎ Awaiting in-game verification for Java 26.2

Places 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

How to use

  1. Java: open chat (T) and paste the command.
  2. Change 'minecraft:zombie' to any mob ID if desired.
  3. Press Enter — a working spawner appears.
  4. Bedrock: use /setblock ~ ~ ~ mob_spawner, then tap it with a zombie spawn egg.

Related commands

Place one block at a specific spot

/setblock ~ ~ ~ stone

Instantly place a chest at a specific location

/setblock ~ ~ ~ chest
Place a Command Block
Place a Command Block Awaiting in-game verification
Java

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 air

Create a hollow room or box out of any block

/fill ~ ~ ~ ~10 ~6 ~10 stone hollow

Create a pool or lake by filling a region with water

/fill ~ ~ ~ ~10 ~ ~10 water