When a mob spawns from a custom spawner gotten using the /give command, it reverts to a pig spawner after the first spawn cycle.
Related issues
duplicates
Attachments
Comments


Please provide the command for the spawner

I did, it is in the picture... The only part cut out is "give." If you need the whole command in text then here:
/give @p mob_spawner 1 0 {BlockEntityTag:{SpawnData:{id:Cow}}}
You need to bundle your information in SpawnPotentials.

How does one do that? Also, when did this change?
/give @p mob_spawner 1 0 {BlockEntityTag:{SpawnPotentials:[{Weight:1,Entity:{id:"minecraft:sheep",CustomName:"List of mobs this spawner will choose from"}}],SpawnData:{id:"minecraft:cow",CustomName:"The first entity to spawn before new ones take over (not optional)"}}}
I don't remember quite when SpawnPotentials was introduced, but it was long ago.

Ah alright. Must be new to this version that you have to ise that command, as my command worked in I think 1.10.
Hm, there were some changes with whether SpawnData was automatically copied over when SpawnPotentials were not defined. And I noticed that just setting SpawnPotentials will make the first mob a pig and then start working as normal. Perhaps that's a new bug of itself.

Maybe. In the version before 1.11.2, my command worked, but the mob spawner always looked like a pig spawner.

This is the resurgence of MC-92282 (which is a valid issue as it was fixed prior).