📦 Stack Size Adjuster
"Unshackle Your Inventory. Configurable Stack Limits with High-Performance Drop Protection & Dynamic Font Scaling."
📖 Introduction
Minecraft's standard 64-item stack ceiling was established over 15 years ago when the game had only a handful of blocks and crafting recipes. In modern survival, building large structures, massive terraforming projects, or sorting large storage rooms turns inventory management into a chore of dozens of chests and endless hauling trips.
Stack Size Adjuster solves the inventory bottleneck under the Instant Gratification design philosophy. It dynamically expands item stack limits server-wide across natural item categories (64-stack items, 16-stack items, and 1-stack items) with real-time network synchronization, client-side auto-scaling numbers, and container drop lag prevention.
[!NOTE] 1 Jar 1 Version Policy: I build 1 dedicated JAR for each Minecraft version (e.g. 1.20.1, 1.21.1, 1.21.11, 26.1.2, 26.2, 26.3+). Please download the exact build that matches your Minecraft installation.
Server & Client Architecture: Install on the server (or singleplayer world) to enable custom stack logic. Clients with the mod installed will benefit from dynamic font auto-scaling in inventory slots and instant GameRule sync!
Part of the Instant Gratification Collection — mods designed to streamline your gameplay and respect your time.
✨ Features
🚀 Category-Based Stack Expansion
- 64-Stack Items (Default: 128): Expands building blocks, ores, ingots, wood, and standard resources up to any integer limit.
- 16-Stack Items (Default: 32): Expands utility items that naturally cap at 16 (ender pearls, snowballs, buckets, signs, eggs) without breaking their identity.
- 1-Stack Items (Default: 1): Kept at 1 by default to ensure tools, weapons, and armor retain standard behavior. Server owners can uncap this category at any time if desired.
- Uncapped Freedom: Supports stack sizes up to 2,147,483,647 (Integer.MAX_VALUE), adhering to the Freedom Over Anti-Crash design principle.
🛡️ Container Drop Lag Protection
- Breaking a chest containing thousands of items in vanilla would normally spawn hundreds or thousands of individual item entities, creating severe TPS drops or client stutter.
- Cluster Drop System: Intelligently groups dropped items into a controlled number of item entities per inventory slot (governed by
max_drop_entities, default 8), preserving full item quantities while keeping server performance smooth.
🔤 Dynamic Inventory Font Scaling
- Numbers with 3, 4, or more digits (like 128, 999, or 9999) normally overflow outside the 16x16 inventory slot boundary.
- The client-side renderer calculates text width and dynamically scales down high-count numbers so they fit cleanly and legibly inside the item slot.
⚡ Real-Time Network Sync & Container Refresh
- Stack limits synchronize automatically via custom network payloads whenever a player joins or an admin changes GameRules.
- Open container and inventory screens immediately refresh with the updated limits without requiring a server reboot or player relog.
🧩 Addon Ecosystem Compatibility
- Built-in API hooks allow specialized companion mods to register dedicated per-item overrides:
- Potion Stacker Addon: Stacks drinkable, splash, and lingering potions, water bottles, and stews.
- Stew Stacker Addon: Stacks mushroom stews, rabbit soups, beetroot soups, and suspicious stews.
⚙️ Native GameRules & Configuration
Stack limits can be adjusted in real time using vanilla GameRules:
| GameRule Key | Type | Default | Valid Range | Description |
|---|---|---|---|---|
stack-size-adjuster:items_64_limit |
Integer |
128 |
1 – 2,147,483,647 |
Maximum stack size for items that naturally stack to 64. |
stack-size-adjuster:items_16_limit |
Integer |
32 |
1 – 2,147,483,647 |
Maximum stack size for items that naturally stack to 16. |
stack-size-adjuster:items_1_limit |
Integer |
1 |
1 – 2,147,483,647 |
Maximum stack size for items that naturally stack to 1. |
stack-size-adjuster:max_drop_entities |
Integer |
8 |
1 – 64 |
Maximum item entities spawned per slot when a container breaks. |
🖥️ In-Game Configuration Screen (ModMenu & YACL)
If ModMenu and YetAnotherConfigLib (YACL) are installed, you can configure these options directly from the client title screen or mods menu:
- Config file:
config/stack-size-adjuster.json(acts as baseline defaults for newly generated worlds).
☕ Support & Creator Community
I am an independent solo developer creating lightweight, vanilla-enhancing mods. If Stack Size Adjuster makes your survival experience more enjoyable, consider supporting future development:
[!TIP] 🇮🇩 Indonesian Local Payment Note: Indonesian supporters can support my work directly via Saweria or SocioBuzz using GoPay, OVO, Dana, QRIS, LinkAja!
Join my official Discord community for development updates, test builds, and feedback:
- 💬 Discord Community: https://discord.gg/EV99bgAFqb
📜 Metadata & Permissions
| Property | Value |
|---|---|
| Mod Name | Stack Size Adjuster |
| Namespace / Mod ID | stack-size-adjuster |
| License | GNU General Public License v3.0 (GPLv3) |
| Side Safety | Server & Client (Network Synchronized) |
| Required Dependencies | Fabric API, Dasik Library |
| Optional Dependencies | ModMenu, YetAnotherConfigLib (YACL) |
| Source Code | GitHub Repository |
| Issue Tracker | GitHub Issues |
[!IMPORTANT] 📦 Modpack Permissions & Distribution: You are fully welcome to include this mod in any modpack! The mod file must be downloaded directly through official distribution channels (Modrinth or CurseForge). Re-uploading or mirroring the JAR to third-party scraper sites or unauthorized launchers is strictly prohibited.
⚖️ License & Fork Guidelines (No Zero-Change Re-uploads): This project is open-source under the GNU GPLv3. You are free to inspect the code, learn from it, and fork it for genuine modifications or substantial feature additions under GPLv3 with proper attribution. Straight 1:1 re-uploads, clone forks without meaningful functional additions, or re-publishing identical builds under different project names are strictly forbidden.
Made with ❤️ for the Minecraft community
Part of the Instant Gratification Collection
How to Install IG: Stack Size Adjuster (Mod)
IG: Stack Size Adjuster by dasikigaijin is verified for Fabric across Minecraft versions 1.20.1, 1.21.1, 1.21.11, 26.1.2, 26.2, 26.3 (latest release: 1.4.19+26.2, file size: 920 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.20.1, 1.21.1, 1.21.11, 26.1.2, 26.2, 26.3) and platform (Fabric).
- Make sure you have the compatible loader or environment installed for Fabric.
- Move the downloaded IG: Stack Size Adjuster file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version- Conventional Item Tag Exemption** (
#c:stack_size_exempt): Added support for#c:stack_size_exemptconventional item tag. Modpack authors can tag items in datapacks/KubeJS to preserve their exact vanilla stack size limits without being modified by global category limits.
- Links & Resources**:
- [Issue Tracker](https://github.com/Rifaditya/Instant-Gratification-stack-size-adjuster/issues)
- [Source Code](https://github.com/Rifaditya/Instant-Gratification-stack-size-adjuster)
- [Wiki & Documentation](https://dasik-mc-studio.pages.dev/ig-stack-size-adjuster/)
- [Support on Ko-fi](https://ko-fi.com/dasikigaijin)
- [Discord Community](https://discord.gg/VSHP6mw4qY)
- Initial MC 26.1.2 Release.
- Parity with 1.4.19+26.2 feature set (
#c:stack_size_exemptconventional tag, soft-suggests item-clumps).
- Links & Resources**:
- [Issue Tracker](https://github.com/Rifaditya/Instant-Gratification-stack-size-adjuster/issues)
- [Source Code](https://github.com/Rifaditya/Instant-Gratification-stack-size-adjuster)
- [Wiki & Documentation](https://dasik-mc-studio.pages.dev/ig-stack-size-adjuster/)
- [Support on Ko-fi](https://ko-fi.com/dasikigaijin)
- [Discord Community](https://discord.gg/VSHP6mw4qY)
### Added
- Dasik Library Integration (DynamicGameRuleManager, SocialLinks).
- Links & Resources**:
- [Issue Tracker](https://github.com/Rifaditya/Instant-Gratification-stack-size-adjuster/issues)
- [Source Code](https://github.com/Rifaditya/Instant-Gratification-stack-size-adjuster)
- [Wiki & Documentation](https://dasik-mc-studio.pages.dev/ig-stack-size-adjuster/)
- [Support on Ko-fi](https://ko-fi.com/dasikigaijin)
- [Discord Community](https://discord.gg/VSHP6mw4qY)
### Added
- Dasik Library Integration (DynamicGameRuleManager, SocialLinks).
- Links & Resources**:
- [Issue Tracker](https://github.com/Rifaditya/Instant-Gratification-stack-size-adjuster/issues)
- [Source Code](https://github.com/Rifaditya/Instant-Gratification-stack-size-adjuster)
- [Wiki & Documentation](https://dasik-mc-studio.pages.dev/ig-stack-size-adjuster/)
- [Support on Ko-fi](https://ko-fi.com/dasikigaijin)
- [Discord Community](https://discord.gg/VSHP6mw4qY)
### Added
- Dasik Library Integration (DynamicGameRuleManager, SocialLinks).
- Links & Resources**:
- [Issue Tracker](https://github.com/Rifaditya/Instant-Gratification-stack-size-adjuster/issues)
- [Source Code](https://github.com/Rifaditya/Instant-Gratification-stack-size-adjuster)
- [Wiki & Documentation](https://dasik-mc-studio.pages.dev/ig-stack-size-adjuster/)
- [Support on Ko-fi](https://ko-fi.com/dasikigaijin)
- [Discord Community](https://discord.gg/VSHP6mw4qY)
### Added
- Initial MC 1.21.1 Release. Java 21 Loom 1.10.2 port with DataComponents unclamp and CustomPacketPayload networking.
- Links & Resources**:
- [Issue Tracker](https://github.com/Rifaditya/Instant-Gratification-stack-size-adjuster/issues)
- [Source Code](https://github.com/Rifaditya/Instant-Gratification-stack-size-adjuster)
- [Wiki & Documentation](https://dasik-mc-studio.pages.dev/ig-stack-size-adjuster/)
- [Support on Ko-fi](https://ko-fi.com/dasikigaijin)
- [Discord Community](https://discord.gg/VSHP6mw4qY)
### Added
- Initial MC 1.20.1 Release. Java 17 Ground-zero port with Item/ItemStack getMaxStackSize injection and PacketByteBuf networking.
- Links & Resources**:
- [Issue Tracker](https://github.com/Rifaditya/Instant-Gratification-stack-size-adjuster/issues)
- [Source Code](https://github.com/Rifaditya/Instant-Gratification-stack-size-adjuster)
- [Wiki & Documentation](https://dasik-mc-studio.pages.dev/ig-stack-size-adjuster/)
- [Support on Ko-fi](https://ko-fi.com/dasikigaijin)
- [Discord Community](https://discord.gg/VSHP6mw4qY)
### Added
- Initial MC 1.21.11 Release. Ground-zero port with DataComponents MAX_STACK_SIZE unclamp, StreamCodec networking, and compact count rendering.
- Links & Resources**:
- [Issue Tracker](https://github.com/Rifaditya/Instant-Gratification-stack-size-adjuster/issues)
- [Source Code](https://github.com/Rifaditya/Instant-Gratification-stack-size-adjuster)
- [Wiki & Documentation](https://dasik-mc-studio.pages.dev/ig-stack-size-adjuster/)
- [Support on Ko-fi](https://ko-fi.com/dasikigaijin)
- [Discord Community](https://discord.gg/VSHP6mw4qY)
### Changed
- Initial Minecraft 26.3 Release.
- Ported Stack Size Adjuster to Minecraft 26.3 snapshot-6, targeting Fabric Loader 0.19.3, Fabric API 0.156.1+26.3, and DasikLibrary 1.8.39.
### Fixed
- OutOfMemory & Negative Stack Size Infinite Loop Fix**: Updated
StackSizeManager.getModifiedStackSizeto ignore negative returns from legacyBiFunctionoverrides and added a fail-safe guard ensuringgetModifiedStackSizeNEVER returns<= 0. Resolves an infinite loop inLootTable.createStackSplitterduring mob drops and chicken egg-laying (Chicken.aiStep) when addons returned-1for unhandled items.
## [1.4.17+26.2] - 2026-08-10
### Fixed
- Addon Override Resolution**: Added
@FunctionalInterface CustomStackSizeOverrideinStackSizeManager. Returning a non-negative stack size (>= 0) explicitly sets the item's stack size (e.g. forStew Stacker AddonorPotion Stacker Addon), bypassing general category fallbacks (limit1,limit16,limit64) even when the custom stack limit matches vanilla original stack size.
### Fixed
- Fixed player inventory and shulker box saving issues where items above count 99 were rejected or could disappear during world autosave. Added redirects to bypass the strict
[1;99]validation ranges insideDataComponents.max_stack_sizeandItemStackTemplate(used by bundles).
### Added
- Added forced client-side inventory and container screen refresh when stack size limits change on the server, eliminating the need to relog.
### Added
- Added dynamic tooltip warning in the YACL GUI that triggers when any stack size limit is set above 1,000,000,000 (1 billion). The tooltip dynamically questions: *"Do you really want to set the value to [number]?"* and warns of integer overflow risks, while still allowing the player to enter it if they choose.
### Fixed
- Fixed stack count numbers overlapping in the inventory by dynamically scaling the text scale down for count values that exceed 2 digits (> 99).
### Fixed
- Resolved the inventory slot cap of 99 by overriding default
getMaxStackSize()insideContainerinterface and redirectingItemStack's count codec range validation from1-99to1-Integer.MAX_VALUE.