Inventory Sorting Mod — Configuration
Commands
Inventory Sorter includes commands that allow vanilla clients to utilize sorting features even without the mod installed locally. These commands are also useful for automation or troubleshooting.
| Command | Description |
|---|---|
/inventorysorter sort |
Sorts the inventory currently being viewed by the player. |
/inventorysorter toggle |
Toggles the sorting functionality on or off for the individual player. |
/inventorysorter help |
Displays a list of available sub-commands and usage instructions. |
Configuration
The mod is highly configurable via the inventorysorter.json5 file located in the server's config folder. These settings dictate how items are ordered and which inventories are affected.
Sorting Types
Players can choose from several algorithms to determine how items are grouped:
- NAME: Sorts items alphabetically based on their localized display name.
- CATEGORY: Groups items based on their Creative Tab category (e.g., Building Blocks, Food & Drinks).
- MOD: Groups items by the Mod ID of the mod that added them.
- ID: Sorts items by their internal registry ID string.
Config Options
| Option | Type | Default | Description |
|---|---|---|---|
middleClick |
Boolean | true | Enables or disables sorting via middle-click. |
doubleClick |
Boolean | true | Enables or disables sorting via double-click on empty slots. |
sortButton |
Boolean | true | Toggles the visibility of the GUI sort button. |
sortKeybind |
Boolean | true | Enables or disables the dedicated sorting keybind. |
sortType |
String | NAME | Sets the default sorting algorithm (NAME, CATEGORY, MOD, ID). |
containerBlacklist |
Array | [] | A list of container class names that should be ignored by the mod. |