ᴍɪɴᴇᴄʀᴀꜰᴛʀᴇꜱᴏᴜʀᴄᴇꜱ

ChestSort

Modrinth

Effortlessly sort your chests with a double-click!

18.9K downloads43 followersUpdated 2y ago

1.1 · MC 26.3 · Paper, Purpur, Spigot

View on Modrinth

Files

  • 1.1

    release

    ChestSort 1.1

    26.326.226.1.226.1.1+36paperpurpurspigot

    2024-09-27 · 18.9K downloads

    ChestSort-1.1.jar · 28 KB

Files are delivered unmodified from Modrinth's servers and verified against the SHA-512 hash published by the project. The project's license applies to every file; check it before redistributing.

About

SpaceExpanse.app AshCraft

The ChestSort plugin enhances your Minecraft experience by allowing players to easily sort the contents of their chests with a simple double-click on an empty slot. This functionality streamlines inventory management and ensures that your items are organized efficiently.

How It Works:

Double-Click Detection:

The plugin maintains a record of the last click time for each player.
When a player clicks an empty slot in a chest, it compares the current click time with the last recorded click time.
If the two clicks occur within 500 milliseconds (indicating a double-click), the chest's inventory is sorted.

Inventory Sorting:

The sortInventory method collects all non-null items from the chest.
The items are sorted by their type using a comparator.
The chest is cleared, and the sorted items are placed back into the inventory.

User Feedback:

When the chest is sorted successfully, the player receives a chat message confirming the action ("Chest sorted!").

This plugin simplifies the process of organizing your chests, saving you time and effort in managing your inventory. Enjoy a clutter-free Minecraft experience with ChestSort!