REDSTONEPEDIA › Circuits › Timers and pulse multipliers

Stay-on timer (off-delay)

stays on 990 ticks (49.5 s) after · 8 blocks

The output turns on with the input and stays on 990 ticks (49.5 s) after the input turns off, as long as the input stayed on for at least 1,280 ticks (1 min 4 s) first.

made of comparator, hopper, redstone torch · fits in 2×3×2

9 versions, 4 to 990

stays on 990 ticks (49.5 s) afterStay-on timer3D view loading (or not available in this browser)

Every size 9

The best design for each size: pick one to see it.

sizeblocksnumbers
4 ticks (0.2 s)21 blocksneeds an input of at least 4 ticks (0.2 s)
8 ticks (0.4 s)17 blocksneeds an input of at least 4 ticks (0.2 s)
12 ticks (0.6 s)17 blocksneeds an input of at least 4 ticks (0.2 s)
16 ticks (0.8 s)14 blocksneeds an input of at least 4 ticks (0.2 s)
20 ticks (1 s)17 blocksneeds an input of at least 4 ticks (0.2 s)
24 ticks (1.2 s)13 blocksneeds an input of at least 4 ticks (0.2 s)
28 ticks (1.4 s)13 blocksneeds an input of at least 4 ticks (0.2 s)
108 ticks (5.4 s)28 blocksneeds an input of at least 3 ticks (0.15 s)
990 ticks (49.5 s), needs a long input (this page)8 blocksneeds an input of at least 1,280 ticks (1 min 4 s)

Try it

Tap IN under the view to turn the input on, again to turn it off: turn it on, then off: OUT stays red a while after (the box marked OUT turns red while the output is on). Press play under the view to watch a demo on a loop; touch any other control to take over.

How this design does it: Keeps its output on for about 50 seconds (990 ticks) after the input turns off, in 8 blocks: two hoppers pass 125 cobblestone back and forth, and a comparator keeps the output on while the first hopper still holds any; it needs an input about as long as its delay to load the items back (one per 8 ticks), and no hopper top a stray item can reach.

Build it

Download .litematic Download the design as text

The .litematic opens in Litematica (Minecraft 26.3): every block of the design in one region. The text file is the same build written as plain text, block by block.

Comes loaded with 125 cobblestone in its containers: the download includes them; building it by hand, put them in first.

Blocks used: comparator glass hopper redstone torch stone

Details: how it works, measurements and properties

In depth

The output turns on with the input (4 ticks (0.2 s) later) and stays on 990 ticks (49.5 s) after the input turns off: every output pulse is the input's length plus 990 ticks (49.5 s). Input pulses closer together than that merge into one long output pulse (a light or a door that stays on a while after the last press of a pressure plate).

It reacts to input pulses of 1,280 ticks (1 min 4 s) or longer.

How to try it

Press play under the view to watch the demo on a loop: input pulses of 1 to 80 ticks (4 s) (each output pulse lasts 990 ticks (49.5 s) longer than its input), then groups of 3 short pulses with growing gaps (closer than L, they merge into one output pulse). The badge reads demo with the step it is on, and the same sequence is drawn as a timing diagram below. Touch any control to stop it and try the circuit yourself.

To try it: tap the IN button of the bar (or the cell tagged IN) to turn that input on or off (it powers the cell with a redstone block): turn the input on, then off: the output stays on 990 ticks (49.5 s) after you turn it off.

Inputs are tagged in lime; the output is tagged OUT: the redstone lamp in that cell (the view adds it to show the output) lights while the output is on (the output strip by the demo badge shows its last 40 game ticks, 2 seconds). Drag to look around, pinch or scroll to zoom, step one game tick at a time with the step button.

Inputs and output over time

The input follows this schedule (the 3D view's demo plays the same). Lime: an input is on; orange: the output is on (taller = a stronger signal, 1 to 15). Time runs left to right in game ticks (20 ticks = 1 s).

a 2-tick pressa 3-tick pressa 4-tick pressa 5-tick pressa 6-tick pressa 8-tick pressa 10-tick pressa 15-tick pressa 20-tick pressa 30-tick pressa 40-tick pressa 60-tick pressa 80-tick pressa 120-tick pressa 160-tick pressa 240-tick pressa 320-tick pressa 480-tick pressa 640-tick pressa 960-tick pressa 1280-tick pressa 1920-tick pressa 2560-tick press3 presses, 2-tick gaps3 presses, 4-tick gaps3 presses, 8-tick gaps3 presses, 16-tick gaps3 presses, 32-tick gapsltrain 253ltrain 2024INOUTticks01002003004005006007008009001000110012001300140015001600170018001900200021002200230024002500260027002800290030003100320033003400350036003700380039004000410042004300440045004600470048004900500051005200530054005500560057005800590060006100620063006400650066006700680069007000710072007300740075007600770078007900800081008200830084008500860087008800890090009100920093009400950096009700980099001000010100102001030010400105001060010700108001090011000111001120011300114001150011600117001180011900120001210012200123001240012500126001270012800129001300013100132001330013400135001360013700138001390014000141001420014300144001450014600147001480014900150001510015200153001540015500156001570015800159001600016100162001630016400165001660016700168001690017000171001720017300174001750017600177001780017900180001810018200183001840018500186001870018800189001900019100192001930019400195001960019700198001990020000201002020020300204002050020600207002080020900210002110021200213002140021500216002170021800219002200022100222002230022400225002260022700228002290023000231002320023300234002350023600237002380023900240002410024200243002440024500246002470024800249002500025100252002530025400255002560025700258002590026000261002620026300264002650026600267002680026900270002710027200273002740027500276002770027800279002800028100282002830028400285002860028700288002890029000291002920029300294002950029600297002980029900300003010030200303003040030500306003070030800309003100031100312003130031400315003160031700318003190032000321003220032300324003250032600327003280032900330003310033200333003340033500336003370033800339003400034100342003430034400345003460034700348003490035000351003520035300354003550035600357003580035900360003610036200363003640036500366003670036800369003700037100372003730037400375003760037700378003790038000381003820038300384003850038600387003880038900390003910039200393003940039500396003970039800399004000040100402004030040400405004060040700408004090041000411004120041300414004150041600417004180041900420004210042200423004240042500426004270042800429004300043100432004330043400435004360043700438004390044000441004420044300444004450044600447004480044900450004510045200453004540045500456004570045800459004600046100462004630046400465004660046700468004690047000471004720047300474004750047600477004780047900480004810048200483004840048500486004870048800489004900049100492004930049400495004960049700498004990050000501005020050300504005050050600507005080050900510005110051200513005140051500516005170051800519005200052100522005230052400525005260052700528005290053000531005320053300534005350053600537005380053900540005410054200543005440054500546005470054800549005500055100552005530055400555005560055700558005590056000561005620056300564005650056600567005680056900570005710057200573005740057500576005770057800579005800058100582005830058400585005860058700588005890059000591005920059300594005950059600597005980059900600006010060200603006040060500606006070060800609006100061100612006130061400615006160061700618006190062000621006220062300624006250062600627006280062900630006310063200633006340063500636006370063800

Swipe the diagram sideways: the whole sequence lasts 63841 ticks (53 min 12.05 s).

Step by step (26 lines)
in  2 ticks (0.1 s): 
in  3 ticks (0.15 s): +4 for 7
in  4 ticks (0.2 s): +4 for 7
in  5 ticks (0.25 s): +4 for 7
in  6 ticks (0.3 s): +4 for 7
in  8 ticks (0.4 s): +4 for 7
in 10 ticks (0.5 s): +4 for 15
in 15 ticks (0.75 s): +4 for 21
in 20 ticks (1 s): +4 for 34
in 30 ticks (1.5 s): +4 for 52
in 40 ticks (2 s): +4 for 70
in 60 ticks (3 s): +4 for 114
in 80 ticks (4 s): +4 for 150
in 120 ticks (6 s): +4 for 230
in 160 ticks (8 s): +4 for 310
in 240 ticks (12 s): +4 for 470
in 320 ticks (16 s): +4 for 630
in 480 ticks (24 s): +4 for 950
in 640 ticks (32 s): +4 for 1270
in 960 ticks (48 s): +4 for 1910
in 1,280 ticks (1 min 4 s): +4 for 2270
in 1,920 ticks (1 min 36 s): +4 for 2910
in 2,560 ticks (2 min 8 s): +4 for 3550
trains of 4 ticks (0.2 s) inputs: not measured (min-pulse 1,280 ticks (1 min 4 s)); trains of the longest input instead
3 inputs 253 ticks (12.65 s) apart: +4 for 9176
3 inputs 2,024 ticks (1 min 41.2 s) apart: +4 for 3550, +4588 for 3550, +9172 for 3550

Measurements

metricvaluewhat it means
L990 ticks (49.5 s)how long the output stays on after the input turns off
latency4 ticks (0.2 s)game ticks from the input turning on to the output turning on
min-pulse1,280 ticks (1 min 4 s)the shortest input pulse handled correctly (every longer one works too)

Notes from its designer

Keeps its output on for about 50 seconds (990 ticks) after the input turns off, in 8 blocks: two hoppers pass 125 cobblestone back and forth, and a comparator keeps the output on while the first hopper still holds any; it needs an input about as long as its delay to load the items back (one per 8 ticks), and no hopper top a stray item can reach. .

Properties

StudyTimers and pulse multipliers
KindStay-on timer (off-delay)
Blocks placed8 (not counting the input levers or buttons and the lamp the view adds)
Box2×3×2 (12 blocks of space)
Made of (the blocks that change state)comparator, hopper, redstone torch
Inputs / outputsIN (repeater) / OUT
Flagsseveral versions of one mechanism
Design fileoff-delay-item-timer-L990-sealed-v12-8b

The design file

on GitHub

Design file (24 lines)
# Stay-on timer: stays on 990 ticks (49.5 s) after · 8 blocks
# https://vjeux.github.io/redstonepedia/circuits/pulsemult/off-delay-item-timer-L990-sealed-v12-8b.html
name: off-delay-item-timer-L990-sealed-v12-8b
circuit: off-delay
port input: 0 0 0
port output: 0 1 2
nbt: 1 1 0 {Items:[{Slot:0b,id:"minecraft:cobblestone",count:64},{Slot:1b,id:"minecraft:cobblestone",count:61}]}
origin: 0 0 0
palette:
  C minecraft:comparator[facing=north,mode=compare,powered=false]
  G minecraft:glass
  H minecraft:hopper[enabled=true,facing=east]
  R minecraft:redstone_wall_torch[facing=east,lit=true]
  S minecraft:stone
  h minecraft:hopper[enabled=true,facing=west]
layer 0:
  SR
  H
layer 1:
  Hh
  C
layer 2:
  GG
  .