Inventory Sorting Mod — Guide
Sorting Mechanics
The mod provides several ways to trigger an inventory sort. These methods are designed to be intuitive and non-intrusive during gameplay.
Primary Triggers
- Middle-Click Sorting: Clicking the middle mouse button (scroll wheel) on any slot within an inventory will immediately sort the contents.
- Double-Click Sorting: Double-clicking on an empty slot within an inventory will trigger the sorting algorithm.
- Keybind: By default, players can press the 'P' key (configurable) while an inventory is open to sort it.
- UI Button: A small 'A-Z' button appears in the top-right corner of supported inventory screens. Clicking this button sorts the inventory.
When a sort is triggered, the client sends a single request to the server. The server then calculates the optimal arrangement based on the configured sort type and updates the inventory slots instantly. This prevents the 'jitter' often seen in client-side mods that move items one by one.
User Interface
While the core functionality is server-side, the optional client-side installation adds visual elements to enhance the user experience.
- Sort Button: A compact button labeled with an icon or 'A-Z' is added to the GUI of chests, barrels, player inventories, and modded containers.
- Visual Feedback: The client mod provides a configuration menu accessible via the standard mod settings screen, allowing players to toggle UI elements on or off.