ModsFinder

S-Lib

by Stalemated

S-Lib is a configuration and utility library for Minecraft mods, and mod authors use it to read and write settings from a config class.

FabricForgeNeoForgeClient-side onlyMIT LicenseOpen source1.20.1 – 1.21.1

What it does

Settings are declared as fields in a config class. The library manages the file on disk, so a mod built on it does not need its own loader and saver code. Newly added fields receive their default values automatically, obsolete keys are removed, and numeric values are clamped to a range when the @RangeInt, @RangeFloat or @RangeDouble annotation is placed on the field.

Each config option can be synchronized in one of three ways. A server-authoritative setting overrides the client and is broadcast on login and updated in real time, with permission checks such as operator-only access. A local setting can inform the server of changes, or remain purely local without any network sync. Configuration files are backed up automatically when corruption or invalid syntax is detected, which preserves a broken file after an accidental edit.

S-Lib is distributed for Fabric, Forge and NeoForge as client-side only, so it runs in single-player and multiplayer clients. Its source code is open source under the MIT License. Its files target game versions 1.20.1 and 1.21.1, and a 1.21.1 build is published for each loader, with the latest files dated 2026-09-30.

Key features

  1. Server-authoritative sync

    A config option can be set by the server and pushed to connected clients on login, then updated live as the server changes it.

  2. Permission checks

    Synchronized options can require a permission check, such as operator-only, before a change is accepted.

  3. Range annotations

    The @RangeInt, @RangeFloat and @RangeDouble annotations clamp a value to the bounds declared on its field.

  4. Inline comments

    The @Comment annotation places a comment above a field directly in the config class, and the comment is written to the file.

  5. Automatic backups

    A backup is created when a config file is corrupted or has invalid syntax, so the broken version is kept for inspection.

Compatibility

Latest build for each game version and loader.

1.21.13.0.1+1.21.1Not available3.0.1+1.21.1
1.20.13.0.1+1.20.13.0.1+1.20.1Not available
ReleaseBetaAlphaNot available

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

Required by 6 mods

Use cases

Mod configuration

A mod author can declare settings in one class and let the library handle loading, defaults and file repair.

Shared server settings

A server can keep an option authoritative and let players see its current value without editing their own files.

Who it’s for: Mod developers who need typed, self-repairing config files, and server owners who want certain settings controlled from the server side.

How it compares

Full comparison

Admiral is server-side only and is published for Fabric, Forge and NeoForge across 1.19 – 26.3, so it covers a wider version span than S-Lib. Anno is a client and server library for Fabric only, built for 1.18.2 – 1.21.1. SekCore Lib requires both sides too, for Forge and NeoForge, with files for 1.18.2 – 1.20.1. RecipeSync is NeoForge only, for 26.1.2, and both sides need it.

ModLoadersGame versionsEnvironmentUpdated
S-LibFabric, Forge and NeoForge1.20.1 – 1.21.1Client-side only2026-09-30
AdmiralFabric, Forge and NeoForge1.19 – 26.3Server-side only2026-09-19
AnnoFabric1.18.2 – 1.21.1Client and server2025-01-28
SekCore LibForge and NeoForge1.18.2 – 1.20.1Client and server2023-06-22
RecipeSyncNeoForge26.1.2Client and server2026-04-24

Questions

Does S-Lib need to be installed on the server?

No. Servers do not need it; each player installs it for their own game.

Which loaders does S-Lib support?

Fabric, Forge and NeoForge. The latest file for each loader targets 1.21.1, and Forge also has a 1.20.1 file.

Which mods depend on S-Lib?

Six catalog mods require it, including Mutant Skeleton Armor Tweaks, Simply Swords Tweaks and Custom Tooltip API.

In the catalog

S-Lib is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 32,366 mods support Minecraft 1.21.1.

More from Stalemated

All projects

Similar mods

What the author says

S-Lib is a lightweight utility and config library for Minecraft modding.
Stalemated, on the Modrinth page

Official listing

Owner
Stalemated
Published
2026-06-15
Updated on Modrinth
2026-09-30
Facts verified
2026-10-15

Tags