Sanity: Descent Into Madness

Sanity: Descent Into Madness

2M Downloads

[Question] How do I add a custom sanity loss by world height?

SaaronReborn opened this issue ยท 0 comments

commented

Hi! I'm currently working on a modpack, the jist o it is that the player will live underground and will every now and then venture out into the barren, super dangerous wasteland that the surface has become. Where I'm going is that one of the way I was thinking on using to force the player into the surface is sanity. That it'll slowly drain by being underground for 4 days will make the player insane on the fifth, (0% on the fifth day), and I want the player to regain sanity on the surface. So, what I had in mind was to add 2 rules to the config:
1: x% of sanity is lost when below x height in the world.
2: x% of sanity is lost when there isn't enough space around the player. (Aka claustrophobia)

The thing is, I don't know how to code, much less add these to the code of the whole thing. So, could anybody help me?
<Sorry for bad English, it's my second language>