SANDBOX — this is a test environment. No servers are actually deployed and no real payments are charged.
✓ VerifiedQuality of life & UI

Night Auto Config

by KrLite · for Minecraft

Serialize everything! Night Config integration for Auto Config.

200KDownloads
11 mo agoLast updated
GPL-3.0-onlyLicense
Fabric · NeoForge +1Loaders

About Night Auto Config

From Modrinth

Serialize everything! Night Config integration for Auto Config.

Night Auto Config

Serialize everything! Night Auto Config is a Night Config integration for Auto Config (now embedded in Cloth Config).

Implementation

Night Auto Config introduces a NightConfigSerializer to satisfy Auto Config's requirement of a serializer's implementation. You can choose from all the available config formats of Night Config, and use the serializer just as other common serializers, even along with a PartitioningSerializer.

Add to Your Project

It is recommended to use JitPack to implement Night Auto Config into your project.

Groovy

build.gradle

repositories {
	maven { url "https://jitpack.io" }
}

dependencies {
	modApi "com.github.KessokuTeaTime:Night-Auto-Config:${project.nightautoconfig_version}"
	// You'll need to implement Cloth Config API here.
}

gradle.properties

nightautoconfig_version={latest}

Kotlin DSL

build.gradle.kts

repositories {
	maven { url = uri("https://jitpack.io") }
}

dependencies {
	modApi("com.github.KessokuTeaTime:Night-Auto-Config:${project.nightautoconfig_version}")
	// You'll need to implement Cloth Config API here.
}

gradle.properties

nightautoconfig_version={latest}

> You should replace {latest} with the latest tag name of Night Auto Config.

Reference as Dependency

Don't forget to reference Night Auto Config as dependency in your mod's metadata.

fabric.mod.json / quilt.mod.json

{
	"depends": {
		"nightautoconfig": "*"
	}
}

Usage

The serializer implementation is at band.kessokuteatime.nightautoconfig.config.NightConfigSerializer.

Here's a brief example:

MyConfig.java

// Use annotations provided by Night Auto Config to define serializer providers and deserializer providers at runtime!
@SerializerProvider(MyClassSerializerProvider.class)
@Config(name = "my_config")
public class MyConfig implements ConfigData {
    // Something...
    
    private transient final Supplier<String> someStringProvider = () -> "default";
    
    // All Night Config annotations are available
    @SerdeDefault(provider = "someStringProvider")
    public String someString = someStringProvider.get();
    
    // Night Auto Config provides some interfaces for convenience implementations
    // For example, `UnifiedSerializerProvider<T, R>` satisfies both `ValueSerializer<T, R>` and `ValueSerializerProvider<T, R>`
    public static class MyClassSerializerProvider implements UnifiedSerializerProvider<MyClass, String> {
        // ...
    }
    
    // A custom serializer provider for `MyClass` is already specified at type definition
    public MyClass someInstance = new MyClass();
}

MyMod.java

public class MyMod implements ModInitializer {
    @Override
    public void onInitialize() {
        // Don't remember to register into Auto Config at initialize
        AutoConfig.register(NightExampleConfig.class, ConfigType.DEFAULT_COMMENTED::fileWatcherSerializer);
    }
}

For runtime examples, checkout this package.

> Please annotate your fields with com.electronwill.nightconfig.core.serde.annotations.SerdeDefault for basic compatibilities! Otherwise, serialization exceptions may happen casually.

Highlights

From source data

Game versions

Supports 12 Minecraft versions, the newest being 1.21.4.

Loaders

Runs on Fabric, NeoForge and Quilt.

Footprint

Rated a light load on a server.

What kind of mod it is

From the catalog
Listed on Modrinth as “Mods”

Quality of life & UI

Small conveniences, tweaks and interface improvements players notice straight away.

Works on a server

From source side support

Modrinth lists server-side support for Night Auto Config as optional: it can run on a server, but isn’t required there.

Compatibility

Game
Minecraft
Loaders
FabricNeoForgeQuilt
Runs on
Serveroptional on the server
Game versions
1.21.4 and 11 earlier

Verified at the source

  • ✓ModrinthOfficial listing, checked 2026-10-01Open ↗
  • ✓AuthorKrLite, as published on Modrinth
  • ✓LicenseGPL-3.0-onlyFree

Night Auto Config, answered

Generated from the mod’s own source data.

Do my players need to install Night Auto Config?

Modrinth lists server-side support for Night Auto Config as optional: it can run on a server, but isn’t required there.

Which loaders does it support?

Fabric, NeoForge and Quilt.

Is it free?

Yes. Night Auto Config is free to download from Modrinth. Its license is GPL-3.0-only.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run Night Auto Config on a Minecraft server.

Deploy in about a minute from $4.20 a month, then add Night Auto Config in one click.