What does Stackfinity do?
Stackfinity allows admins to adjust the maximum stack size for individual items or entire item groups. This lets you flexibly shape your server balancing, economy, and gameplay.
Features
- Individual stack sizes for single items
- Support for item groups via patterns (Regex)
- Simple in-game command for direct adjustment
- Changes are applied immediately
- Automatic saving of all changes
- Secure input with validation of invalid values
Important Notes
- Item ID must match the registered name exactly.
- After changes, a server restart is recommended to ensure clean synchronization of all inventories.
The 3 Variants at a Glance
There are three ways to configure stack sizes:
| Variant | Timing | Method | Permanently Saved |
|---|---|---|---|
Individual Items (ItemIds) |
On server start | Edit configuration file | Yes |
Item Groups (Patterns) |
On server start | Regex pattern in configuration file | Yes |
| In-game Command | While server is running | /stacksize item_id amount |
Yes |
1. Individual Items via ItemIds
Set fixed stack sizes for specific items:
{
"ItemIds": {
"iron_ingot": 64,
"diamond": 16,
"emerald": 32
}
}
2. Multiple Items via Patterns
Use regex patterns to adjust entire item groups at once. This is especially useful when many similar items should have the same stack size.
Instead of listing each item individually, you can capture multiple matching items with a single pattern.
{
"Patterns": {
".*_ore": 64,
".*_ingot": 32,
".*_gem": 16
}
}
Pattern Examples
| Pattern | Description |
|---|---|
.*_ore |
All items ending in _ore, e.g., iron_ore, gold_ore, or diamond_ore |
.*_ingot |
All items ending in _ingot, e.g., iron_ingot, gold_ingot, or copper_ingot |
sword_.* |
All items starting with sword_ |
.*_block |
All items ending in _block |
3. Runtime Changes
Adjust stack sizes directly during server operation:
/stacksize iron_ingot 64
/stacksize diamond 16
Changes are applied immediately and automatically saved to the configuration file.
Command
Use the following command to change the stack size of an item:
/stacksize item_id amount
Examples
/stacksize iron_ingot 64
/stacksize diamond 16
/stacksize dirt 32
item_idis the ID of the item.amountis the new maximum stack size and must be a positive integer.
Who is Stackfinity suitable for?
Stackfinity is perfect for server admins who want to quickly and easily customize their gameplay.
Typical use cases:
- Economy servers for controlling item values
- Survival servers for more or less challenge
- RPG servers with custom inventory rules
- Modpacks with customized resource management
- Custom servers with custom balancing