Back
Minecraft Libraries & APIs

MidnightLib

Overview

Common library providing a lightweight configuration system

MidnightLib is a lightweight library that provides common utils and a configuration system for mods.
Mod developers are allowed and encouraged to bundle it with their mods via Jar-in-Jar.
Every feature can be toggled in the library's own config screen/file.

Visit the new Wiki to get started now.

ABOUT THIS LISTING

This page describes MidnightLib by Motschen. The description and screenshots are the author's own, imported from their listing on Modrinth on 3 October 2026: https://modrinth.com/mod/midnightlib

Mythiq.net hosts no files for it. The download button goes straight to the release file on cdn.modrinth.com, so you are downloading from the author's own host, not from a copy of ours.

The download count, rating and comments on this page start at zero and count Mythiq.net only. The source's own figures are not copied here — they measure a different site, and a number that cannot be checked against our own ledger is not worth printing.

Media

  • Example config screen

    Example config screen

  • User-friendly error handling

    User-friendly error handling

  • Sliders make number selection a charm.

    Sliders make number selection a charm.

  • Create lists containing Strings, Identifiers, Numbers, etc.

    Create lists containing Strings, Identifiers, Numbers, etc.

  • Use file- and directory-choosers!

    Use file- and directory-choosers!

Requirements

Game version
  • 26.3
MOD LOADER

This release is built for Neoforge. A mod built for one loader will not load under another — Fabric mods do not run on Forge, and vice versa.

GAME VERSION

Built for Minecraft 26.3. Minecraft mods are tied to an exact version: a 1.21.4 build will refuse to load on 1.21.5.

THIS IS A LIBRARY

On its own it adds nothing you can see. It is here because other mods require it, and installing it is usually something another mod asked you to do.

DEPENDENCIES

Check the author's listing for required libraries before you start the game — a missing dependency shows up as a crash on launch, not as a warning.

Installation

1. Install Neoforge for the Minecraft version you play, if you have not already.

2. Download the .jar with the button on this page. Do not unzip it — a mod jar is installed as it is.

3. Put it in your mods folder:

Windows — %APPDATA%\.minecraft\mods

macOS — ~/Library/Application Support/minecraft/mods

Linux — ~/.minecraft/mods

4. Launch the game with the Neoforge profile selected.

ON A SERVER

Anything that changes world generation or gameplay has to be installed on the server as well as on every client. Client-side visual and interface mods do not.

UPDATING

Replace the old .jar rather than adding the new one beside it. Two versions of the same mod in the folder is a crash on launch.

This release downloads from cdn.modrinth.com, not from us, so there is no checksum to compare against. Scan the archive before you unpack it.

Version history

  1. v1.9.3.1+26.3-neoforge Latest 17 Sep 2026 · 60 KB via cdn.modrinth.com · 0 downloads Download
    MidnightLib v1.9.3.1
    - Fix crash on Neoforge 26.3 due to invalid version range

    MidnightLib v1.9.3
    - Dynamic comment formatting (tysm @Jaffe2718)
    - Modders can now provide a list of Strings to format the text with – useful for dynamic stats
    - Fix NullPointerException while loading @Condition from the field behind #129 (by @Jaffe2718)
    - Updated Tatar translations (by @Amirhan-Taipovjan-Greatest-I)
    - Updated Argentine Spanish translations (by @Texaliuz)

    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 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.
    - Reduced jar size – now under 60KB again for Fabric builds :)
    - Migrate to Mojang mappings in preparation for upcoming non-obfuscated releases

    Off-site on cdn.modrinth.com — no checksum, because we never held this file. Link checked by our review team on 3 Oct 2026.

Comments

No comments yet.

Sign in to leave a comment.

Report this mod

Tell us if something is wrong — a file that will not work, content taken from someone else, or anything that looks unsafe. Reports go to our review team, not to the author.

Sign in to report this mod.

We use cookies to ensure that we give you the best experience on our website and improve your experience. By continuing to use this site you consent to such use of cookies.

Learn More