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.

  • 2
    May I ask what you intend to do with the ID once you have it? Minecraft PE does not yet have any commands implemented, making it a fairly useless bit of information afaik. – MrLemon Jun 25 '15 at 14:44
  • possible duplicate of How do I change a spawner's type in Minecraft? – Bob Jun 25 '15 at 14:48
  • I have a server and I want to fill in a big square with spawners. On my server there are commands. And when i use /fill area 52 It shows me a blank spawner. – Tikolu Jun 30 '15 at 8:54
1

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)
  • 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.