promotional bannermobile promotional banner

Chest Sort and Quick Stack | Sort Chests and Your Inventory With One Command (Achievement Friendly)

Type /sort to tidy the chest you look at, /sortinv for your inventory, or /quickstack to send matching items into every chest within 8 blocks. Sneak and tap a chest to fill and sort it without opening it.
quick-stack.png

quick-stack.png

hero-sort.png

hero-sort.png

commands.png

commands.png

Description

Chest Sort and Quick Stack

Sort any chest, barrel or shulker box with one command or a sneak-tap, sort your inventory, and quick-stack matching items from your inventory into the chests around you. Achievements stay on: stable Script API only, no experiments, no custom items. Made for Realms, dedicated servers and local worlds; tested on the dedicated server, not yet on a real Realm.

What it does

  • /sort sorts the container you are looking at: partial stacks are merged, then everything is ordered by category (tools, weapons, armour, food, blocks, the rest) and name. /sortinv does the same for your inventory and leaves the hotbar alone.
  • /quickstack (or /qs) moves items from your inventory into every chest within 8 blocks that already holds that kind of item: come home from mining, type one command, the cobblestone is in the cobblestone chest and the iron in the iron chest. Your hotbar, armour, locked and keep-on-death items stay with you. Double chests count once.
  • Sneak and tap a chest: your matching items go into that chest and it is sorted, without opening it. Holding a block? Sneak-tapping places the block as usual.
  • Only plain storage is touched: chests, trapped chests, barrels and shulker boxes. Furnaces, hoppers, dispensers and anything with special slots are never sorted or filled.
  • sortOnClose sorts a chest every time someone closes it (off by default).
  • Operators change any setting in game with /sortconfig (numbers, booleans as 1 or 0) or /sortconfigtext (words, like /sortconfigtext sortBy name), saved in the world; the settings also sit at the top of scripts/main.js with a comment for each: sneakTap, sneakTapIgnoresBlocks, sortOnClose, quickStackRadius, quickStackHotbar, quickStackIntoEmpty, sortInventoryHotbar, sortBy.

No wand to craft, no menu: commands and a sneak-tap.

Tested

On the official Bedrock Dedicated Server:

  • 29 checks with simulated players in a Beta-APIs test world (the add-on itself uses no beta API): /sort on a messy chest (merged and ordered, nothing lost), /sortinv leaving the hotbar and a locked item alone, /quickstack filling only chests that hold the item and skipping a chest outside the radius, an empty chest and a full chest, a double chest sorted as one and filled once, a barrel and a shulker box, a furnace never touched, a sneak-tap that quick-stacks and sorts without opening the chest, a sneak-tap while holding a block left to the game, a normal tap still opening the chest, and the quickStackIntoEmpty, sortInventoryHotbar, sortBy and sneakTap settings changed in game.
  • 48 checks with real network clients in a world with no experiments and cheats off (shared with the other two add-ons): /sort, /sortinv with items given by the console, /quickstack into a chest placed by the console, /qs, operator-only checks, settings in game and from the console, and settings surviving a restart and /reload.
  • 16 checks with all five of these add-ons in one world.

Not tested: a real phone, console or PC client (simulated players ran the commands and tapped the chests holding an item); sortOnClose, because simulated players never close a container screen.

Install: open the .mcaddon, then add the behaviour pack to your world, or put it in your server's behavior_packs folder and list it in world_behavior_packs.json. Needs Minecraft 1.26.30 or newer; it has only been run on 1.26.61. Licence: MIT.

Not affiliated with Mojang or Microsoft.

More free tools: actuallyop.com

Chest Sort and Quick Stack | Sort Chests and Your Inventory With One Command (Achievement Friendly) Team

profile avatar
  • 3
    Followers
  • 90
    Projects
  • 7.3K
    Downloads

More from molonlav3View all