Skip to content

Configuration & GUI Integration (MC 26.1.2)

This document details the configuration file schema, Cloth Config v2 GUI integration, ModMenu entrypoints, and world precedence rules for Item Clumps on Minecraft 26.1.2.


📊 Configuration Infobox

PropertyValue
Config File Pathconfig/item-clumps.json
File FormatJSON (Gson serialization with atomic swap safety)
Current Schema VersionconfigVersion: 1
Graphical Interface ProviderCloth Config v2 via ModMenu
Precedence MandateConfig sets new world defaults; active worlds use GameRules

📄 JSON File Schema (config/item-clumps.json)

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

Field Definitions

JSON KeyTypeDefaultDescription
configVersionInteger1Internal schema migration tracker.
enableClumpingBooleantrueEnables or disables mega-stack item merging.
maxClumpSizeInteger9999Hard cap on items per clump entity ($64\text{ to }2,147,483,647$).
renderLabelsBooleantrueRenders floating custom name tag counts above clumps.
mergeRadiusInteger1Horizontal block search radius ($1\text{ to }10\text{ blocks}$).

🖥️ Graphical Interface (Cloth Config & ModMenu)

Item Clumps integrates optional client-side configuration screens via Cloth Config v2 and 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;
    }
}

Official documentation & web portal for Dasik Igaijinn mods.