ModMC
MidnightLib

MidnightLib

A lightweight utility and configuration library that powers settings screens for supported mods.

31.1M1.6kModLibraryUtility
Download1.10.0+26.3-fabric · MC 26.3All files →

About MidnightLib

MidnightLib is a shared backend library created by Motschen for Minecraft Java Edition. Instead of adding blocks, creatures, or direct survival mechanics to your world, it acts as a lightweight foundation that delivers common utility functions and a unified configuration system. Many creators rely on it behind the scenes to handle internal settings smoothly without needing to build custom options menus from scratch.

On the surface, installing this library does not alter world generation, gameplay balance, or default textures. What it does provide is an accessible configuration screen alongside clean text config files where players can inspect and toggle settings for dependent mods. Everything managed by the library can be turned on or off directly through its interface, giving you straightforward control over connected mod behaviors without editing messy code.

This mod suits pack builders, server administrators, and regular players who run projects that list it as a requirement. If you prefer adjusting individual mod mechanics through straightforward in-game menus rather than hunting through disk directories, having its interface available makes routine tweaks quick. It also suits anyone maintaining clean setups across different mod loaders while keeping background overhead minimal.

In a modpack environment, MidnightLib functions as a quiet dependency that operates on both the client side and server side. Because authors often embed it directly into their own archives via Jar-in-Jar packaging, you might not even need a separate file download. When added manually, it sits neatly among your utility mods without causing loader conflicts across Fabric, Forge, NeoForge, or Quilt.

The example configExample config screenUser-friendly error handlingSliders make number selection a charm.Create lists containing Strings, Identifiers, Numbers, etc.Use file- and directory-choosers!

Features

  • Provides a lightweight configuration framework and common utility tools for dependent mods.
  • Includes a dedicated in-game configuration screen to adjust mod settings directly.
  • Allows every individual feature to be toggled through the config file or menu.
  • Supports embedding directly into other mod files using Jar-in-Jar bundling.
  • Maintains cross-loader compatibility across Fabric, Forge, NeoForge, and Quilt.

Tips

  • Check your mod list before downloading, as some projects already bundle MidnightLib using Jar-in-Jar.
  • Open the in-game configuration screen to toggle individual features without manually opening files.
  • Make sure Fabric API is installed in your mods folder when running MidnightLib on Fabric.

How to install

  1. Install Fabric / Forge / NeoForge / Quilt for your Minecraft version (use the official installer).
  2. Download the file that matches your Minecraft version and Fabric / Forge / NeoForge / Quilt.
  3. Also install: Fabric API.
  4. Open the .minecraft folder and put the file into the "mods" folder (create it if missing).
  5. Launch Minecraft with the Fabric / Forge / NeoForge / Quilt profile.

FAQ

Which mod loaders and game versions are compatible with MidnightLib?

MidnightLib supports Fabric, Forge, NeoForge, and Quilt loaders. It works across thirty-four Minecraft releases ranging from 1.17 up to 26.3.

Do I need to install Fabric API to use this library?

Yes, Fabric API is listed as a required dependency when playing on the Fabric loader. Be sure to place it in your mods folder alongside your other files.

Does MidnightLib need to be installed on both client and server?

Installation on both client side and server side is optional depending on which dependent mods you run. Many mods can also bundle it directly via Jar-in-Jar, removing the need for a separate install.

Download MidnightLib

Fabric API

Fabric API by modmuss50

Enables seamless mod interactions and core functionality for Fabric mods

ModLibraryFabric
296.67M downloads38k followers 3 hours ago
Cloth Config API

Cloth Config API by shedaniel

Simplifies mod configuration screens for smoother gameplay

ModLibraryFabricForgeNeoForge
188.83M downloads17k followers 2 weeks ago
YetAnotherConfigLib (YACL)

YetAnotherConfigLib (YACL) by isxander

Streamline mod configs with a flexible, intuitive library

ModLibraryManagementUtilityFabricForgeNeoForgeQuilt
137.62M downloads10k followers last week
Fabric Language Kotlin

Fabric Language Kotlin by modmuss50

Enables Fabric mods written in Kotlin to run properly in your game without adding extra blocks or items.

ModLibraryFabric
134.06M downloads12k followers 4 days ago