A lightweight server-side mod that generates a config with all items (vanilla + modded) and lets you set the max stack size per item. Works in singleplayer (integrated server) and on dedicated servers.
config/stackmanager_items.json with every registered item./stackmanager reload — reload the config and append any missing items.
/stackmanager set <id> <value> — set a new limit (clamped to 99).
/stackmanager set <id> default — restore the game/mod default (clamped to 99).
Without Fabric API the mod still works; edit the file and restart (or reload using your preferred method).
Path: config/stackmanager_items.json
{
"formatVersion": 1,
"items": {
"minecraft:acacia_button": 64,
"minecraft:oak_planks": 99
}
}
namespace:item).stackmanager_items.json(VS Code / most editors; Windows/Linux = Ctrl, macOS = Cmd unless noted)
Shift+Alt+F (Win/Linux) · Shift+Option+F (macOS)Ctrl+F / Ctrl+H · Cmd+F / Cmd+Alt+FCtrl+D · Cmd+DCtrl+G · Cmd+GCtrl+W (word) / Ctrl+L (line) · Option+Shift+→/← or Cmd+L (macOS)Tips
Ctrl+H to mass-edit values./stackmanager reload (if commands available) or restart the world/server to apply changes.Fabric API: optional but recommended for better experience (enables /stackmanager commands and smoother reloading).
minecraft:potion: 16minecraft:splash_potion: 16minecraft:lingering_potion: 8–16Benefit: fewer inventory trips during raids, mining, and boss fights.
Note: Potions carry NBT (effect type). Only identical potions stack.
firework_rocket 64–99.arrow 99; snowballs/eggs 64–99 for events/minigames.How do I find an item ID?
Enable advanced tooltips with F3 + H, then hover the item: you’ll see namespace:item.
Can I set 9999?
No. For network safety the effective cap is 99.
Singleplayer or server?
Both. In singleplayer, drop the mod into mods/. On a dedicated server, only the server needs the mod.