Night Auto Config
If you have ever poked around the source code of a Fabric mod, you have probably run into Auto Config, the library that turns annotated classes into clean, commented config files. It is convenient, but it has always been a little picky about how it serializes data. Night Auto Config exists to remove that limitation. It is a small but genuinely useful integration that lets Auto Config speak the language of Night Config, opening up every serialization format Night Config supports.
In short, Night Auto Config is a Night Config integration for Auto Config, which is now embedded in Cloth Config. Instead of being locked into one serializer, you can plug in the one that fits your project, whether that is TOML, JSON, YAML, or something more exotic.
What Night Auto Config Actually Does
The core of the add-on is a single class: NightConfigSerializer. Auto Config requires a serializer implementation to function, and Night Auto Config provides exactly that, built on top of Night Config's flexible serialization layer. You can use it just like any other common serializer, and it even plays nicely alongside a PartitioningSerializer if your config needs to be split across multiple files.
Because it is a library rather than a gameplay mod, it does not add blocks, items, or mobs. What it adds is freedom for developers who want their config files to look and behave a certain way without fighting the framework.
Supported Versions and Loaders
Night Auto Config targets modern Minecraft releases and is built for the Fabric and Quilt ecosystems, which is where Auto Config and Cloth Config are most commonly used. If your mod already depends on Cloth Config API, adding this serializer is a natural next step. Version compatibility is generally tied to the Cloth Config and Night Config versions you build against, so checking the dependency metadata before you start is always wise.
Adding It to Your Project
The recommended way to pull Night Auto Config into a build is through JitPack. In a Groovy build.gradle, you add the JitPack repository and then declare the dependency with a version property. Kotlin DSL users get the same result with a slightly different syntax. Either way, you will still need to implement Cloth Config API separately, since Night Auto Config does not bundle it.
- Add the JitPack Maven repository to your repositories block.
- Declare the Night Auto Config dependency using your version property.
- Replace the placeholder version with the latest tag name.
- Reference the mod as a dependency in your fabric.mod.json or quilt.mod.json metadata.
That last step matters more than people expect. Forgetting to declare the dependency can lead to confusing crashes at runtime, especially on servers where the library is missing.
How to Install for Players
Players rarely install this directly, but if a mod you downloaded lists it as a requirement, the process is simple. If you are wondering how to install it, treat it like any other Fabric library: drop the jar into your mods folder alongside Fabric API and Cloth Config, then launch the game. If you would rather skip manual file juggling, the foxygame.net launcher handles Night Auto Config through its curated add-on catalog, matching each build to your exact game version so nothing breaks after an update.
Using the Serializer in Code
Once the dependency is in place, the workflow is straightforward. You annotate your config class with @Config and @SerializerProvider, then register it during mod initialization with Auto Config. Night Auto Config also provides convenience interfaces such as UnifiedSerializerProvider, which satisfies both the serializer and serializer provider contracts in one type, cutting down on boilerplate.
One important tip: annotate your fields with Night Config's SerdeDefault annotation for basic compatibility. Skipping this can cause serialization exceptions that are annoying to debug later.
Why Developers Reach for It
- Choose from every config format Night Config supports.
- Mix it with PartitioningSerializer for multi-file setups.
- Reduce custom serialization code with built-in interfaces.
- Keep using Auto Config's familiar annotation-driven approach.
Final Thoughts
Night Auto Config is one of those quiet utilities that solves a very specific problem very well. If you want to download Night Auto Config for Minecraft and start experimenting with different config formats in your Fabric or Quilt mod, it is a lightweight dependency with a clear payoff. For developers tired of being boxed in by a single serializer, this integration is well worth the few minutes it takes to set up.