A redstone construction that can separate any number of different item types, such as products of a monster trap, inventory content, or different ores.
On one side of the machine the items are thrown in. These can come, for example, from a monster trap.
The items then flow along a channel, under which there are funnels. The funnels only take one type of item at a time. This is how the items are sorted.
Several sorting units built side by side with an item flow over them are then the complete apparatus:
At the top the items are thrown in, which with the help of the water get over the funnels and finally into the chests.
Due to the narrow space, there is a problem if too many items of the same kind are thrown in. This would make the redstone signal too strong and also open adjacent funnels. To avoid this problem, you can either connect a dropper with a small circuit, which ejects the items one by one, or you use another row of funnels instead of the water flow like on this picture:
Here the items are placed in the top right of the chest, from where they are transported through the funnels from right to left.
Now let's get to how it works:
(The item flow is missing on the picture)
The upper funnel on the picture is the "filter". This is filled as follows (here to sort out flares):
The items on the four right places are necessary to fill the funnel. As you can see, you can either use items there that can be stored as a stack of 16 at most (like eggs), or other items. The former saves resources on dummy items, since you only need 5 that way. With the other method you have to distribute 21 items, but you only need the item to be sorted out once.
The middle funnel faces the comparator. The comparator measures the fill level. If the level exceeds 2 of the items to be sorted out, the signal strength increases by 1, which deactivates the redstone flare and activates the lower funnel. This then sucks the items until the original state is reached again.
The back of the machine looks like this:
The last chest gets no filter, so that all items that are not sorted out can end up somewhere.
Instructions:First, a row of Dirt is set up. On one side come Redstone flares, on the other side come Reapeter, aimed at the flares. Behind and at the repeaters, a row of Dirt is placed again. Both newly created dirt rows are covered with redstone.
On top of the dirt row with the torch another row is built, on which comparators are placed, which point to the redstone.
In front of the torches you place a row of dirt to place the chests at the right height. To be able to place the chests so compactly, you alternately place a normal chest and a Redstone chest.
On top of the torches come funnels directed at the chests. On top of these funnels are placed funnels pointing to the comparators. On top of the funnels, either a water flow is built, or a row of funnels, where each funnel points to the funnel following it. Sorting can be done from left to right and vice versa. At the beginning, a chest should be placed on the first funnel (of those at the top of the finished apparatus), in which the items are placed, and at the very back a collection chest for items that are not sorted out.
Finally, do not forget to fill each filter funnel (middle one in the finished apparatus) with eggs and filter object.
The machine breaks when you throw in the dummy item (eggs or sticks). Therefore, you should either not throw them in or sort them out at the first funnel, where the item to be sorted out is the same as the dummy item.