M BUZZ CRAZE NEWS
// news

What's the ID of monster spawners in Minecraft Pocket Edition?

By Joseph Russell

I know the ID of monster spawners is 52, but how to make it show different mobs? It's either 52:0 or 52-0 or something like that.

3

1 Answer

This command will place a mob spawner that spawns an entity of your choice.

/setblock x y z mob_spawner replace {EntityId:id}
  • x, y, and z are the coordinates where you want to place the spawner.
  • id is an entity ID. You can find a list of them in the Minecraft Wiki article.

Examples:

/setblock ~ ~ ~ mob_spawner replace {EntityId:58} places an Enderman spawner at your location
/setblock 4 20 -289 mob_spawner replace {EntityId:Zombie} places a Zombie spawner at the coordinates (4, 20, -289)
2