promotional bannermobile promotional banner

S-Lib

An easy to use config and utility library.
Back to Files

S-Lib 3.0.0 - Fabric 1.20.1

File names-lib-fabric-3.0.0+1.20.1.jar
Uploader
StalematedStalemated
Uploaded
Sep 25, 2026
Downloads
774
Size
231.3 KB
Mod Loaders
Fabric
File ID
8970236
Type
R
Release
Supported game versions
  • 1.20.1

Curse Maven Snippet

Fabric

modImplementation "curse.maven:s-lib-1576101:8970236"

Learn more about Curse Maven

What's new

Full Changelog

3.0.0+1.20.1

This update adds a brand-new and easy-to-use config system!

New Features

  • Completely redesigned the config module from the ground up, making registering your configs possible in one line of code using SLibConfig.syncedBuilder() and SLibConfig.localBuilder().
  • Newly added config fields are automatically inserted with default values, old/useless keys are removed.
  • Seven new annotations:
    • @Sync:
      • OVERRIDE_CLIENT: server authoritative config, syncs to the client. Config broadcasts on login and updates in real time. Supports configurable permission checks (e.g., OP-only).
      • INFORM_SERVER: local config, informs server of changes
      • NONE: local config, no network sync
    • @RangeInt: clamps an int config field to a specified range
    • @RangeFloat: clamps a float config field to a specified range
    • @RangeDouble: clamps a double config field to a specified range
    • @Comment: allows for comments to be added to config fields (supports text blocks)
    • @Ignore: ignores a config field entirely
    • @Nest: allows for nested classes for more complex config structures
  • Unmodded / Vanilla server compatibility: client instances safely fall back to default values for server authoritative options. Local options can be freely modified.
  • The config also supports serializing common classes like AWT's Color, Minecraft's TextColor, Identifier, Pattern, and UUID.

Fixes

  • Fixed availability propagation in custom YACL controllers

Testing

  • Created a new test mod to test the new config system S-Lib Test Mod.

This mod has no additional files