Skip to content

🧪 Penumpukan Ramuan & Ergonomi Inventaris (Minecraft 26.3) ​

📌 Pernyataan Sumber Repositori: Dokumentasi dalam Wiki ini mencerminkan status kode sumber saat ini di repositori, yang mungkin mencakup komit terbaru yang belum dirilis atau fitur dalam tahap pengembangan mendahului build rilis publik di CurseForge dan Modrinth.

1. Official Infobox ​

ParameterTechnical Details
Subsystem NamePotion Stacking & Inventory Ergonomics Engine
Implementation ClassPotionStackerManager.java (getModifiedStackSize)
Registration InterfaceCustomStackSizeOverride (Stack Size Adjuster API)
Target Item TypesPotionItem (Regular, Splash, Lingering, Water Bottles)
Secondary Fallback ItemsMUSHROOM_STEW, RABBIT_STEW, BEETROOT_SOUP, SUSPICIOUS_STEW
Controlling GameRulepotion-stacker-addon:potion_limit (Default: 16)
Secondary GameRulepotion-stacker-addon:stew_limit (Default: 16)
Upper Bound LimitInteger.MAX_VALUE (2,147,483,647)
Recommended Safe Ceiling39,768,215 (prevents Large Chest 32-bit integer overflow)

2. Step-by-Step Player Survival Workflow ​

  1. Brewing Potions at the Brewing Stand: Place blaze powder into the fuel slot. Insert three water bottles or awkward potions into the bottom three brewing slots. When shift-clicking from a stack of bottles in your inventory, exactly 1 bottle enters each empty slot, while the rest remains stacked in your hand or inventory.

  2. Collecting Brewed Potions: When brewing finishes, shift-click the finished potions into your inventory. Identical potions (matching effects, duration, and potency) automatically merge into single item stacks up to the active potionLimit (default: 16).

  3. Drinking & Throwing Potions in Combat:

    • Regular Potions: Drinking a stacked potion consumes 1 potion from the stack and immediately places an empty glass bottle into the player's inventory (or drops it if full).
    • Splash & Lingering Potions: Right-clicking hurls 1 projectile and decrements the stack count by 1. Rapid throwing from hotbar is smooth and frictionless.
  4. Inventory & Storage Management: Chest and barrel slots hold full stacks. A single standard Chest (27 slots) holding stacks of 16 stores 432 potions, compared to only 27 potions in vanilla Minecraft.


3. Mathematical Formulas & Storage Density ​

Storage Compression Multiplier ($C$) ​

The inventory compression ratio achieved relative to vanilla unstackable potions ($S_{\text{vanilla}} = 1$) is: $$C = \frac{S_{\text{limit}}}{S_{\text{vanilla}}} = S_{\text{limit}}$$

For default settings ($S_{\text{limit}} = 16$): $$C = 16\times \text{ more potions per inventory slot}$$

Container Storage Capacities ​

$$\text{Capacity}{\text{chest}} = 27 \times S{\text{limit}}$$ $$\text{Capacity}{\text{double_chest}} = 54 \times S{\text{limit}}$$ $$\text{Capacity}{\text{player_inventory}} = 36 \times S{\text{limit}}$$

Container TypeSlotsVanilla Capacity ($S=1$)Modded Default ($S=16$)Storage Gain
Player Hotbar99 potions144 potions$+135$ potions
Main Inventory2727 potions432 potions$+405$ potions
Single Chest / Barrel2727 potions432 potions$+405$ potions
Large Double Chest5454 potions864 potions$+810$ potions
Shulker Box2727 potions432 potions$+405$ potions

The 32-Bit Integer Safe Ceiling ($S_{\text{safe}}$) ​

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


4. Visual ASCII Diagrams & State Machine ​

       [ Item Stack Size Query: getModifiedStackSize(item, original) ]
                                     |
                                     v
                             Is original <= 0?
                            /                 \
                          YES                  NO
                          /                     \
                    Return original        Is item instanceof PotionItem?
                                           /                            \
                                         YES                             NO
                                         /                                \
                               Return potionLimit                Is item stew/soup?
                                 (Default: 16)                   /                 \
                                                               YES                  NO
                                                               /                     \
                                                Is stew-stacker-addon loaded?     Return -1
                                                       /                 \      (Vanilla/fallback)
                                                     YES                  NO
                                                     /                     \
                                                 Return -1           Return stewLimit
                                            (Defer to sibling)         (Default: 16)

5. Tautan Global & Eksternal ​

Official documentation & web portal for Dasik Igaijinn mods.