GlymeraMegaChest

Owner-only mass-storage chest with 1080 slots holding up to 1M items each (~1 billion total). Paginated UI, search. One-click Deposit Inventory. Crafted at the Alchemybench.

File Details

GlymeraMegaChest-2.0.0.jar

  • R
  • May 1, 2026
  • 59.04 KB
  • 46
  • Early Access

File Name

GlymeraMegaChest-2.0.0.jar

Supported Versions

  • Early Access

GlymeraMegaChest - Changelog

v2.0.0 (2026-05-01)

New Features

  • Deposit Manager sub-page — clicking the "Deposit Inventory" button no longer dumps your whole inventory into the chest at once. It now opens a dedicated picker page where you can:
    • Click any individual slot in your Storage (or Backpack, if you have unlocked capacity) to deposit just that one stack.
    • Use the bulk buttons Deposit Storage / Deposit Backpack / Deposit All to mass-deposit a single section or everything at once.
    • Hit Back to return to the chest's main view.
  • Hotbar is still never deposited, even on "Deposit All". Equipped tools, weapons, and quick-access items stay where they are.

Why

Customer feedback (CurseForge): with the old all-or-nothing button, players had to either empty out items they wanted to keep before opening the chest, or fish them back out of the chest afterwards. The new picker makes selective deposits a one-click operation while keeping the existing one-button bulk-deposit available for the common case.

Technical Details

  • New page class MegaChestDepositPage extending InteractiveCustomUIPage<DepositEventData>. Opened by the existing "Deposit Inventory" button on MegaChestPage instead of running the deposit immediately.
  • New UI asset Common/UI/Custom/Pages/MegaChestDepositPage.ui — two slot grids (#StorageGrid, #BackpackGrid) plus three bulk buttons and a back button. Slots reuse the existing MegaChestSlot.ui template, including durability percentage display.
  • Backpack section is rendered only if Inventory.getBackpack().getCapacity() > 0; otherwise a "none unlocked" hint is shown.
  • depositPlayerBackpack(...) was split into:
    • depositContainers(chest, player, includeStorage, includeBackpack) — bulk path, walks one or both containers.
    • depositSlot(chest, player, containerId, slotIndex) — single-slot path used by per-slot clicks.
    • Both reuse the internal depositOneSlotInternal(chest, container, slot) helper, which is the only place that actually moves items and rolls back the chest add if the inventory removal fails (anti-dupe).
  • New codec DepositEventData (Action / Container / Slot) for the sub-page event traffic. Container is a string id ("storage" or "backpack"); the live ItemContainer is resolved server-side at handle time, never sent through the codec.

v1.0.0 (2026-04-25)

Initial release.

  • Paginated mass-storage chest: 108 slots × 10 pages = 1080 slots, default 999,999 items per slot (≈ 1 billion items total per chest).
  • Custom UI page with search (powered by CompactTextField with prefix-stripping for friendly terms), page navigation, Deposit Inventory button, and per-slot click-to-take (left-click = 100, right-click = 4500 = a full empty inventory).
  • Auto-sort on UI close (alphabetical by item id, with stack merging).
  • Owner-only 3-layer protection (DamageBlock + BreakBlock + UseBlock cancellations).
  • Drop-safe block (Material: Solid, no Support, DropList: Empty, markDeco) — never dropped by physics changes.
  • Block lock when non-empty: a non-empty chest refuses to be broken; only an empty chest returns the chest item to the owner.
  • Crafting at the Alchemybench from 1× Furniture_Royal_Magic_Chest_Small + 2× Ingredient_Life_Essence_Concentrated. Toggle via craftingEnabled in the config.
  • Compact quantity display for big stacks (12K, 3.5M, 1.2B) and per-slot durability percentage with green/yellow/red color tiers.
  • Persistence: one JSON file per chest under plugins/GlymeraMegaChest/chests/.

Commands

  • /megachest give — give yourself a Mega Chest item (OP only)
  • /megachest reload — reload config.json (OP only)