REDSTONEPEDIA › Circuits › Timers and pulse multipliers

Rapid fire while on (gated clock)

a pulse every 16 ticks (0.8 s) · 12 blocks

While the input is on, the output pulses every 16 ticks (0.8 s).

4 to 8 ticks (0.2 s to 0.4 s) pulses · first after 2 ticks (0.1 s) · made of comparator, redstone wire, repeater · fits in 2×2×3

a pulse every 16 ticks (0.8 s)Rapid fire while on3D view loading (or not available in this browser)

Every size 5

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

sizeblocksnumbers
4 ticks (0.2 s)3 blocks2 ticks (0.1 s) pulses · first after 2 ticks (0.1 s)
8 ticks (0.4 s)12 blocks4 ticks (0.2 s) pulses · first after 2 ticks (0.1 s)
12 ticks (0.6 s)12 blocks6 ticks (0.3 s) pulses · first after 2 ticks (0.1 s)
16 ticks (0.8 s) (this page)12 blocks4 to 8 ticks (0.2 s to 0.4 s) pulses · first after 2 ticks (0.1 s)
20 ticks (1 s)12 blocks10 ticks (0.5 s) pulses · first after 2 ticks (0.1 s)

Try it

Tap IN under the view to turn the input on, again to turn it off: turn it on and OUT keeps flashing red until you turn it off (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: While the input is held on it beats like a metronome, one short pulse every 16 ticks, and it stops as soon as the input goes off.

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.

Blocks used: comparator redstone wire repeater stone

Details: how it works, measurements and properties

In depth

While the input is on, the output pulses every 16 ticks (0.8 s) (1.25 pulses a second, each 4-8 ticks long): a clock with an on switch, for rapid fire from dispensers and droppers while a lever is on.

The first pulse comes 2 ticks (0.1 s) after the input turns on. When the input turns off, no pulse starts more than 2 ticks (0.1 s) later.

How to try it

Press play under the view to watch the demo on a loop: the input held on for 20, 60 and then 200 ticks (10 s): the output pulses every 16 ticks (0.8 s) while it is on and stops after. 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 and the output pulses every 16 ticks (0.8 s) until you turn it off.

Inputs are tagged in lime; the output is tagged OUT: the orange glass marker next to it glows 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).

input on for 20 ticksinput on for 60 ticksinput on for 200 ticksINOUTticks050100150200250300350400450500550600

Swipe the diagram sideways: the whole sequence lasts 621 ticks (31.05 s).

Step by step (3 lines)
held 20 ticks (1 s): 2 pulses, first +2
held 60 ticks (3 s): 4 pulses, first +2
held 200 ticks (10 s): 13 pulses, first +2

Measurements

metricvaluewhat it means
P16 ticks (0.8 s)game ticks between two output pulses while the input is on
pulse4-8 ticksthe length of each output pulse
latency2 ticks (0.1 s)game ticks from the input turning on to the first output pulse
stop2 ticks (0.1 s)the latest an output pulse starts after the input turns off (0 or less: none after)

Notes from its designer

While the input is held on it beats like a metronome, one short pulse every 16 ticks, and it stops as soon as the input goes off. Detail: a comparator in subtract mode whose own output comes back to its side through dust and a delay-3 repeater, so it switches itself off and on again; the first pulse comes right after the input turns on

Properties

StudyTimers and pulse multipliers
KindRapid fire while on (gated clock)
Blocks placed12 (not counting the input levers or buttons the view adds)
Box2×2×3 (12 blocks of space)
Made of (the blocks that change state)comparator, redstone wire, repeater
Inputs / outputsIN (repeater) / OUT
Design filepm-train-comparator-d3

The design file

on GitHub

Design file (20 lines)
# Rapid fire while on: a pulse every 16 ticks (0.8 s) · 12 blocks
# https://vjeux.github.io/redstonepedia/circuits/pulsemult/pm-train-comparator-d3.html
name: pm-train-comparator-d3
circuit: pulse-train
port input: -1 1 0
port output: 1 1 0
origin: 0 0 0
palette:
  S minecraft:stone
  C minecraft:comparator[facing=west,mode=subtract,powered=false]
  d minecraft:redstone_wire[east=side,north=side,power=0,south=side,west=side]
  r minecraft:repeater[delay=3,facing=south,locked=false,powered=false]
layer 0:
  SS
  SS
  SS
layer 1:
  Cd
  rd
  dd