How to make 20 minutes (1 day) delay? [duplicate]

I am getting tired of manually managing my chicken farm, so I have invented this automated design:

The step from eggs to chicken is easy, and it's even simple to make it happen in batches - every time dispensers are filled using hoppers, a comparator activates clock until they're empty again.

What I need is to set up is a timeout that activates 20 minutes after the dispensers have stopped shooting. A minecraft day has 20 minutes, which brings the idea of daylight sensor. But note that timeout may start any time in the day, not the same time every day.

And please, I need something that is not bigger than my house.

• Could do a daylight sensor, inverted, with a monostable circuit. I can get a proper answer complete with a screenshot in a bit May 30, 2015 at 22:12
• I am very curious! May 30, 2015 at 22:14
• Actually, hang on, that would be 10 minutes... And not play nice with sleeping. Hrm. May 30, 2015 at 22:15
• Hopper timers are the thing May 30, 2015 at 22:29
• Upvoted for awesome drawing!
– ave
May 31, 2015 at 10:19

You could accomplish this with 2 hopper clocks chained together.

In 20 minutes there are 24000 game ticks, and an item takes 8 game ticks to transfer from one hopper to another. This means that the wait you want is the same time that it would take 3000 items to transfer.

A single hopper clock only works with up to 320 items, but are able to chain multiple hopper clocks together to multiply the delay:

The second hopper clock can only transfer an item when the first hopper clock activates. If you put 10 items in the first hopper clock like this:

Then 300 items in the second hopper clock:

Then the first hopper clock needs to activate 300 times to activate the second hopper clock and get the output. 300 * 10 = 3000, so the second hopper clock should activate after 20 minutes.

This can all fit within 6*6:

You can stop the clock by keeping powered one hopper in both of the hopper clocks, you should probably turn it on after the dispensers have fired then back off after the trapdoors have opened. You should be able to get the output pulse (it'll be inverted) from the wire on the right.

• Other ways of achieving this is: cobweb chain, repeater chain, timer based on baby animals growing up and hit box changing. May 31, 2015 at 16:51
• @ModDL have examples of these? I'd love to see other answers. Jun 1, 2015 at 21:10

Or another option: a despawn clock. Items take exactly 5 minutes to despawn. So you can use 4 droppers and 4 wooden pressure plates as your timer (because 4*5=20, obviously). Each pressure plate is on a block with a redstone torch under it. When the dropper spits an item out, it turns off the torch for exactly 5 minutes, then turns it back on. You can use this to trigger the next dropper in the series. After this occurs 4 times, the last output is your clock output.