Placing any spawner given with any NBT data in survival mode will result in a pig spawner.
Tested with these commands:
/give @s minecraft:mob_spawner{display:{Name:"{\"text\":\"Skeleton Spawner\",\"color\":\"green\",\"italic\":false}"},BlockEntityTag:{SpawnData:{id:"minecraft:skeleton"},SpawnPotentials:[]}} 1
/give @s minecraft:mob_spawner{display:{Name:"{\"text\":\"Zombie Spawner\",\"color\":\"green\",\"italic\":false}"},BlockEntityTag:{SpawnData:{id:"minecraft:zombie"},SpawnPotentials:[]}} 1
Linked issues
Comments 3
Dupe of MC-105216.
I'm not getting the same results - I ran the commands, and they give me the proper spawners. I'm using Java 8 on Windows 8.