Skip to content

Configuration & GUI Integration (MC 26.2)

This document details the configuration file schema, YACL v3 GUI integration, ModMenu entrypoints, and world precedence rules for Item Clumps on Minecraft 26.2.


📊 Configuration Infobox

PropertyValue
Config File Pathconfig/item-clumps.json
File FormatJSON (Managed via DasikLibrary ConfigHelper)
Current Schema VersionconfigVersion: 1
Graphical Interface ProviderYetAnotherConfigLib v3 (YACL) via ModMenu
Classloading IsolationDeferred reflection (GuiHelper.getOptionalYaclFactory)
Precedence MandateConfig sets new world defaults; active worlds use GameRules

⚠️ The Global Config vs. Active World Precedence Rule

⚠️ IMPORTANT NOTICE: Modifying config/item-clumps.json or changing settings in the ModMenu GUI defines the baseline default values for newly created worlds. To configure settings for an active or existing world, use the in-game /gamerule command or the native Game Rules edit screen.


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

json
{
  "configVersion": 1,
  "enableClumping": true,
  "maxClumpSize": 9999,
  "renderLabels": true,
  "mergeRadius": 1,
  "labelMinCount": -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}$).
labelMinCountInteger-1Threshold before count label displays (-1 = vanilla max stack).

🖥️ Graphical Interface (YACL v3 & ModMenu)

Item Clumps integrates optional client-side configuration screens via YetAnotherConfigLib (YACL v3) and ModMenu:

+-------------------------------------------------------------------------+
|                       ITEM CLUMPS CONFIGURATION                         |
|                                                                         |
|  [ General Settings ]                                                   |
|                                                                         |
|  Enable Clumping ............................................ [ ON ]    |
|  When true, ground items aggressively merge into mega-stacks.          |
|                                                                         |
|  Max Clump Size ............................................. [ 9999 ]  |
|  The hard cap on items per entity. (Hidden if Stack Size Adjuster on)   |
|                                                                         |
|  Render Labels .............................................. [ ON ]    |
|  Renders holographic count above item clumps.                           |
|                                                                         |
|  Merge Radius ................................... [───●──────────] (1)  |
|  Horizontal block search radius (1-10 blocks).                          |
|                                                                         |
|  Label Min Count ............................................ [ -1 ]    |
|  Minimum item count before label displays (-1 for vanilla max stack).   |
|                                                                         |
|  [ Cancel ]                                            [ Save & Quit ]  |
+-------------------------------------------------------------------------+

Safe Deferred Classloading

To guarantee that the mod never crashes dedicated servers or clients that do not have YACL or ModMenu installed, screen instantiation is isolated behind GuiHelper.getOptionalYaclFactory:

java
// ModMenuIntegration.java (MC 26.2)
public class ModMenuIntegration implements ModMenuApi {
    @Override
    public ConfigScreenFactory<?> getModConfigScreenFactory() {
        return GuiHelper.getOptionalYaclFactory(
            "item_clumps",
            "net.instantgratification.item_clumps.config.YaclScreenHelper",
            "createScreen"
        );
    }
}

Official documentation & web portal for Dasik Igaijinn mods.