How it works. This setup is placed at each bay and interconnected with the other bays via wire. Its connected to the loader chests to receive this bays contents, and to the signal at the bay entrance to block trains individually. At each bay the chest contents are summed and compared against whatever signal is shared by the other bays, and block this bay if another bay has more items. The contents of itself get transmitted to the other bays in turn. Its only 3 combinators which is cool.
The catch is that the signal is read back out, which will determine a bay is occupied or not. If a bay is occupied, the next best bay is opened up. There is always a bay open, unless theres a train in every.
How to setup: Connect the chest with your chests via red wire. Connect the pole with the other bays pole via green wire. Open the top right combinator (which is [0]*green=crate). Change crate to any unique item different at each bay, doesnt matter which. Viola. The progress bar is not part of this short video: https://gfycat.com/GlisteningGrippingIbex
Blueprint string:
Code: Select all
H4sIAAAAAAAA/7WV4W6jMAzHX6XKx1M4AbtOO025F5lOKEvc1lJwUAjbEOLdL9B2Vxi02aR9bP23+eOfbbTdGKuk2RSiA/LoEWrRdSRLEKz2liB5lcYwXtk6
BC2J7k0kv3grkrzveZQwixDmsRXvZkINCjW4RNnyGUl66+aVf26PJrhGB2r8P+fKknfWFM9wkC9onehOhYoQ0WN26MMOXe2LGvckjeh8W4UHvqDzjQy2TkbH
YCKp9QekPet5DUOJqKw0yIPxSrrBuGB/GLeNr5q4ZzrQY37VBtMN+WLnbFkghXyxk6aGfogSHV86vM4Ty9hf0YW8gHik3RaoxQNX6FSDfvgxwNo7AJpIsvs+
/P/E8qX8PODob6NLYxFnM6F06A8leFTrlNMFyvcLlP/X+iLo9HOEx1aGFFtBYDy4Yj9WIKOH8pz9aq0GStQBas/6SI7bKUd+ye/3ZSxfZDxiPDNeGYHb9Obw
rupiLsNwQtJIXeylidHdzXUA5gTkozCNIzTFkE0aWoLGpkzAhCIujHplDSxYX3nSR15XpuFhNgyRyxvTtWyqi1/d9Ns3F6Q6jPeSai/JhwmMWMrVIxC5k9n2
yuGcH97I9YrgkE2Xxkk0ydH7VHcc8htfxrNJZWwN5/5418C7fQdSLwbeSX0G1Pm7duKUzj6RX7mGyxdvof89RzVW7daP80XTg5w0vI3Jjw5842hTPALpfxrt
BZNYCQAA