>>96277937
My current setting has a strong systemic dislike of magic due to past events. 1000 years prior, only royalty was capable of performing magic. There was a bloody revolution thanks to the invention of guns headed by the church and their access to miracles (not magic). Royals were killed or enslaved. Over the decades, non-royal bloodlines mixed with the enslaved royals passing along the ability to cast magic but because of how much distain there is towards the practice anyone that can practice magic is a second class citizen.

The stuff my players haven't figured out yet is that magic was granted by chaos God's and kept in check by royals who made contracts with spirits that were envoys for the chaos God's. Without these contracts, magic users that cast spells are tapping into pure chaos which cause them to lose their sanity. Miracles were granted by a pantheon of new Gods that put the chaos God's to sleep, but the new Gods are like Outer One cosmic horrors trying to corrupt humanity. But comparison the old God's that granted magic were indifferent to humanity leaving things to their spirit harbingers who have since disappeared.

System is D6 fantasy. Heavily inspired by the video game Arcanum and the manga Magical Revolution.