Back to mods
Sanityfy project artwork

CurseForge · Minecraft mod

Sanityfy

Adds Sanity attribute to Minecraft.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Sanityfy release should I use?

Updated 4 months ago
Latest stable file Sanityfy 1.0.1 NeoForge 1.21.1-1.21.11
Game version 1.21.8, 1.21.5, 1.21.4
Loader NeoForge

Sanityfy 1.0.1 NeoForge 1.21.1-1.21.11 targets 1.21.8, 1.21.5, 1.21.4 with NeoForge. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.

Where it goes

Is Sanityfy required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release NeoForge
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does Sanityfy 1.0.1 NeoForge 1.21.1-1.21.11 need?

Sanityfy 1.0.1 NeoForge 1.21.1-1.21.11. Change the file and its required mods may change too.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add Sanityfy without breaking your instance.

Built for Sanityfy 1.0.1 NeoForge 1.21.1-1.21.11. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use Sanityfy 1.0.1 NeoForge 1.21.1-1.21.11. It targets 1.21.8, 1.21.5, 1.21.4 with NeoForge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside Sanityfy 1.0.1 NeoForge 1.21.1-1.21.11. It opens that exact file at the source.

About this project

What does Sanityfy add?

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.

Project description from CurseForge.

Pick your setup

Sanityfy by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

11 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Sanityfy versions and loaders

2 of 2 releases match

Looking for an older file? The official CurseForge project page is in Resources.