CurseForge · Minecraft mod
MegaStacks
Raise the maximum stack size of every stackable item to anything you want, up to 1,000,000.
Quick answer
Which MegaStacks release should I use?
MegaStacks MEGA STACKS targets 1.20.1 with Fabric, Forge, NeoForge. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.
Where it goes
Is MegaStacks required on the client, server, or both?
The project page does not say whether this file belongs on the client, dedicated server, or both.
The source does not explicitly classify this release as client-only or server-only.
What else does MegaStacks MEGA STACKS need?
MEGA STACKS. Change the file and its required mods may change too.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add MegaStacks without breaking your instance.
Built for MegaStacks MEGA STACKS. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use MEGA STACKS. It targets 1.20.1 with Fabric, Forge, NeoForge; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 03
Put it on the correct side
The project page does not say whether this file belongs on the client, dedicated server, or both.
- 04
Pick the file you checked
Use the “Get this file” button beside MEGA STACKS. It opens that exact file at the source.
About this project
What does MegaStacks add?
Mega Stacks
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.
Requirements
- Minecraft 1.20.1
- Fabric Loader 0.14 or newer
- Java 17
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.
Features
- Any stack size up to 1,000,000, set globally or per item.
- Wildcard rules — give every item from one mod its own limit with a single line.
- In-game commands — change limits without restarting; changes save to disk and sync to players.
- Server authority — the server pushes its limits to joining clients, so both sides always agree.
- Readable slots — counts are shortened to
1.2k/340k/1.0Mover the item, with the exact number in the tooltip. - Built-in self test —
/megastacks selftestverifies every patch in a live game, so you can confirm the mod still works after dropping it into a large pack.
Configuration
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 |
Per-item overrides
"overrides": {
"minecraft:ender_pearl": 4096,
"create:*": 100000,
"*:*_bucket": 64
}
Commands
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 working
What the mod changes
- Stack limit — written straight into
Item.maxCount, so any mod callinggetMaxCount()sees the new value with no overhead. Items that overridegetMaxCount()themselves are handled separately. - Save files — the
Counttag becomes an int only when a stack holds more than 127 items. Normal stacks are written byte for byte the same as vanilla. - Networking — the vanilla count byte stays exactly where it is; the overflow rides along in the NBT that is already being sent, and is stripped the moment the stack is read. Packets for stacks of 127 or fewer items are byte for byte identical to vanilla.
- Inventories and slots — the hardcoded cap of 64 is lifted. Slots that deliberately ask for something else (a lectern holding one book) are left alone.
- Creative mode — the server-side limit of 64 items per creative slot edit is lifted.
/item replace— its count argument is no longer capped at 64.- Dropped items — a large stack drops as one entity instead of being split into tens of thousands of them, which would stall the server.
- Items merging on the ground — uses the item's own limit instead of a hardcoded 64.
- Bundles — keep their vanilla capacity of 64. Without this, vanilla divides by zero and crashes.
Known limitations
- Items that do not stack in vanilla — tools, armour, potions — stay at 1. Stacking things that carry durability and enchantments breaks more than it fixes.
- If you remove the mod, stacks larger than 127 in existing worlds will be corrupted. Normal stacks are unaffected.
- A mod that computes slot capacity in its own code, bypassing
InventoryandSlot, will keep its own limit of 64.
License
All Rights Reserved
Project description from CurseForge.
Pick your setup
MegaStacks by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
Check the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
MegaStacks versions and loaders
MEGA STACKS
megastacks-1.20.1-1.0.0.jar
8 Aug 2026
Looking for an older file? The official CurseForge project page is in Resources.