mojira.dev
MC-91509

/setblock command wont work for custom mob spawners

i use the

/setblock ~ ~1 ~ minecraft:mob_spawner 0 replace {EntityId:Zombie}

but the spawner does not make a zombie spawner it just makes the normal pig mob spawner

Linked issues

Comments 6

For future reference, problems like this are best answered on the minecraft forums rather than the bug tracker. Skylinerw especially helps most people who post in the command block section.

this is a bug though ive use that exact command many times and it worked but in this latest snapshot its just not working

How long has it been non-functional? Is this the first time you've tried to use it in the 1.9 snapshots?

The NBT tag for the spawners have changed! Here is an example:

/setblock ~ ~1 ~ minecraft:mob_spawner 0 replace {SpawnData:{id:"Skeleton",SkeletonType:1}}

Why this spread out like the json files?

Still happening to me with newest snapshot, also some spawners I had that were working in survival also turned to pigs for some reason.

Its already a duplicate of a duplicate of an invalid report.

Chad Snyder

(Unassigned)

Unconfirmed

Minecraft 15w43c

Retrieved