Skip to content

⚙️ Configuration & GameRules Dynamiques (Minecraft 26.2) ​

📌 Avertissement sur la source du dépôt : La documentation de ce wiki reflète l'état actuel du code source dans le dépôt, qui peut inclure des commits non publiés ou des fonctionnalités en cours de développement en avance sur CurseForge et Modrinth.

1. Official Infobox ​

ParameterTechnical Details
Subsystem NameConfiguration & Dynamic GameRule System
Config File.minecraft/config/potion-stacker.json
Config Version1 (public static final int VERSION = 1;)
Config ManagerPotionStackerConfig.java (backed by ConfigHelper)
GUI ProviderYetAnotherConfigLib v3 (YaclScreenHelper.java)
ModMenu BridgeModMenuIntegration.java (GuiHelper.getOptionalYaclFactory)
GameRule Categorypotion-stacker-addon:potion-stacker-addon
Player Freedom Range$1 \dots 2{,}147{,}483{,}647$ (Integer.MAX_VALUE)
Warning ThresholdValues $> 39{,}768{,}215$ trigger safe ceiling warning

2. Step-by-Step Player & Administrator Workflow ​

  1. Editing Global Defaults (Title Screen):

    • Navigate to Mods -> Potion Stacker Addon -> Configure (or click the gear icon).
    • The YACL interface allows configuring Potion Limit and Stew & Soup Limit.
    • Global configuration changes saved here define the initial default GameRules for newly created worlds.
  2. Configuring Active Worlds via Commands:

    • To change limits in an existing singleplayer world or dedicated server, run: /gamerule potion-stacker-addon:potion_limit <value>/gamerule potion-stacker-addon:stew_limit <value>
    • Changes apply immediately without server restart.
  3. In-Game GameRules GUI:

    • When creating or editing a world, click Edit Game Rules.
    • Scroll to the Potion Stacker Addon category.
    • Mutate values directly with full integer validation.

3. Mathematical Formulas & Range Governance ​

The Player Agency & Anti-Nanny Invariant ​

$$D = { x \in \mathbb{Z} \mid 1 \le x \le 2^{31}-1 }$$

Large Chest Capacity & Integer Overflow Math ​

$$S_{\text{safe}} = \left\lfloor \frac{2^{31}-1}{54} \right\rfloor = 39{,}768{,}215$$


4. JSON Configuration Schema ​

File Location: .minecraft/config/potion-stacker.json ​

json
{
  "configVersion": 1,
  "potionLimit": 16,
  "stewLimit": 16
}

5. Exhaustive Reference Matrix ​

IdentifierTypeDefaultRangeIn-Game Command
potion-stacker-addon:potion_limitInteger16$1 \dots 2{,}147{,}483{,}647$/gamerule potion-stacker-addon:potion_limit <int>
potion-stacker-addon:stew_limitInteger16$1 \dots 2{,}147{,}483{,}647$/gamerule potion-stacker-addon:stew_limit <int>

6. Navigation Globale ​

Official documentation & web portal for Dasik Igaijinn mods.