CleanContainer
by hasteinMC
CleanContainer sorts the contents of chests, barrels, shulker boxes, minecart chests and ender chests, and can also sort the player's own inventory.
What it does
Sorting works on the player's inventory and on the storage containers they open, so stacks of the same item are gathered together. A quick sort key arranges the player's inventory with one press, and the key can be changed in the game's controls settings. Transfer actions move items between a container and the inventory, and enderchest transfers work with the player's inventory as well.
The mod also offers a hotbar lock that keeps hotbar items from being moved or sorted, and a setting in the game options that changes where the UI buttons sit. Its bug fixes address potions that were duplicated during sorting and item durability that was duplicated.
CleanContainer is licensed under the GNU General Public License v3.0 or later and is not open source. It needs Fabric API. The server and every player need the mod installed. Files target 1.20.4 – 1.21.1, with 1.5.0 for 1.21.1 as the latest release, published on 2024-09-28.
Key features
Container sorting
Chests, barrels, shulker boxes, minecart chests and ender chests can be sorted in place, grouping matching items together.
Player inventory sorting
The player's own inventory can be sorted separately from any container that is open at the same time.
Quick sort key
A key binding in the game controls triggers a quick sort of the player's inventory, and the binding can be changed.
Hotbar lock
A toggle keeps hotbar items from being moved or sorted, so a set layout stays in place during sorting.
Gallery
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 1
How it compares
Lightweight Inventory Sorting is a Fabric mod for 1.20.6 – 26.3 that is client-side only and open source under the MIT License. InvSort is a Fabric mod for 1.20 – 26.2 that is client-side only and open source under the GNU Lesser General Public License v3.0 or later. CleanContainer differs from both by needing the client and server, and by targeting the older 1.20.4 – 1.21.1 builds.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| CleanContainer | Fabric | 1.20.4 – 1.21.1 | Client and server | 2024-09-28 |
| Lightweight Inventory Sorting | Fabric | 1.20.6 – 26.3 | Client-side only | 2026-09-17 |
| InvSort | Fabric | 1.20 – 26.2 | Client-side only | 2026-06-24 |
Questions
Does CleanContainer need Fabric API?
Does the server need CleanContainer?
Which game versions does CleanContainer support?
In the catalog
CleanContainer is one of 4,058 Storage mods on ModsFinder, and one of 2,474 Storage mods for Fabric. 32,366 mods support Minecraft 1.21.1.
More from hasteinMC
Similar mods
What the author says
[Bug Fixes] - Potions getting duplicated when sorting - Enderchest transfer to player's inventory now works - Items durability are no longer duplicated
Official listing
- Modrinth page
- modrinth.com/mod/cleancontainer
- Owner
- hasteinMC
- Published
- 2024-02-07
- Updated on Modrinth
- 2024-09-28
- Facts verified
- 2026-10-15
