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
After
Commands
/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.
Permissions
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.
magicchest.help: Shows a usage help.
magicchest.reload: Reloads all of MagicChest's config.
Reviews
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
Quote:This plugin utilises Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:
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.
Just want to confirm this is working fine in 1.5.1? :)
@slayr288
It's actually extremely fast because the configuration file is loaded into a configuration object then read from. The file is not read line by line every time. If need be though, I would be glad to give it a try.
@uvbeenzaned
Thanks for the plugin.
I was wondering how efficient the current system for writing/storing/reading statuses on whether a player has MagicChest enabled or not is.
Would MySQL be faster?
If so, could you implement MySQL?
@Xehara
This doesn't sound like a bug with my plugin. Might wanna try that without my plugin and see if it was world edit. Did you mean world edit? World guard doesn't have a /stack command I thought.
There is a slight bug with /stack using World Guard 747-e3dfc6a alongside MagicChest 1.1.1. The illegitimate stacks, when placed into auto sorting chests, turn to singles.
@WayGroovy
Thank you kind sir! :) It'll be out soon after approval.
You sir, are a scholar and a gentleman.
@WayGroovy
Just added what you wanted. :D
@WayGroovy
It still defaults to on but I can add a quick configuration option that will change that. It'll have to be tomorrow though.
Awesome. Quick question. What is the default behavior after installing the plugin?
I'd like to give players of a certain rank the ability to use this, but I don't want them to have to turn it off. I'd rather they turn it on when they're ready to start using it, if that makes sense. Default behavior vanilla, with permission, until /mgcs on command issued.
If not, that's cool, just didn't see it in the documentation anywhere.
Just uploaded the new version with item stacking fixed on fireworks and the like! It'll be available soon I believe! Have fun!
@uvbeenzaned
Any luck?
@netherfoam
Ok thanks I will try that.
Public boolean ItemStack.isSimilar(ItemStack stack) solves your issue. Currently this plugin dupes playerheads etc which have different NBT data... Such as fireworks, too.
@laserlag
Well, yes it can, but I am trying to figure the best way to go about this at the moment. Check back in regularly though for an update!
Heads in chests get reset to default when sorted. Can this be fixed?
@OriginalMadman
I will add that option in the config in the next release.
Is it possible to have the plugin to default to off for everyone? So that only a player who wants it have to turn it on?
@Cheshyr
I appreciate that. Thank you.
@uvbeenzaned At your leisure. My players don't know about the mod yet, so they aren't missing it. :-p