Skip to content

Konfiguration & GUI-Integration (MC 26.1.2)

Dieses Dokument beschreibt das Konfigurationsdateischema, Cloth Config v2 GUI-Integration, ModMenu-Einstiegspunkte und Vorrangregeln für Item Clumps auf Minecraft 26.1.2.


📊 Konfigurations-Infobox

EigenschaftWert
Konfigurationsdateipfadconfig/item-clumps.json
DateiformatJSON (Gson-Serialisierung mit atomarer Tauschsicherheit)
Aktuelle SchemaversionconfigVersion: 1
Grafischer Oberflächen-ProviderCloth Config v2 über ModMenu
Vorrang-MandatKonfiguration setzt Standardwerte neuer Welten; aktive Welten nutzen GameRules

📄 JSON-Dateischema (config/item-clumps.json)

json
{
  "configVersion": 1,
  "enableClumping": true,
  "maxClumpSize": 9999,
  "renderLabels": true,
  "mergeRadius": 1
}

Felddefinitionen

JSON-SchlüsselTypStandardBeschreibung
configVersionInteger1Interner Schema-Migrationszähler.
enableClumpingBooleantrueAktiviert oder deaktiviert das Verschmelzen zu Mega-Stapeln.
maxClumpSizeInteger9999Feste Obergrenze für Items pro Stapel-Entität ($64\text{ bis }2.147.483.647$).
renderLabelsBooleantrueRendert schwebende Mengenschilder über Stapeln.
mergeRadiusInteger1Horizontaler Block-Suchradius ($1\text{ bis }10\text{ Blöcke}$).

🖥️ Grafische Benutzeroberfläche (Cloth Config & ModMenu)

Item Clumps integriert optionale clientseitige Konfigurationsmenüs über Cloth Config v2 und ModMenu:

java
// ModMenuIntegration.java (MC 26.1.2)
public class ModMenuIntegration implements ModMenuApi {
    @Override
    public ConfigScreenFactory<?> getModConfigScreenFactory() {
        if (net.fabricmc.loader.api.FabricLoader.getInstance().isModLoaded("cloth-config")) {
            return ClothConfigScreenHelper.createFactory();
        }
        return parent -> null;
    }
}

🔗 Verwandte Dokumentation (MC 26.1.2)

Official documentation & web portal for Dasik Igaijinn mods.