I'm a little new to using mods, so I was wondering if there was a mod that makes your ex (after divorce) set back to normal so that you can build a relationship with them again? I did see there was a mod that did just that http://community.playstarbound.com/threads/smapi-0-39-storm-divorce-mod.109572/ but it isn't compatible now. Sorry if this the wrong way to go about asking this.
There is a way to do that already in the game. Only read below if you don't mind spoilers. There's a Witch's Lair that you can go visit later on in the game, inside will be 3 shrines, one of which will erase your ex-spouse's memory so that it's as if you were never married in the first place, you'll be able to build a relationship just like you did the first time you met them.
Exactly as Ayriee said, just do it in game. Not sure if what I would say about it is a spoiler but I'll put a spoiler tag on it just in case... Erasing a spouses memory is 30,000 gold (If I remember correctly) but this should be a problem in the game if you're at the point of being married