MaxStacks
Take full control of item stack sizes in Minecraft.
Are you tired of inventory management taking up half your playtime? Do chests fill up too fast even with shulker boxes? MaxStacks lets you set the maximum stack size for every item in the game — vanilla, modded, or both — with a single config value.
Features
- IMPORTANT NOTE — /give command delivers items in stacks of up to 99 (vanilla limitation). double click a stack and they'll merge up instantly. (may be fixed in a future patch)
-
Universal Stack Override — Change the max stack size of ALL items to any value between 1 and 9,999
-
Toggle Vanilla Items — Enable or disable stacking changes for Minecraft's own items
-
Toggle Modded Items — Enable or disable stacking changes for items added by other mods
-
Debug Mode — Optional console logging to see exactly what's being modified
-
Server-Side Config — Config lives on the server; clients don't need to touch anything
-
Zero Dependencies — Works out of the box with just Forge
-
Lightweight — Single mixin, minimal performance impact
How It Works
-
Install the mod on your server (or singleplayer world)
-
Launch the game once to generate the config file
-
Open
config/maxstacks-server.toml -
Set your desired
maxStackSize(default: 999) -
Restart the world — done!
All stackable items will now respect your new limit.
Configuration Options
Configuration
After the first run, a config file is created at config/maxstacks-server.toml. Edit it and reload your world to apply changes instantly.
| Option | Type | Default | Description |
|---|---|---|---|
maxStackSize |
int (1‑9999) | 999 | Maximum stack size for all affected items |
affectVanilla |
boolean | true | Apply to vanilla Minecraft items |
affectModded |
boolean | true | Apply to items from other mods |
affectUnstackable |
boolean | false | Also make unstackable items (swords, tools, etc.) stackable |
debugLog |
boolean | false | Print stack override info to the game log |
FAQ
Does this work on servers?
Yes! The config is server-side only. Players don't need the mod installed — only the server does.
Will this break my game?
No. You can safely change the config at any time. Items in existing inventories will update on world reload.
Does this work with other mods?
Yes, it works with any mod that uses Minecraft's standard item system. You can toggle affectModded off if you want to exclude modded items.
Can I set different stack sizes for different items?
Not yet, but per-item configuration is planned for a future update!
Is this compatible with Fabric?
Currently Forge only. A Fabric port may come in the future.
Compatibility
-
Minecraft: 1.21.11
-
Forge: 61.1.0 or newer
-
Other Mods: Compatible with everything that uses standard
Item.Properties
Installation
-
Download the JAR file
-
Place it in your
modsfolder -
Launch Minecraft with Forge
-
That's it!

