MidnightLib

MidnightLib

Common library providing a lightweight configuration system

16.2M downloads
Created Apr 9, 2026
by Motschen

About

<center>MidnightLib is a lightweight library that provides common utils and a configuration system for mods.</br> </br>Mod developers are allowed and encouraged to bundle it with their mods via Jar-in-Jar.<br />Every feature can be toggled in the library's own config screen/file. <p style="text-align: center;"><img src="https://cdn.modrinth.com/data/codAaoxh/images/7e6251fa3c8889105c343964ae85f206b11a21b5.png" alt="Example configuration screen" height="532" /> <center>Visit the new <a href="https://www.midnightdust.eu/wiki/midnightlib">Wiki</a> to get started now.</center>

Versions

v1.9.2+1.21.5-fabricLatest
1.21.4, 1.21.5fabric, quiltDec 11, 2025

## MidnightLib v1.9.2 - Add support for using `StringRepresentable` to translate enums ## MidnightLib v1.9.1 - Fix crash when loading existing main config on NeoForge # MidnightLib v1.9.0 - Setup a **multiversion** build environment - MidnightLib will now always be up-to-date on all relevant versions of Minecraft (Fabric/Forge 1.20.1; Fabric/NeoForge 1.21.1, 1.21.5, 1.21.8, 1.21.10) - Measures were taken to ensure this doesn't break mods targeting old MidnightLib versions. In case you still find a broken mod, please [report it](https://github.com/TeamMidnightDust/MidnightLib/issues/new/choose) and tag the issue with `1.9.0`. - New logo! This offers improved visibility on light themes and a more modern, fresh look. - Added JavaDocs to improve the developer experience. - To be able to view them, adjust your midnightlib gradle dependency by following the [wiki](https://midnightdust.eu/wiki/midnightlib). - Reduced jar size – now under 60KB again for Fabric builds :) - Migrate to Mojang mappings in preparation for upcoming non-obfuscated releases

Download
v1.9.2+1.21.8-fabric
1.21.6, 1.21.7, 1.21.8fabric, quiltDec 11, 2025

## MidnightLib v1.9.2 - Add support for using `StringRepresentable` to translate enums ## MidnightLib v1.9.1 - Fix crash when loading existing main config on NeoForge # MidnightLib v1.9.0 - Setup a **multiversion** build environment - MidnightLib will now always be up-to-date on all relevant versions of Minecraft (Fabric/Forge 1.20.1; Fabric/NeoForge 1.21.1, 1.21.5, 1.21.8, 1.21.10) - Measures were taken to ensure this doesn't break mods targeting old MidnightLib versions. In case you still find a broken mod, please [report it](https://github.com/TeamMidnightDust/MidnightLib/issues/new/choose) and tag the issue with `1.9.0`. - New logo! This offers improved visibility on light themes and a more modern, fresh look. - Added JavaDocs to improve the developer experience. - To be able to view them, adjust your midnightlib gradle dependency by following the [wiki](https://midnightdust.eu/wiki/midnightlib). - Reduced jar size – now under 60KB again for Fabric builds :) - Migrate to Mojang mappings in preparation for upcoming non-obfuscated releases

Download
v1.9.2+1.21.8-neoforge
1.21.6, 1.21.7, 1.21.8neoforgeDec 11, 2025

## MidnightLib v1.9.2 - Add support for using `StringRepresentable` to translate enums ## MidnightLib v1.9.1 - Fix crash when loading existing main config on NeoForge # MidnightLib v1.9.0 - Setup a **multiversion** build environment - MidnightLib will now always be up-to-date on all relevant versions of Minecraft (Fabric/Forge 1.20.1; Fabric/NeoForge 1.21.1, 1.21.5, 1.21.8, 1.21.10) - Measures were taken to ensure this doesn't break mods targeting old MidnightLib versions. In case you still find a broken mod, please [report it](https://github.com/TeamMidnightDust/MidnightLib/issues/new/choose) and tag the issue with `1.9.0`. - New logo! This offers improved visibility on light themes and a more modern, fresh look. - Added JavaDocs to improve the developer experience. - To be able to view them, adjust your midnightlib gradle dependency by following the [wiki](https://midnightdust.eu/wiki/midnightlib). - Reduced jar size – now under 60KB again for Fabric builds :) - Migrate to Mojang mappings in preparation for upcoming non-obfuscated releases

Download

Download

Download v1.9.2+1.21.5-fabric

Minecraft: 1.21.4, 1.21.5

Loaders: fabric, quilt

Tags

fabricforgeneoforgequilt1.21.71.21.81.21.91.21.101.21.11