ModsFinder
SL

salinity library

by saltlamp_

Salinity Library provides shared attribute definitions and helper tools that other mods on NeoForge can build on, so they avoid writing the same code twice.

NeoForgeClient and serverMIT License1.21.1 – 26.1

What it does

The library adds several combat attributes to the game: mitigation damage reduction, arrow damage and arrow damage bonus, arrow speed and its multiplier, and melee attack range. Each attribute is registered once, so dependent mods read the same values and modifiers instead of defining their own.

Modifiers can be applied to these attributes using three operations: a sum of additive values, a sum of multiplied base values, and a sum of multiplied total values. Spell-related attributes, including spell damage, spell power and the target's spell resistance, are available only on version 26.1 and later. Spell damage starts from a base value and is processed in the same modifier order as the other attributes, while spell resistance considers the target's vanilla armor toughness and treats an absent toughness value as 0.

Every player and the server need a copy of the mod. It is released under the MIT License and is not open source. Files are published for NeoForge only, for the game versions 1.21.1 and 26.1, with 26.1_1.1.0 as the latest file.

Key features

  1. Shared combat attributes

    Mitigation, arrow damage, arrow speed and melee attack range are registered as attributes that other mods can read and change.

  2. Three modifier operations

    Modifiers can add a flat value, multiply the base value, or multiply the total, with each operation summed in a fixed order.

  3. Spell resistance and damage

    On version 26.1 and later, spell attributes reduce incoming spell damage, scaled by the target's armor toughness.

  4. Helper tools

    Utility code for attribute systems is provided so mods avoid duplicating the same logic.

Compatibility

Latest build for each game version and loader.

26.126.1_1.1.0
1.21.11.0.0
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

Questions

Does Salinity Library need to be installed on the server?

Yes. Every player and the server need a copy of the mod.

Are the spell attributes available on every game version?

No. The spell-related features are only available on version 26.1 and later, while the other attributes work on 1.21.1 as well.

Which loader does Salinity Library support?

Files are published for NeoForge only, so a Fabric or Forge setup cannot use this library.

In the catalog

salinity library is one of 3,514 Library mods on ModsFinder, and one of 1,449 Library mods for NeoForge. 11,959 mods support Minecraft 26.1.

More from saltlamp_

All projects

Similar mods

What the author says

Salinity is my personal utility library mod, providing shared attribute systems and helper tools across my mods to avoid redundant code. The following features are available in all versions (below 26.1): - mitigation — damage reduction - arrow_damage — arrow damage bonus - arrow_speed — arrow speed multiplier …
saltlamp_, on the Modrinth page

Official listing

Owner
saltlamp_
Published
2026-04-05
Updated on Modrinth
2026-04-20
Facts verified
2026-10-15

Tags