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.
Asked
Active
Viewed 3,122 times
0
1 Answers
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)
-
That's not what I'm looking for. For example wool in mcpe is
35. Orange wool is35:1So 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
/fill area 52It shows me a blank spawner. – Tikolu Jun 30 '15 at 08:54