ReLib

⭐ — (0 endorsements) 📥 169 downloads 📌 v0.2.1+26.1 📅 7/3/2026
🟡 Updated this year

By TheSmoothRere · fabric

⬇ Download Mod Source: Modrinth 📅 Updated: 7/31/2026 📅 Created: 7/3/2026
⚠️ Install Order · 2 steps
1🛠️ Forge — Minecraft Forge (mod loader) Download ↗
2🛠️ Fabric — Fabric Loader Download ↗

Install in this order, then this mod last — most mods fail to load without their framework and dependencies in place.

🔍 Analysis

  • 🏆 #450 of 899 fabric mods in this game by downloads

📋 About This Mod

# ReLib General-purpose utility library for Fabric mods, originally built for TheSmoothRere's mods but open for anyone to use. ## Features - **Config system** — Define configuration classes with the `@Config` annotation - **Auto-discovery** — Configs are automatically discovered via Fabric entrypoints and registered at startup - **JSON persistence** — Config values are saved/loaded as pretty-printed JSON via Gson - **Typed options** — `BooleanOption`, `StringOption`, `IntegerOption`, `DoubleOption`, `EnumOption<E>`, `ListStringOption` - **Bounded ranges** — `IntegerOption` and `DoubleOption` enforce min/max bounds - **List support** — `ListStringOption` backed by a mutable `ListString` wrapper with `add`, `edit`, `remove`, `clear` ## Usage ### 1. Create a config class ```java import io.github.thesmoothrere.relib.config.ListString; import io.github.thesmoothrere.relib.config.option.*; @Config(name = "my_mod") public class MyModConfig implements ConfigApi { private final BooleanOption enabled = new BooleanOption("enabled", true); private final IntegerOption volume = new IntegerOption("volume", 50, 0, 100); private final DoubleOption sensitivity = new DoubleOption("sensitivity", 0.5, 0.0, 1.0); private final StringOption greeting = new StringOption("greeting", "Hello!"); private final EnumOption<MyEnum> mode = new EnumOption<>("mode", MyEnum.NORMAL); private final ListStringOption favoriteColors = new ListStringOption("favorite_colors", "red", "blue"); public ConfigOption<Boolean> enabled() { return enabled; } public ConfigOption<Integer> volume() { return volume; } public ConfigOption<Double> sensitivity() { return sensitivity; } public ConfigOption<String> greeting() { return greeting; } public ConfigOption<MyEnum> mode() { return mode; } public ConfigOption<ListString> favoriteColors() { return favoriteColors; } } ``` ### 2. Register the entrypoint in `fabric.mod.json` ```json { "entrypoints": { "relib": } } ``` ### 3. Access your config anywhere ```java MyModConfig config = ConfigManager.get(MyModConfig.class); boolean enabled = config.enabled().getValue(); ConfigManager.load(config); ConfigManager.save(config); ``` ## Option Types | Class | Value Type | Bounded | |-------|-----------|---------| | `BooleanOption` | `Boolean` | No | | `StringOption` | `String` | No | | `IntegerOption` | `Integer` | Yes | | `DoubleOption` | `Double` | Yes | | `EnumOption<E>` | `E extends Enum<E>` | No | | `ListStringOption` | `ListString` | No | ## License Licensed under the **GNU Lesser General Public License v2.1**. See (https://github.com/TheSmoothRere/ReLib/blob/main/LICENSE).

General-purpose utility library for Fabric mods, originally built for TheSmoothRere's mods but open for anyone to use.

## Features

  • Config system — Define configuration classes with the `@Config` annotation
  • Auto-discovery — Configs are automatically discovered via Fabric entrypoints and registered at startup
  • JSON persistence — Config values are saved/loaded as pretty-printed JSON via Gson
  • Typed options — `BooleanOption`, `StringOption`, `IntegerOption`, `DoubleOption`, `EnumOption`, `ListStringOption`
  • Bounded ranges — `IntegerOption` and `DoubleOption` enforce min/max bounds
  • List support — `ListStringOption` backed by a mutable `ListString` wrapper with `add`, `edit`, `remove`, `clear`

### 1. Create a config class

```java import io.github.thesmoothrere.relib.config. ListString; import io.github.thesmoothrere.relib.config.option.*;

@Config(name = "my_mod") public class MyModConfig implements ConfigApi {

private final BooleanOption enabled = new BooleanOption("enabled", true); private final IntegerOption volume = new IntegerOption("volume", 50, 0, 100); private final DoubleOption sensitivity = new DoubleOption("sensitivity", 0. 5, 0. 0, 1. 0); private final StringOption greeting = new StringOption("greeting", "Hello!"); private final EnumOption mode = new EnumOption<>("mode", MyEnum. NORMAL); private final ListStringOption favoriteColors = new ListStringOption("favorite_colors", "red", "blue");

public ConfigOption enabled() { return enabled; }

public ConfigOption volume() { return volume; }

public ConfigOption sensitivity() { return sensitivity; }

public ConfigOption greeting() { return greeting; }

public ConfigOption mode() { return mode; }

public ConfigOption favoriteColors() { return favoriteColors; } } ```

### 2. Register the entrypoint in `fabric.mod.json`

```json { "entrypoints": { "relib": [ "com.example. MyModConfig" ] } } ```

### 3. Access your config anywhere

```java MyModConfig config = ConfigManager.get(MyModConfig.class); boolean enabled = config.enabled().getValue();

ConfigManager.load(config); ConfigManager.save(config); ```

## Option Types

| Class | Value Type | Bounded | |-------|-----------|---------| | `BooleanOption` | `Boolean` | No | | `StringOption` | `String` | No | | `IntegerOption` | `Integer` | Yes | | `DoubleOption` | `Double` | Yes | | `EnumOption` | `E extends Enum` | No | | `ListStringOption` | `ListString` | No |

Licensed under the GNU Lesser General Public License v2. 1. See (https://github.com/TheSmoothRere/ReLib/blob/main/LICENSE).

🤖 AI-enhanced — based on mod data

📊 Mod Details

Game
Minecraft Mods
Author
TheSmoothRere
Version
0.2.1+26.1
Downloads
169
Endorsements
0
Category
fabric
Created
7/3/2026
Updated
7/31/2026
Game Versions
26.1, 26.1.1, 26.1.2, 26.2
Tags
library

🔧 How to Install Minecraft Mods Mods

Download from Modrinth. Use Prism Launcher or drop into your mods folder.

📖 Full step-by-step install guide for Minecraft Mods →

Visit the official mod page for specific installation instructions for this mod.

🎮 Need cheat codes or console commands? Check ur gaming wiki for Minecraft Mods commands, item IDs, and more.

❓ Frequently Asked Questions

Which Minecraft Mods versions does ReLib support?

The author lists 26.1, 26.1.1, 26.1.2, 26.2. Other versions may work but are untested by the author.

What is the latest version of ReLib?

Version 0.2.1+26.1, published 2026-07-31 with 169 downloads recorded at the source.

Keep browsing — more Minecraft Mods mods await

📋 All Minecraft Mods Mods 🏆 Top 25 📂 More fabric 👤 More by TheSmoothRere 🔎 Similar Mods 🌐 Best fabric (All Games) 🔀 Check Compatibility ⚖️ Compare Mods 🆕 New Mods