
StackFix
StackFix is a bug fix mad, that fixes item stacking by removing empty NBT data from items, ensuring items stack correctly without breaking GUIs from other...
00—fabricServer1.20.1mod
StackFix
- Server-only Fabric mod for Minecraft 1.20.1 that strips empty root NBT from item stacks so identical items stack again without breaking modded GUIs or multiplayer sync.
- Cleans stacks when they are deserialized, before combination checks, and through periodic sweeps of player inventories, ender chests, open containers, and loaded item entities; player inventories are marked dirty and open screens get content updates after a cleanup.
- Empty tags are cleared by directly nulling the raw NBT field on ItemStack after verifying the compound is truly empty, leaving any real data untouched while keeping vanilla creation logic intact.
Usage Notes
- Drop the jar into the server
modsfolder; no configuration needed. Clients can remain vanilla. - Requires Fabric Loader 0.15.6+ alongside Fabric API for 1.20.1.
Limitations / Ideas
- Only removes empty root compounds; nested empty compounds remain untouched.
- Automated block setups that never involve players may accumulate empty tags until an item is picked up, moved by a player, or loaded as an item entity.
Server Validation
✅ Server validation passed - The mod was tested on a real Minecraft server and loaded successfully.