Auto Item Sorter with Overflow Protection

An automatic item sorter organizes your storage room by filtering specific items into dedicated chests while sending unsorted loot to an overflow chest at the end. This compact, tileable design works in both Minecraft Java and Bedrock Editions and can be expanded to sort as many item types as your base needs.

Item CircuitsBeginnerJava & Bedrock
Auto Item Sorter with Overflow Protection video tutorial

Video: NEW 26.2+ How To AUTO ITEM SORTER (with Overflow Protection) - Minecraft Java & Bedrock by Jaype

How to build it

  1. Place the Storage Chest and Lower Hopper

    Start by placing a double chest where you want your sorted items to be stored. Crouch and attach a hopper directly into the back of this double chest.

  2. Build the Redstone Support Frame

    Behind the hopper, build a small frame of solid blocks to hold the circuit: place a row of three blocks extending backward, step down and place blocks underneath to create a gap for the repeater, and add a stepped block at the very back.

  3. Install the Redstone Torch and Repeater

    Attach a redstone torch to the front block directly behind the lower hopper so it locks the hopper. Inside the middle gap of your block frame, place a redstone repeater facing forward toward the block holding the torch.

  4. Add the Comparator and Filter Hopper

    On top of the block directly behind the lower hopper, place a redstone comparator facing backward away from the chest. Crouch and place a second hopper pointing directly into the back of that comparator.

  5. Wire the Redstone Dust

    Place three pieces of redstone dust on top of the remaining rear blocks running away from the comparator. This connects the comparator's output down into the block powering the repeater.

  6. Expand for Multiple Items

    To sort more items, duplicate this exact one-block-wide slice right next to the first one as many times as you need. Each chest and circuit slice sits directly adjacent to the next.

  7. Configure the Filter Hopper with Renamed Items

    Use an anvil to rename 44 cheap filler items per slice (for example, naming stone slabs 'Unusable'). Open the middle hopper pointing into the comparator: place 1 of the item you want to sort in the first slot, and divide the 44 renamed filler items across the remaining four slots.

  8. Build the Top Input Hopper Line and Overflow Chest

    Place a line of hoppers directly on top of the filter hoppers, all pointing sideways from one end of the sorter to the other. Place an input chest feeding into the start of this top hopper line, and place an overflow chest at the very end to catch any unsorted items.

How it works

This sorter relies on signal strength and item counting inside the middle filter hopper:

  • Hopper Lock: By default, the redstone torch powers and locks the bottom hopper, preventing items in the middle filter hopper from draining into the storage chest.
  • Filter Configuration: The middle hopper points sideways into the comparator (not downward), so its items cannot push out on their own. By filling the last four slots with 44 renamed filler items and putting 1 target item in the first slot (45 items total), the comparator outputs a signal strength of 2, which travels two blocks of redstone dust but isn't strong enough to reach the repeater.
  • Sorting Trigger: When matching items travel across the top hopper chain, one drops into the first slot of the filter hopper, bringing the total above 45 items. This boosts the comparator's output to signal strength 3, reaching the third dust and powering the repeater.
  • Unlocking the Chest: The repeater powers the block holding the redstone torch, turning the torch off for a moment. The bottom hopper unlocks and pulls 1 of the target items down into the double chest until the filter count drops back to 45 and the torch turns back on.
  • Overflow Protection: Because the 3-dust line only reaches signal strength 3, a backed-up slice will not emit a strong enough signal to unlock neighboring slices, and any items without a matching filter travel to the end chest.

Tips & variations

  • Always rename filler items: Always rename your 44 filler blocks in an anvil before putting them in the filter. If you don't, accidentally tossing that same block type into the input chest will break the filter.
  • Only use 64-stackable items: Both the filler items and the sorted item should stack to 64, as non-stackable items or 16-stackable items (like ender pearls or snowballs) output different comparator signal strengths.
  • Check hopper directions: A common mistake is letting the middle filter hopper point downward into the bottom hopper. Make sure the middle hopper nozzle points horizontally into the comparator, and the top hopper chain points horizontally toward the overflow chest.

Frequently asked questions

Why do I need to rename the 44 filler items in an anvil?
Renaming the filler items ensures that if you accidentally drop that same block type into the input chest, it won't stack inside the last four slots of the filter hopper and break the sorter.
Where do items go if they don't have a chest in the sorter?
Any item that doesn't match a filter continues moving through the top hopper line and lands safely inside the overflow chest at the very end.
Does this item sorter work on both Java and Bedrock Edition?
Yes, this classic comparator and hopper lock mechanic works identically in both Minecraft Java Edition and Bedrock Edition.

Components used

More item sorter