Raise the maximum stack size of every stackable item to anything you want, up to 1,000,000.
Works on modded items automatically. The mod raises the limit on the Item class itself — the same path vanilla and every mod already go through — so it does not need to know anything about the mods you have installed, and ships no compatibility patches for individual mods.
Fabric API is not required. The mod has no dependencies at all.
Install it on both the client and the server. Vanilla stores an item count in a single byte (max 127), and this mod widens that in both save files and network packets. A client without the mod cannot display or send large stacks correctly.
1.2k / 340k / 1.0M over the item, with the exact number in the tooltip./megastacks selftest verifies every patch in a live game, so you can confirm the mod still works after dropping it into a large pack.config/megastacks.json is created on first launch.
| Option | Default | Description |
|---|---|---|
defaultMaxStackSize |
1000000 |
Limit for every stackable item (1–1,000,000) |
applyToSmallStacks |
true |
Also raise items with vanilla limits of less than 64 (ender pearls, snowballs, eggs, signs) |
abbreviateCountInGui |
true |
Draw 1.0M instead of an unreadable 1000000 over the slot |
showExactCountInTooltip |
true |
Add an exact, grouped count line to the tooltip |
overrides |
{} |
Per-item limits |
"overrides": {
"minecraft:ender_pearl": 4096,
"create:*": 100000,
"*:*_bucket": 64
}
status, held, and overrides are open to everyone. The rest need permission level 2.
/megastacks status — current limit and how many overrides are active/megastacks held — the limit of the item you are holding, plus its vanilla limit/megastacks default <1-1000000> — set the global limit/megastacks set <item> <size> — set a limit for one item/megastacks clear <item> — remove an override/megastacks overrides — list overrides/megastacks reload — reload the config file/megastacks selftest — verify the mod is workingItem.maxCount, so any mod calling getMaxCount() sees the new value with no overhead. Items that override getMaxCount() themselves are handled separately.Count tag becomes an int only when a stack holds more than 127 items. Normal stacks are written byte for byte the same as vanilla./item replace — its count argument is no longer capped at 64.Inventory and Slot, will keep its own limit of 64.All Rights Reserved