How can I make the redstone repeat a task x times and reset it self?
So I'm trying to make a redstone circuit that can repeat a task x amount of times and then reset it self.
I was thinking of using a dropper and a hopper and use the hopper redstone signal (retrieved by a comparator) to check the amount, so lets say I need it to repeat a task 20 times, I place 20 items inside (along with the 3 items that are already inside the hopper, so it emits a 2 long signal once it has the 20 items from the dropper, I know how to do that part, but to the question, how can I make it reset to 3 on the hopper and 20 to the dropper?
The main question is the one described in the first paragraph and the title, the second one would be good to know, but idk if its possible.
Best Answer
The circuit I ended up with when I came across similar task as question:
Posting just for further readers or something.
Pictures about "How can I make the redstone repeat a task x times and reset it self?"



How to make a Redstone piston repeat it self
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Geometric Photography, Julia M Cameron, Ylanite Koppens, Julia M Cameron

