Item sorter with a hopper line

Items pass along a line of hoppers. Iron ingots drop out of the line into their own chest; everything else runs on to the chest at the end. Each button makes a dropper put one item into the line: iron ingots from one, cobblestone from the other.

Item sorter in the 3D viewer
33 blocks · iron ingots

How it works, part by part

1 · DroppersOnly here to feed the test: each press of a button puts one item into the first hopper (one dropper holds iron ingots, the other cobblestone). In your world, feed the first hopper from a chest, a water stream or a mob farm.
2 · Hopper lineHoppers pointing along the line pass every item on, one every 8 ticks. The hopper under the second one takes what it can out of it first.
3 · End chestEverything the filter doesn't take, here the cobblestone, ends up in this chest.
4 · Filter hopperIt holds 18 iron ingots in its first slot and one item in each other slot, so only iron ingots fit in. Its spout points at the comparator, not at a container, so it never empties itself. In the game, rename the four single items in an anvil so nothing you sort can stack onto them.
5 · ComparatorReads the filter: 22 items give 1, a 23rd gives 2.
6 · Two dustPower drops by one per dust, so a reading of 1 dies out before the block and only a 2 gets through. That is what stops the filter from emptying itself.
7 · Block and torchThe torch on the side of the block stays lit while the reading is 1 and goes out when it is 2.
8 · Lock lineDust from the torch back to the hopper under the filter. While the torch is lit, that hopper is locked and takes nothing. The dust sits on glass next to the bottom hopper, so that one is never locked.
9 · Two hoppers belowWhen the torch goes out, the upper one takes one ingot from the filter, which brings the reading back to 1 and the lock back on within 4 ticks. The lower one is never locked and takes the ingot on into the chest.
10 · Iron chestWhere the sorted iron ingots end up.
How its parts work

Download for your world

Both files hold the same machine, for Java Edition 26.3. Pick the one your tools load.

How to load it
  1. Structure block: put the .nbt file in your world’s generated/minecraft/structure folder, place a structure block (/give @s structure_block), set it to Load, type the file name without .nbt, then Load.
  2. WorldEdit: put the .schem file in WorldEdit’s schematics folder, then type //schem load <name> and //paste.
  3. Litematica: put the .schem file in .minecraft/schematics, open the Litematica menu (M), load it and place it where you stand.

The full guide, step by step

Build it

Materials
  • 11× stone
  • 8× redstone dust
  • 5× hopper
  • 2× dropper
  • 2× button
  • 2× chest
  • 1× comparator
  • 1× redstone torch
  • 1× glass

Layer by layer

From the bottom up. Turn the 3D view and click a block to see exactly where it goes.

  1. Layer 1 1× chest
  2. Layer 2 4× stone, 1× hopper, 1× glass
  3. Layer 3 5× redstone dust, 4× stone, 1× hopper
  4. Layer 4 3× redstone dust, 1× hopper, 1× comparator, 1× stone, 1× redstone torch
  5. Layer 5 2× dropper, 2× stone, 2× hopper, 1× chest
  6. Layer 6 2× button

Want a variant? Ask your AI.

Show me the Item sorter from Contraptify and make a variant of it. How to connect your AI

Related machines