
Data Driven Stack Sizes
Override default `max_stack_size`s using data-driven item tags (Data Not Included).Increase the maximum value of the max-stack-size data component for 99 to 2048. Dev on all my projects will be paused for the duration of the BDS boycott against Microsoft.
Screenshots



About this Mod
This mod changes the max_stack_size data component's behavior, allowing for stacks larger than 99 (upto 2048).
It also automatically changes how a stack's max_stack_size component behaves when it is checked, allowing for data-driven stack-sizes where changing how much an item stacks to is as simple as adding it to that value's .json file.
For a example of what the mod can do, see Data Driven Stacks Example Datapack
Available Versions
How to Install Data Driven Stack Sizes on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set fabric Loader
In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.4).
Install Mod
Open the mod browser in the dashboard and search for "Data Driven Stack Sizes". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.21.4, 1.21
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
Data Driven Stack Sizes server crashes on startup – what to do?
Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.4). You can switch loaders with one click in the panel.
Is Data Driven Stack Sizes compatible with fabric?
Data Driven Stack Sizes officially supports fabric for Minecraft 1.21.4, 1.21. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with Data Driven Stack Sizes – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Data Driven Stack Sizes consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install Data Driven Stack Sizes with just one click on your server.
Details
- License
- Creative Commons Attribution Non Commercial Share Alike 4.0 International
- Server-side
- Required