0

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.

Bob
  • 2,072
  • 13
  • 29
Tikolu
  • 292
  • 1
  • 3
  • 11

1 Answers1

0

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)

Nick B.
  • 699
  • 5
  • 12
  • That's not what I'm looking for. For example wool in mcpe is 35. Orange wool is 35:1 So I thought with spawners it would be the same, 52, a colon and a number stating the type! But that didn't work! – Tikolu Jul 13 '15 at 10:47
  • 1
    @TikoluX Spawners don't use damage values like this to differentiate between types of spawner. You have to set the NBT. – grg Aug 26 '15 at 12:00