I'm looking to build a system, where given a row of barrels, and an input line, I want to get the output of the first (or last if that's easier) empty barrel only. I can easily enough get an output for every empty barrel, but struggling to get it for the first only. It needs to be tileable if possible.
If tried various things with locking repeaters, observer chains and pistons to break the chain, but they've all had issues and not worked.
Has anyone does anything like this before or have any pointers on what to try?
Screenshot is just an example layout to hopefully help clarify a little, doesn't have to fit into those dimensions