Trivaxy
Skeletron Prime
It's been a while since I made a mod, and I thought of uh.. this.
The Sanity Mod
(yes, inspired by Don't Starve)
Summary:
The Sanity Mod adds a sanity meter to the game, similar to your health and mana. You can find the sanity meter right next to your health meter. Sanity has adverse effects on you, there are no positive effects, only negative ones. But don't worry, take care of your sanity and you'll be absolutely fine! Or don't, but things get bad if you don't.
The Sanity Mod can also be configured to your liking! Feel like losing sanity when in the Crimson/Corruption is too much? Disable it!
You can find the config file named "SanityConfig.json" in Terraria's save path/ModLoader (The one where your Mods and Mod Sources folders are).
E.g: For windows, you can find it in
C:\Users\YOURNAME\Documents\My Games\Terraria\ModLoader\SanityConfig.json
If you do not have this file, just enter a world with the mod enabled.
If you have any bugs, suggestions for rebalancing or ideas then feel free to comment!
Feedback is appreciated.
Note: This mod has not been tested for multiplayer. It'd be great if you try it out with others online and tell me of any bugs you find, I'm trying to make this multiplayer compatible.
And that's pretty much it, I hope you enjoy this mod!
If you want to chat about this mod or any other mods that I make, join my central discord server:
https://discord.gg/dqvbNvE
Download Links:
Click here!
Mod also available in the mod browser.
(yes, inspired by Don't Starve)
Summary:
The Sanity Mod adds a sanity meter to the game, similar to your health and mana. You can find the sanity meter right next to your health meter. Sanity has adverse effects on you, there are no positive effects, only negative ones. But don't worry, take care of your sanity and you'll be absolutely fine! Or don't, but things get bad if you don't.
You have a maximum of 300 sanity.
To keep your sanity up is relatively simple and easy if you are prepared.
1- Eat food, any food you can find. (Well, just vanilla ones. Mod support with Thorium should come soon hopefully). However, you cannot continuously eat food to easily regain sanity.
Eating food when you don't have the "Satiated" debuff will give it to you. This debuff prevents you from regaining sanity when you eat, and it lasts for 10 minutes. This buff however does not prevent you from eating, it just stops you from regaining sanity when you eat.
2- Stay in the hallow, it increases your sanity slowly.
3- Consume life fruit. These also restore your sanity.
4- During the daytime, your sanity will also increase slowly.
5- Killing a boss will increase your sanity by a fair amount. (When not in hardmode)
To keep your sanity up is relatively simple and easy if you are prepared.
1- Eat food, any food you can find. (Well, just vanilla ones. Mod support with Thorium should come soon hopefully). However, you cannot continuously eat food to easily regain sanity.
Eating food when you don't have the "Satiated" debuff will give it to you. This debuff prevents you from regaining sanity when you eat, and it lasts for 10 minutes. This buff however does not prevent you from eating, it just stops you from regaining sanity when you eat.
2- Stay in the hallow, it increases your sanity slowly.
3- Consume life fruit. These also restore your sanity.
4- During the daytime, your sanity will also increase slowly.
5- Killing a boss will increase your sanity by a fair amount. (When not in hardmode)
Oh, you better take good note of these.
1- Getting killed. This decreases your sanity by a substantial amount, in expert mode, the amount is higher.
(Take note that if you die and your sanity is 0, it'll get restored to 90 if it's not hardmode and it's not expert mode)
2- Staying in the corruption or crimson will decrease your sanity slowly as well, so be careful! The amount is higher in hardmode.
3- Blood moons will decrease your sanity slowly.
4- Solar Eclipses will decrease your sanity slowly.
1- Getting killed. This decreases your sanity by a substantial amount, in expert mode, the amount is higher.
(Take note that if you die and your sanity is 0, it'll get restored to 90 if it's not hardmode and it's not expert mode)
2- Staying in the corruption or crimson will decrease your sanity slowly as well, so be careful! The amount is higher in hardmode.
3- Blood moons will decrease your sanity slowly.
4- Solar Eclipses will decrease your sanity slowly.
When your sanity is less than 195:
1- Damage taken by hostile NPCs is increased by 30%.
2- Damage taken by projectiles from hostile NPCs is increased by 30%.
When your sanity is less than 100:
1- All damage you inflict on NPCs is reduced by 50%.
When your sanity is less than 50:
1- You get the 'Confused', 'Darkness', (if in expert mode, you also get the 'Silenced') debuffs.
2- You may sometimes fail to use items.
3- You get the 'Cracking Mind' debuff.
Cracking Mind does the following:
1- Reduce movement speed by 50%.
2- Damage taken is increased by 70%.
1- Damage taken by hostile NPCs is increased by 30%.
2- Damage taken by projectiles from hostile NPCs is increased by 30%.
When your sanity is less than 100:
1- All damage you inflict on NPCs is reduced by 50%.
When your sanity is less than 50:
1- You get the 'Confused', 'Darkness', (if in expert mode, you also get the 'Silenced') debuffs.
2- You may sometimes fail to use items.
3- You get the 'Cracking Mind' debuff.
Cracking Mind does the following:
1- Reduce movement speed by 50%.
2- Damage taken is increased by 70%.
1- Make sure you always have food at your disposal. Eating them increases your sanity a bit and will save you in a pinch (e.g Blood moon)
2- If you are not yet in hardmode, then keep some boss summons with you in order to regain some sanity easily when fighting bosses.
3- If you have the hallow in your world, you may consider building your base there (at your own risk!) to increase your sanity.
4- During a blood moon or solar eclipse, staying in the hallow will help counteract the bad sanity-decreasing effects.
5- Avoid going into the corruption or crimson whenever you can, unless you have to. Do not go there during a blood moon or solar eclipse!
6- Don't get rid of your life fruits. Like I said before, they increase sanity when consumed.
7- Build your base / be close to a reliable food source.
2- If you are not yet in hardmode, then keep some boss summons with you in order to regain some sanity easily when fighting bosses.
3- If you have the hallow in your world, you may consider building your base there (at your own risk!) to increase your sanity.
4- During a blood moon or solar eclipse, staying in the hallow will help counteract the bad sanity-decreasing effects.
5- Avoid going into the corruption or crimson whenever you can, unless you have to. Do not go there during a blood moon or solar eclipse!
6- Don't get rid of your life fruits. Like I said before, they increase sanity when consumed.
7- Build your base / be close to a reliable food source.
The Sanity Mod can also be configured to your liking! Feel like losing sanity when in the Crimson/Corruption is too much? Disable it!
You can find the config file named "SanityConfig.json" in Terraria's save path/ModLoader (The one where your Mods and Mod Sources folders are).
E.g: For windows, you can find it in
C:\Users\YOURNAME\Documents\My Games\Terraria\ModLoader\SanityConfig.json
If you do not have this file, just enter a world with the mod enabled.
Using the config file is super easy. The contents by default are like this:
To disable/enable some mechanics, you just need to change the true to false or the other way around.
Let's say, for example, that I did not want blood moons to decrease my sanity. Simple, let's go to the line where we have "BloodmoonLoss": true. We need to change the "true" to "false" in order to configure the sanity mod to not make you lose sanity during blood moons. So the line should turn to this: "BloodmoonLoss": false. (Make sure to keep everything correct with no spelling mistakes! Also make sure you don't delete/add unneeded commas).
Let's say that I also do not want deaths to make me lose sanity. In this case, we set "DeathLoss": true to "DeathLoss": false.
Now you get the basic idea of how to configure these boolean values (true/false values).
If we want them to make us lose sanity we simply set them to true again.
Below is the list that documents the configuration:
BloodmoonLoss - If true, you lose sanity during blood moons.
EclipseLoss - If true, you lose sanity during solar eclipses.
DeathLoss - If true, you lose sanity when you die.
DayTimeIncrease - If true, you slowly regain sanity during the day.
OnKillBossIncrease - If true, you can gain sanity by killing bosses in Pre-Hardmode.
HallowIncrease - If true, you gain sanity slowly when in the Hallow.
CrimsonLoss - If true, you lose sanity slowly when in the crimson.
CorruptionLoss - If true, you lose sanity slowly when in the corruption.
More configuration options coming soon!
If your configuration isn't working, then you most likely did something wrong in the json file. Post your configuration here and I'll help you.
To disable/enable some mechanics, you just need to change the true to false or the other way around.
Let's say, for example, that I did not want blood moons to decrease my sanity. Simple, let's go to the line where we have "BloodmoonLoss": true. We need to change the "true" to "false" in order to configure the sanity mod to not make you lose sanity during blood moons. So the line should turn to this: "BloodmoonLoss": false. (Make sure to keep everything correct with no spelling mistakes! Also make sure you don't delete/add unneeded commas).
Let's say that I also do not want deaths to make me lose sanity. In this case, we set "DeathLoss": true to "DeathLoss": false.
Now you get the basic idea of how to configure these boolean values (true/false values).
If we want them to make us lose sanity we simply set them to true again.
Below is the list that documents the configuration:
BloodmoonLoss - If true, you lose sanity during blood moons.
EclipseLoss - If true, you lose sanity during solar eclipses.
DeathLoss - If true, you lose sanity when you die.
DayTimeIncrease - If true, you slowly regain sanity during the day.
OnKillBossIncrease - If true, you can gain sanity by killing bosses in Pre-Hardmode.
HallowIncrease - If true, you gain sanity slowly when in the Hallow.
CrimsonLoss - If true, you lose sanity slowly when in the crimson.
CorruptionLoss - If true, you lose sanity slowly when in the corruption.
More configuration options coming soon!
If your configuration isn't working, then you most likely did something wrong in the json file. Post your configuration here and I'll help you.
If you have any bugs, suggestions for rebalancing or ideas then feel free to comment!
Feedback is appreciated.
Note: This mod has not been tested for multiplayer. It'd be great if you try it out with others online and tell me of any bugs you find, I'm trying to make this multiplayer compatible.
And that's pretty much it, I hope you enjoy this mod!
If you want to chat about this mod or any other mods that I make, join my central discord server:
https://discord.gg/dqvbNvE
Download Links:
Click here!
Mod also available in the mod browser.
Last edited: