MidnightLib is a lightweight library mod that provides a common configuration system and utility functions for Minecraft, supporting Fabric, Forge, NeoForge, and Quilt mod loaders. It serves as a shared dependency that other mods rely on to manage their settings screens and internal configurations without reinventing the wheel.
Anyone who has modded Minecraft for more than a few hours knows the frustration: you install a handful of mods, and each one handles its settings differently. Some dump raw config files in obscure folders, others lack in-game menus entirely, and a few conflict with each other over how configuration data is stored. MidnightLib exists to solve exactly this fragmentation problem. Created by developer Motschen and maintained by Team Midnight Dust, the library gives mod authors a single, proven configuration framework they can bundle directly into their projects. The result for players is a more consistent, polished modding experience — and with more than 17 million downloads since its 2021 release, it has become one of the foundational building blocks of the modern Minecraft modding scene.
Key Features of MidnightLib
- Lightweight Configuration System — MidnightLib provides a streamlined config framework that mod developers can plug into their projects. For players, this means mods built on MidnightLib tend to have clean, uniform settings screens rather than clunky text-file editing. You spend less time hunting for config files and more time actually playing.
- In-Game Configuration Screen — Rather than forcing you to quit Minecraft and edit JSON or TOML files manually, MidnightLib powers a visual config screen accessible from the mod menu. This makes tweaking mod settings intuitive, especially for players who are not comfortable editing raw config files.
- Jar-in-Jar Bundling Support — Mod developers are encouraged to bundle MidnightLib directly inside their mod packages using the Jar-in-Jar method. This means you often do not even need to download MidnightLib separately — it comes packaged with the mods that depend on it, reducing installation friction significantly.
- Cross-Loader Compatibility — MidnightLib works across Fabric, Forge, NeoForge, and Quilt. Whether you run a Fabric-based performance setup or a NeoForge modpack, MidnightLib functions the same way. You do not need separate versions for each loader ecosystem in most cases.
- Toggleable Features — Every feature within MidnightLib itself can be enabled or disabled through its own config screen or file. This granular control means the library never forces unwanted behavior on your game — you decide exactly what runs and what stays off.
- Common Utility Functions — Beyond configuration, MidnightLib provides shared utility code that mod developers can reuse. This reduces the overall size of your mod folder because multiple mods share a single set of helper functions instead of each shipping their own duplicate code.
- Multiversion Build Environment — As of version 1.9.0, MidnightLib uses a multiversion build system that keeps the library up to date across all relevant Minecraft versions simultaneously. This means faster updates when new Minecraft versions drop, so your modded setup is less likely to be held back by a single dependency.
Screenshots
How to Install MidnightLib
- Install your preferred mod loader. MidnightLib supports Fabric, Forge, NeoForge, or Quilt — pick whichever matches your existing setup.
- Download the correct MidnightLib version for your Minecraft version and mod loader from the official Modrinth page. Double-check that the file matches both your game version and loader.
- Place the downloaded
.jarfile into your.minecraft/modsfolder. If the folder does not exist, launch Minecraft once with your mod loader installed to generate it. - Launch Minecraft and verify MidnightLib appears in your mod list. You can access its own configuration screen from the mods menu to confirm it loaded correctly.
- Note: many mods bundle MidnightLib via Jar-in-Jar, so check whether your other mods already include it before downloading separately to avoid version conflicts.
Requirements & Compatibility
| Requirement | Details |
|---|---|
| Mod Loaders | Fabric, Forge, NeoForge, Quilt |
| Minecraft Versions | 1.20 – 1.21.11, 26.1 |
| License | MIT (open source) |
| Developer | Motschen (Team Midnight Dust) |
| Latest Update | March 25, 2026 |
What's New
- Multiversion build environment (v1.9.0): MidnightLib now stays up to date across all relevant Minecraft versions simultaneously, covering Fabric/Forge 1.20.1 through Fabric/NeoForge 1.21.10 and beyond.
- StringRepresentable enum translation (v1.9.2): Mod developers can now use
StringRepresentableto translate enum values in config screens, improving localization support. - NeoForge config crash fix (v1.9.1): Resolved a crash that occurred when loading existing main config files on NeoForge.
- New logo: Updated branding with improved visibility on light themes and a more modern look.
- Added JavaDocs: Comprehensive documentation added to the codebase, improving the experience for developers building on MidnightLib.
Pros and Cons
Pros
- Appears to be very lightweight with minimal overhead on game performance
- Cross-loader support covers Fabric, Forge, NeoForge, and Quilt
- Over 17 million downloads — widely trusted and battle-tested
- MIT license means fully open source and transparent
- Often bundled automatically via Jar-in-Jar, requiring no manual install
- Actively maintained with multiversion build system for fast updates
Cons
- Provides no visible gameplay features on its own — purely a backend library
- Version mismatches between bundled and standalone copies can cause conflicts
- Players may not understand why they need to install a library mod
Alternatives to MidnightLib
- Cloth Config API — A popular configuration library for Fabric and Forge that provides rich config screen builders with support for categories, tooltips, and various input types.
- YACL (Yet Another Config Lib) — A modern config library offering a builder-based API with animated UI elements, designed as a more feature-rich alternative for developers who need advanced settings screens.
- Architectury API — A cross-platform modding abstraction layer that, like MidnightLib, helps developers write mods that work across multiple loaders from a single codebase.
Download MidnightLib
| Minecraft Version | Fabric | NeoForge | Quilt |
|---|---|---|---|
| For Minecraft 26.1 | Download | Download | Download |
| For Minecraft 1.21.11 | Download | Download | Download |
| For Minecraft 1.21.10 | Download | Download | Download |
| For Minecraft 1.21.9 | Download | Download | Download |
| For Minecraft 1.21.8 | Download | Download | Download |
| For Minecraft 1.21.7 | Download | Download | Download |
| For Minecraft 1.21.6 | Download | Download | Download |
| For Minecraft 1.21.5 | Download | Download | Download |
| For Minecraft 1.21.4 | Download | Download | Download |
| For Minecraft 1.21.3 | Download | Download | Download |
| For Minecraft 1.21.2 | Download | Download | Download |
| For Minecraft 1.21.1 | Download | Download | Download |
Always download mods from official sources to stay safe.
Frequently Asked Questions
Do I need MidnightLib if no mod requires it?
No — MidnightLib is a library mod that only needs to be installed when another mod lists it as a dependency. If nothing in your mod folder depends on it, there is no reason to install it. That said, having it present will not cause any issues since it sits idle when no mods call upon its functions.
Is MidnightLib compatible with Fabric, Forge, and NeoForge at the same time?
Yes — MidnightLib supports Fabric, Forge, NeoForge, and Quilt. However, you should download the specific build that matches your mod loader. The multiversion build system introduced in v1.9.0 ensures that all loader versions are kept up to date simultaneously.
Does MidnightLib affect game performance?
MidnightLib appears to be very lightweight and is designed to add minimal overhead. It provides only configuration utilities and shared helper functions, so it does not run intensive processes during gameplay. Most players report no noticeable difference in FPS or load times after installing it.
What happens if a mod already bundles MidnightLib via Jar-in-Jar?
The bundled version will be used automatically, and you do not need a separate download. If you also have a standalone copy installed, your mod loader will typically use whichever version is newer. To avoid potential conflicts, check your mod list for duplicate entries and remove the older version if issues arise.
Is MidnightLib open source?
Yes — MidnightLib is released under the MIT license, which is one of the most permissive open-source licenses available. The full source code is hosted on GitHub under the Team Midnight Dust organization, and both players and developers can inspect, fork, or contribute to the project freely.
