Magic Chest

Nobody enjoys rummaging through inventories to organize the contents. Why not hand that job down to the gremlins? Magic Chest auto-sorts your inventories while you have them closed, so that when you open them they are completely sorted and it's easy to find your stuff.

How It Works

   1. Stacks of the same material are combined.

   2. Stacks are sorted by item name.

   3. Stacks of the same item name are sorted by Data (i.e. Wool Color)

   4. Stacks with the same name and Data are sorted by Quantity (So the incomplete stack will be last)

  • Note: Chests that are renamed in an anvil or that do not have the default Minecraft inventory title are excluded from sorting.


Before Sorting


After Sorting



/mgcs help: shows a command usage help page.

/mgcs on: turns auto-sorting on for the player that ran the command.

/mgcs off: turns auto-sorting off for the player that ran the command.

/mgcs invon: turns auto-sorting on for the players inventory when an item is picked up. (v1.2.4 and above)

/mgcs invoff: turns auto-sorting off for the players inventory. (v1.2.4 and above)

/mgcs reload: reloads all of MagicChest's config.




magicchest.sort: Sorts all inventories that this player opens.

magicchest.sort.chest: Sorts chests that this player opens.

magicchest.sort.dispenser: Sorts dispensers that this player opens.

magicchest.sort.enderchest: Sorts ender chests that this player opens.

magicchest.sort.shulkerbox: Sorts a shulker box that this player opens. Shows a usage help.

magicchest.reload: Reloads all of MagicChest's config.



Curse Spotlight

cobwebster's (aka. ShinyTinselWorm) overview of MagicChest

Plugin Stats


Plugin Compatibility


dtlTraders- Avoids sorting TNPC inventories.

ChestCommands- Ignores sorting ChestCommands inventories.

FastCraft- Avoids sorting FastCraft menu.

AShops- Avoids sorting AShops inventories.

SkillAPI- Avoids sorting SkillTrees and other menus.

  •  If you have a problem with MagicChest sorting another plugins inventory or something like that please do not hesitate to leave a comment and let me know.


InventorySortEvent API (for plugin devs)


If you need to cancel MagicChest sorting an inventory, this is for you. Github Wiki


Massive shoutout & thanks to:


dandielo - making dtlTraders compatibility possible! Couldn't have helped folks without you!

timsavage - dtlTraders plugin compatibility request!

filoghost - author of the awesome ChestCommands plugin and the help and support of MagicChest! Couldn't have done it without your suggestion! :)

lecraeman - for requesting support of ChestCommands!

Kepler_ - author of FastCraft and supporter of MagicChest. Thanks for letting me know and working with me!

Metrics Information


This plugin utilises Hidendra's plugin metrics system, which means that the following information is collected and sent to

A unique identifier The server's version of Java Whether the server is in offline or online mode The plugin's version The server's version The OS version/name and architecture The core count for the CPU The number of players online The Metrics version Opting out of this service can be done by editing plugins/Plugin Metrics/config.yml and changing opt-out to true.



  • To post a comment, please or register a new account.
Posts Quoted:
Clear All Quotes

About This Project



Recent Files