Skip to content

Minecraft 1.21 కోసం Night Auto Config మోడ్

అన్నింటినీ సీరియలైజ్ చేయండి! Auto Config కోసం Night Config ఇంటిగ్రేషన్.

నుండి KrLite · CurseForge
వ్యూలు
14 వ్యూలు
అప్‌డేట్ చేయబడింది
అప్‌డేట్ చేయబడింది 18.10.2026

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 { modAi("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.

Night Auto Config ఎలా ఇన్‌స్టాల్ చేయాలి

With Millida Launcher

  1. Install Millida Launcher

    The launcher is free: download it at millida.net/launcher and sign in with any nickname.

  2. Click “Install” on this page

    The launcher opens and installs the mod for Minecraft 1.21 on Fabric, NeoForge or Quilt automatically.

  3. Launch the game

    A profile with it appears in the launcher: click “Play”.

Manually

  1. Install Fabric, NeoForge or Quilt

    The loader must match the game version of the mod file, for example Minecraft 1.21. After installing it, a separate profile appears in your launcher.

  2. Download the file for your version

    In the version list above, pick the file nightautoconfig-1.1.0-alpha.4-neoforge.1.21.1.jar (444 KB) for your game version and loader.

  3. Put it in the mods folder

    The folder is inside .minecraft (Windows: %appdata%\.minecraft\mods). If it does not exist, create it.

  4. Launch the loader profile

    Open “Mods” in the main menu: Night Auto Config should be in the list.

Minecraft 1.21 runs on Java 21: with a different Java version the game may close right after launch.

వెర్షన్లు

డిపెండెన్సీలతో

Minecraftలోడర్ఫైల్తేదీచర్యలు
1.21NeoForgeNight Auto Config 1.1.0-alpha.4 for NeoForge 1.21+444 KB
1.21Fabric, QuiltNight Auto Config 1.0.6 for Fabric 1.21+444 KB

సమీక్షలు

Night Auto Configకు మొదటి రేటింగ్ ఇవ్వండి

కామెంట్‌లు 0

వ్యాఖ్య చేయడానికి సైన్ ఇన్ చేయండిసైన్ ఇన్

సమానమైన మోడ్‌లు

అన్ని మోడ్‌లు

దీనిపై మరింత