Factorio – How to Store Surplus from a Belt

factorio

Is there a way to store in chest resources on belt that are not in use now?

In other words, can I use the logistic system to detect that resources stopped moving from a belt and put it in a chest. In the opposite case, if the resources are moving, inserters must not grab the resources.

Best Answer

What I typically do is have an inserter(s) which moves items from the belt to a chest, then another inserter(s) which moves items back from the chest to the belt.

You will need to wrap the belt around the chest, or use multiple chests, in order to get this to work.

It works much better if you have a mod that adds bigger (in area) chests. Warehouses are 6x6. It's also trivial with diagonal inserters.

Keep in mind you don't want to do this for every production line. Creating too many of an item that won't be a bottleneck is just a waste of resources.