Sanityfy

Sanityfy

Adds Sanity to Minecraft for you to use

by
51 Downloads
neoforgegame-mechanicslibrary
Rent Server with this Mod

About this Mod

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 entity
  • removeSanity(Entity entity, double value) - removes value from current sanity of entity
  • devideSanity(Entity entity, double value) - devides current sanity of entity by value
  • multiplySanity(Entity entity, double value) - multiplies current sanity of entity by value
  • setSanity(Entity entity, double value) - sets current sanity of entity to value
  • getSanity(Entity entity) - returns current sanity of entity, if something goes wrong it will return -1001 or 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.

Available Versions

Sanityfy 1.0.0release
MC 1.21.8neoforge
May 10, 2026

How to Install Sanityfy on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set neoforge Loader

In the panel under "Egg", select the neoforge loader and matching Minecraft version (1.21.11).

3

Install Mod

Open the mod browser in the dashboard and search for "Sanityfy". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

neoforge

Minecraft Versions

1.21.11, 1.21.10, 1.21.9 (+8 more)

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Sanityfy server crashes on startup – what to do?

Most common cause: wrong neoforge version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.11). You can switch loaders with one click in the panel.

Is Sanityfy compatible with neoforge?

Sanityfy officially supports neoforge for Minecraft 1.21.11, 1.21.10, 1.21.9. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Sanityfy – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Sanityfy consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install Sanityfy with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
MIT License
Server-side
Required

Supported Versions

1.21.111.21.101.21.91.21.81.21.71.21.61.21.51.21.41.21.31.21.2+1 more