Download YAML Config — Minecraft Mods — MetaMods

YAML Config

Active

Downloads

0

Last update

3 months ago

Versions

1.21 — 1.21.5
Client and server
Fabric
Neoforge
Libraries
Control
Utils

YAML Config

Mod Overview

YAML Config is an advanced configuration solution for Minecraft mods that enables developers to create and manage configuration files in YAML format. The mod offers an intuitive graphical interface, extensive support for various data types, and reliable client-server synchronization.

Key Features

The mod supports multiple data types, including basic primitives (boolean values, integers, floating-point numbers, strings), collections (lists and maps), as well as date and time. All configuration changes are automatically synchronized between the server and clients, ensuring gameplay consistency.

Developers can create three types of configurations: client-side (for local player only), server-side (for dedicated server only), and common (shared between client and server). The mod integrates well with existing modpacks and offers a flexible validation and error handling system.

Usage

To access settings, simply press the F12 key, which will open the configurations screen. Here you can select the desired mod, edit its parameters through convenient input fields, and save changes. Each setting includes a name, input field for the value, and a reset button to default values.

Code Example for Developers

public class MyModConfig {
    public static IConfig config;
    public static IConfigEntry debug;

    public static void init() {
        ConfigBuilder builder = new ConfigBuilder(MyMod.MOD_ID, "mymod-config", ConfigExtension.YAML, ConfigType.CLIENT);
        debug = builder.defineBoolean("debug", false);
        config = builder.build();
    }
}

Developers can define settings of various types using ConfigBuilder methods, set value range limitations, and add comments to explain the purpose of each option.

Project members
DAQEM

DAQEM

Developer

Created: 29 Oct 2024

ID: 62995