6

I've been messing around with redstone and decided to build a multi-item automatic sorting system (Minecraft vanilla, 1.14.4). I'm not a redstone wizard, so I had to build it off of a fantastic guide that even for a basic redstoner like me seemed to be really easy to follow.

However, I heard that metamilo, the creator of this tutorial, mentioned "overflow protection", and I'd like to ask, what exactly is overflow protection? Is it some sort of mechanism that prevents someone from dumping loads of items into the system, or is it a way to remove extra items when storage is full?

Also, as a followup on this question, how would you create overflow protection for an item filter like this?

5

Answering the first part of that question:

An overflow protection means either an addition to a storage-related circuit or a modification to it, which makes that circuit not misbehave when you either dump too much into it at once or put in too much in total.

For example this is the basic classic item sorter:

And this is the overflow protected version of it:

The smaller version only needs one of the to-be-sorted type inside the filter, the bigger one needs 41. But if you put so many of the item into the storage that all the chests and the hoppers leading to them fill up, then the small one not only goes from power level 1 to power level 2, but to power level 3, causing a power level 1 in the second piece of redstone wire of adjacent filters, therefore causing them to push all their filter items into their storage, which causes all further items to not get sorted at all, but get directly dumped into the storage there instead. That quickly leads to the signal of those going to 3, which breaks another filter next to it and so on, it cascades to a big mess to clean up manually.

The bigger version however is at power level 2 always and goes to level 3 when an item goes in. But even if items try to go in at infinite speed or when all the chests and hoppers fill up, you still can't get more than 64 of that item in the filter hopper, therefore the power never goes above 3 and it doesn't break the other sorters. Further items simply don't go into the filter and instead continue in the upper hopper line. At the end of it you can build an overflow storage for all items that can't get sorted (like pickaxes), items that don't have a filter (like diorite renamed to "fdjslkfsdv") and items that overflow their storage. And even if that fills up completely and all the hoppers in the upper hopper line fill up, nothing breaks permanently, it just continues sorting when you make space for it.

This concept is not limited to sorters, item transport systems can also have overflow protection, farms can shut down as an overflow protection and so on.

5
  • Thanks, this really helped! May 24 '20 at 15:39
  • Amazing explanation! I'm trying to adjust the numbers for 16-stackable items, but I'm having trouble find the right amounts to ensure overflow protection. I'm aware they have a 4:1 ratio, but what is the power level goal for protection? To be 2 at "rest" as close as possible to 3? Is it to avoid a power level of 4?
    – MestreLion
    May 8 at 23:32
  • The part which confuses me is: For the non-protected one, you said "the small one not only goes from power level 1 to power level 2, but to power level 3", and the protected "is at power level 2 always and goes to level 3 when an item goes in". If both go to 3, what is actually giving the protection?
    – MestreLion
    May 8 at 23:35
  • You can just put 4 filler items into the 4 slots on the right of the hopper and one to-be-sorted item into the left slot and it will automatically go to the correct amount when you use the sorting system. In the shorter system, if the first piece of redstone goes to level 3, the one that is being measured by the repeater goes to 2, but the one in the next circuit over also activates, with level 1. In the longer one, the first piece of redstone goes to level 3, the second one to level 2 and the third one to level 1. The second piece of redstone of the neighbouring filters also goes to 1, if it… May 9 at 9:03
  • … isn't already anyway, but since there's no repeater on that, it doesn't matter. May 9 at 9:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.