You should use BabyEntitySpawnEvent if you want to spawn twins only after pigs breed. LivingSpawnEvent you are using, will fire everytime an entity spawns(on chunk load, on world load etc.).
Let me know if that helps.
I want to install a tweak from this site. Can anyone tell me how to do this please?