Stack to Nearby Chests
by xiaocihua
Stack to Nearby Chests brings Terraria-style quick stacking and restocking to containers within reach, and runs on the client alone.
What it does
Quick stack moves every item in the player's inventory that matches something already held in an open container into that container. Restock works the other way, topping up stackable items in the inventory with stock taken from the container. Both actions can be extended to every openable container within the player's reach, so one click can sort a whole storage area.
Only the client needs the mod, so servers run without it and players join without installing anything extra. It requires Fabric API, and Mod Menu is optional for opening its settings from the mods list. The code that loops over nearby containers is adapted from the clientcommands mod. The code is under the GNU Lesser General Public License v3.0 only, and the project is open source, with its source code and issue tracker public. Files target Fabric for 1.18.2 – 26.2, with 28 release versions in that range and 0.5.19 as the latest build for 26.2.
Key features
Quick stack
Items already present in the open container are topped up from the player's inventory with one action.
Restock
Stackable items in the inventory are refilled to a full stack using items taken from the container.
Nearby container stacking
Quick stack can run on every openable container within the player's reach rather than only the one open.
Nearby container restocking
Restock can draw from all openable containers within reach, so stock is gathered from several chests at once.
Options screen
Left Ctrl, S and C open the mod options, where appearance, behavior and key mappings can be changed.
Compatibility
Latest build for each game version and loader.
26.x4 of 4 versions with builds
1.21.x12 of 12 versions with builds
1.20.x6 of 6 versions with builds
1.19.x5 of 5 versions with builds
1.18.x1 of 1 version with builds
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 1
Optional 1
Use cases
Filling a storage room
A player can quick stack a crafting inventory into several nearby chests without opening each one.
Restocking a build
Restock pulls building blocks from nearby chests into the inventory to top up partial stacks mid-project.
Who it’s for: Players who keep many chests in one area and want to move items between them quickly, in single-player or on multiplayer servers that do not need the mod installed.
How it compares
Through Item Frame is client-side only, uses a Creative Commons Attribution Non Commercial 4.0 license and is not open source, with files for 1.18 – 26.1.2. Chai's Inventory Sorter is client and server, open source under the GNU Lesser General Public License v3.0 only, and covers 1.20 – 1.20.4. All But 1 is client-side only, open source under the MIT License and covers 1.21.5 – 26.2.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| Stack to Nearby Chests | Fabric | 1.18.2 – 26.2 | Client-side only | 2026-09-22 |
| Through Item Frame | Fabric | 1.18 – 26.1.2 | Client-side only | 2026-04-14 |
| Chai's Inventory Sorter | Fabric | 1.20 – 1.20.4 | Client and server | 2024-08-17 |
| All But 1 | Fabric | 1.21.5 – 26.2 | Client-side only | 2026-06-16 |
Questions
Does Stack to Nearby Chests need Fabric API?
Does the server need Stack to Nearby Chests installed?
Can Mod Menu be used with this mod?
In the catalog
Stack to Nearby Chests is one of 4,058 Storage mods on ModsFinder, and one of 2,474 Storage mods for Fabric. 13,894 mods support Minecraft 26.2.
Similar mods
What the author says
A client-side ONLY mod, adds the quick stacking and restocking features from Terraria into Minecraft. The code to iterate over all nearby containers is from clientcommands mod.
Official listing
- Modrinth page
- modrinth.com/mod/stack-to-nearby-chests
- Owner
- xiaocihua
- Published
- 2022-10-26
- Updated on Modrinth
- 2026-09-22
- Facts verified
- 2026-10-15
