Last night at my sisters house the kids were ‘craftin’ and they showed me a deceptively simple problem.
The goal was a gatling gun. The arrow trap shoots an shot whenever a redstone signal goes HIGH, so the signal has to pulse on/off forever. To make the pulse they put two redstone repeaters in a loop. Once the loop is started with a short pulse it loops forever like a CPU clock, and on the high pulses a part of the signal fires the arrow.
The problem is the short pulse to start the system. Yes, Minecraft has a momentary switch. They wanted to know how to do it with a lever (toggle switch) - arrows would fire until the lever is turned off. If the power from the toggle stays on, it floods the repeater loop. Once flooded, the signal stays high forever and arrows don’t fire.
We tried a few things. The only method we came up with involved a destructive piston action (required manual reset).
Any ideas? I thought it was a fun circuit design / logic gate problem.
What’s the purpose of the AND gate? I suspect I need a memory cell set by the oscillator. first oscillation only sets them memory bit, which disables further memory sets and disables the oscillator flood.
You can adjust the pulse length with the repeaters by the piston and you can adjust the repeat rate with the repeaters on the other end. Note that you can also add lots more repeaters onto that end to make it much slower.
Make a simple 1 block high clock and put a toggle on the block. When the toggle is on the clock will stop because the toggle turns off the redstone torch. Invert the output if you don’t want it to be high while off (not toggling). For a dispenser block though that doesn’t matter if it remains high or low it only shots when it goes from low to high.
"This is just another variation of the above solutions. This one involves a different rapid firing system that is a little faster than the repeater clock but not adjustable. This is a good design to fit onto a wall but is a little bigger than @laftho’s design. Included are a few images of a redstone torch rapid fire system and a save file of this world (Look for the red beacon).