Mob Spawner spawns a mob and game crashes.
Make a command block, put this command in:
/setblock ~ ~-2 ~ minecraft:mob_spawner 0 replace {EntityId:Skeleton,SpawnData:{},SpawnPotentials:[{}]}
When mob spawns the game crashes.
However, if you give the command more info, game should not crash.