Minecraft – System with multiple inputs, but when one is activated it disables the other inputs

minecraft-java-editionminecraft-redstone

I am currently working on a bank system. However, it cannot accept multiple inputs at the same time (through multiple ATMs). So I made it so that every ATM will output a signal when a user has activated it. This signal needs to go to a redstone system that I need and don't know how to make compactly (Thus the question). Here is what this system needs to do:

  1. Receive multiple inputs (around 20 ATMs)
  2. Can be easily tiled next to each other so it can be expanded to more possible inputs (not necessary if it is not possible)
  3. When a pulse is detected in one input, it should deactivate the others while outputting a constant signal signal maintained by a hopper clock. (Refer to #4 -#6 for more detail)
  4. When the hopper clock counts down, it should reset all the inputs so all the ATMs should be able to send a input through. (Basically resetting the system so other ATMs can contact it).
  5. The hopper clock should also output a constant signal that can be taken from the system until it is done counting.
  6. The hopper clock should last around 8 stacks of regular item's time when counting.

I have tried to make this system but it's a mess that I guarantee will fail. So I will not bother putting a screenshot here.

Best Answer

The images below show the device. It can be expanded infinitely (You will need to adjust the wiring a bit if you extend it beyond a certain point). Looking at the third picture, the output is the redstone block closest the the POV. When you input a signal into the system through on of the button shown in the first image (you can replace this with anything), it will move the restone block in the third image to that position and constantly output a signal until you either wait for the hopper clock to run and finish, or until you input another signal into the system at the identical input point. This prevents other signals from inputting into the device by locking the repeaters of the other inputs so no signal can pass through. It will unlock after the hopper clock is finished (a possible flaw as inputting a signal again that deactivates the main output signal does not deactivate the locking repeater*). If anyone can find a more compact/better solution, please share it. Note: This will not be the accepted answer as it is fairly bulky and the question asks for a small design.

*depends on how you use this device.

I've detailed a solution that worked best for myself in this imgur album.

enter image description here

enter image description here enter image description here enter image description here enter image description here