3

The command /setblock ~ ~ ~ mob_spawner 0 replace {EntityID:} doesn't work anymore in 1.9. What is the alternative now?

  • If you have an empty spawner click it with a mob egg and it will start spawning that mob – TwentyCharMax Mar 20 '16 at 4:21
  • I know but you can't do that with iron golem spawners for example. – user126825 Mar 20 '16 at 14:02
  • Oh. I see. There is a mod called TooManyItems you could get all spawners from there. I don't know if it's upgraded to 1.9 though. – TwentyCharMax Mar 20 '16 at 14:43
3

The EntityId tag has been removed. Instead, an id string inside the SpawnData compound specifies the entity ID.

/setblock ~ ~1 ~ minecraft:mob_spawner 0 replace {SpawnData:{id:"Creeper"}}

For the SpawnPotentials list, the Properties compound has been renamed to Entity, and the Type string tag has been removed in favor of an id tag within Entity.

/setblock ~ ~1 ~ minecraft:mob_spawner 0 replace {SpawnPotentials:[{Weight:1,Entity:{id:"Creeper"}}]}

Your Answer

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