Sanityfy
Sanityfy is a tool for mod developers that adds a simple Sanity attribute.
On its own Sanityfy just adds an Attribute with a value from -1000 to 1000 and default 100 that is added to every entity.
How to use it
To use Sanityfy you need some basic Java knowledge.
The mod adds xyz.tygrysgames.sanityfy.procedures.SanityControlerProcedure that you can use to run 6 functions:
addSanity(Entity entity, double value)- adds value to current sanity of entityremoveSanity(Entity entity, double value)- removes value from current sanity of entitydevideSanity(Entity entity, double value)- devides current sanity of entity by valuemultiplySanity(Entity entity, double value)- multiplies current sanity of entity by valuesetSanity(Entity entity, double value)- sets current sanity of entity to valuegetSanity(Entity entity)- returns current sanity of entity, if something goes wrong it will return-1001or cause error
If you want to use this mod in your project remember about adding dependency to your .mods.toml and build.gradle
It is recommended to use 100 as the maximum sanity, since if there will be any mod installed which uses different number, your mods can fight about which one should be the default/maximum sanity.
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.21.1, 1.21.2, 1.21.3
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Modrinth — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
- Ships as sanityfy-1.0.1.jar — drop this file into the mods folder
- Download size: 9 KB
- Download link checked 21 Aug 2026 — working
These come from our own check of the pack file, not from the source page.
