REDSTONEPEDIA › Circuits › Memory and counters

Counter: counts pulses and reacts on a set count

toggles every 33rd pulse · 23 blocks

Every 33rd input pulse the output flips: on for 33 pulses, off for the next 33.

fits in 5×3×3

toggles every 33rd pulseCounter3D view loading (or not available in this browser)

Every size 39

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

sizeblocksnumbers
every 2nd3 blocks
every 3rd11 blocks
every 4th6 blocks
every 5th19 blocks
every 6th14 blocks
every 7th25 blocks
every 8th9 blocks
every 9th23 blocks
every 10th22 blocks
every 11th23 blocks
every 12th17 blocks
every 13th23 blocks
every 14th28 blocks
every 15th23 blocks
every 16th12 blocks
every 17th23 blocks
every 18th26 blocks
every 19th23 blocks
every 20th25 blocks
every 21st23 blocks
every 22nd23 blocks
every 23rd23 blocks
every 24th20 blocks
every 25th23 blocks
every 26th23 blocks
every 27th23 blocks
every 28th23 blocks
every 30th23 blocks
every 32nd15 blocks
every 33rd (this page)23 blocks
every 34th23 blocks
every 36th29 blocks
every 38th23 blocks
every 39th23 blocks
every 40th28 blocks
every 45th23 blocks
every 48th23 blocks
every 100th23 blocks
every 576th23 blocks

Try it

Hold IN under the view for a long press, tap it for a short one: the demo counts the 33 pulses for you: pick 100× in the speed dropdown and watch OUT change (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. Its count is the number of items in its droppers: they pass the items one way per pulse, and the numbers over them show how many each holds. Load another number of items (stone here) to make it react on that count.

How this design does it: Counter 33, with items.

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 33 stone in its containers: the download includes them; building it by hand, put them in first.

Blocks used: comparator copper bulb dropper redstone torch redstone wire stone

Details: how it works, measurements and properties

In depth

It counts input pulses: the output flips once every 33 input pulses: on for 33 pulses, then off for 33. In other words, it divides the number of pulses by 33.

Use it to do something every 33rd time, or to slow a fast clock down 33 times.

How to try it

Press play under the view to watch the demo on a loop (the badge reads demo with the step it is on; the same sequence is drawn as a timing diagram below). Touch any control to stop it and try the circuit yourself.

To try it: press and hold the IN button of the bar (or the cell tagged IN) to power that input; a quick tap sends a short 2-tick pulse.

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).

press 3 200press 11 200press 19 200press 27 200INOUTticks0100200300400500600700800900100011001200130014001500160017001800190020002100220023002400250026002700280029003000310032003300340035003600370038003900400041004200430044004500

Swipe the diagram sideways: the whole sequence lasts 4601 ticks (3 min 50.05 s).

Step by step (133 lines)
pulse 1: output 0 (level 0)
pulse 2: output 0 (level 0)
pulse 3: output 0 (level 0)
pulse 4: output 0 (level 0)
pulse 5: output 0 (level 0)
pulse 6: output 0 (level 0)
pulse 7: output 0 (level 0)
pulse 8: output 0 (level 0)
pulse 9: output 0 (level 0)
pulse 10: output 0 (level 0)
pulse 11: output 0 (level 0)
pulse 12: output 0 (level 0)
pulse 13: output 0 (level 0)
pulse 14: output 0 (level 0)
pulse 15: output 0 (level 0)
pulse 16: output 0 (level 0)
pulse 17: output 0 (level 0)
pulse 18: output 0 (level 0)
pulse 19: output 0 (level 0)
pulse 20: output 0 (level 0)
pulse 21: output 0 (level 0)
pulse 22: output 0 (level 0)
pulse 23: output 0 (level 0)
pulse 24: output 0 (level 0)
pulse 25: output 0 (level 0)
pulse 26: output 0 (level 0)
pulse 27: output 0 (level 0)
pulse 28: output 0 (level 0)
pulse 29: output 0 (level 0)
pulse 30: output 0 (level 0)
pulse 31: output 0 (level 0)
pulse 32: output 0 (level 0)
pulse 33: output 1 (level 15), changed
pulse 34: output 1 (level 15)
pulse 35: output 1 (level 15)
pulse 36: output 1 (level 15)
pulse 37: output 1 (level 15)
pulse 38: output 1 (level 15)
pulse 39: output 1 (level 15)
pulse 40: output 1 (level 15)
pulse 41: output 1 (level 15)
pulse 42: output 1 (level 15)
pulse 43: output 1 (level 15)
pulse 44: output 1 (level 15)
pulse 45: output 1 (level 15)
pulse 46: output 1 (level 15)
pulse 47: output 1 (level 15)
pulse 48: output 1 (level 15)
pulse 49: output 1 (level 15)
pulse 50: output 1 (level 15)
pulse 51: output 1 (level 15)
pulse 52: output 1 (level 15)
pulse 53: output 1 (level 15)
pulse 54: output 1 (level 15)
pulse 55: output 1 (level 15)
pulse 56: output 1 (level 15)
pulse 57: output 1 (level 15)
pulse 58: output 1 (level 15)
pulse 59: output 1 (level 15)
pulse 60: output 1 (level 15)
pulse 61: output 1 (level 15)
pulse 62: output 1 (level 15)
pulse 63: output 1 (level 15)
pulse 64: output 1 (level 15)
pulse 65: output 1 (level 15)
pulse 66: output 0 (level 0), changed
pulse 67: output 0 (level 0)
pulse 68: output 0 (level 0)
pulse 69: output 0 (level 0)
pulse 70: output 0 (level 0)
pulse 71: output 0 (level 0)
pulse 72: output 0 (level 0)
pulse 73: output 0 (level 0)
pulse 74: output 0 (level 0)
pulse 75: output 0 (level 0)
pulse 76: output 0 (level 0)
pulse 77: output 0 (level 0)
pulse 78: output 0 (level 0)
pulse 79: output 0 (level 0)
pulse 80: output 0 (level 0)
pulse 81: output 0 (level 0)
pulse 82: output 0 (level 0)
pulse 83: output 0 (level 0)
pulse 84: output 0 (level 0)
pulse 85: output 0 (level 0)
pulse 86: output 0 (level 0)
pulse 87: output 0 (level 0)
pulse 88: output 0 (level 0)
pulse 89: output 0 (level 0)
pulse 90: output 0 (level 0)
pulse 91: output 0 (level 0)
pulse 92: output 0 (level 0)
pulse 93: output 0 (level 0)
pulse 94: output 0 (level 0)
pulse 95: output 0 (level 0)
pulse 96: output 0 (level 0)
pulse 97: output 0 (level 0)
pulse 98: output 0 (level 0)
pulse 99: output 1 (level 15), changed
pulse 100: output 1 (level 15)
press 1 20: output 1 (level 15)
press 2 30: output 1 (level 15)
press 3 200: output 1 (level 15)
press 4 20: output 1 (level 15)
press 5 30: output 1 (level 15)
press 6 20: output 1 (level 15)
press 7 30: output 1 (level 15)
press 8 20: output 1 (level 15)
press 9 20: output 1 (level 15)
press 10 30: output 1 (level 15)
press 11 200: output 1 (level 15)
press 12 20: output 1 (level 15)
press 13 30: output 1 (level 15)
press 14 20: output 1 (level 15)
press 15 30: output 1 (level 15)
press 16 20: output 1 (level 15)
press 17 20: output 1 (level 15)
press 18 30: output 1 (level 15)
press 19 200: output 1 (level 15)
press 20 20: output 1 (level 15)
press 21 30: output 1 (level 15)
press 22 20: output 1 (level 15)
press 23 30: output 1 (level 15)
press 24 20: output 1 (level 15)
press 25 20: output 1 (level 15)
press 26 30: output 1 (level 15)
press 27 200: output 1 (level 15)
press 28 20: output 1 (level 15)
press 29 30: output 1 (level 15)
press 30 20: output 1 (level 15)
press 31 30: output 1 (level 15)
press 32 20: output 0 (level 0), changed
press 33 20: output 0 (level 0)

Measurements

metricvaluewhat it means
N33how many input pulses one output cycle takes
outputtoggles every 33 pulseshow the output shows the count: toggles (flips every N), pulses (one pulse every N) or level (its state repeats every N)
countsone pulse per 66 inputs (toggles every 33: a square wave
adivider by 66)

Notes from its designer

Counter 33, with items.

Properties

StudyMemory and counters
KindCounter: counts pulses and reacts on a set count
Blocks placed23 (not counting the input levers or buttons and the lamp the view adds)
Box5×3×3 (45 blocks of space)
Made of (the blocks that change state)comparator, copper bulb, dropper, redstone torch, redstone wire
Inputs / outputsIN (repeater) / OUT
Design filecounter33-items-v45-23b

The design file

on GitHub

Design file (37 lines)
# Counter: toggles every 33rd pulse · 23 blocks
# https://vjeux.github.io/redstonepedia/circuits/memory/counter33-items-v45-23b.html
name: counter33-items-v45-23b
circuit: counter 33
port input: 1 2 0
port output: 0 0 1
nbt: 0 1 0 {Items:[{Slot:0b,id:"minecraft:stone",count:33}]}
origin: -2 0 -2
palette:
  A minecraft:comparator[facing=south,mode=compare,powered=false]
  B minecraft:dropper[facing=west,triggered=true]
  C minecraft:comparator[facing=east,mode=compare,powered=true]
  D minecraft:dropper[facing=east,triggered=false]
  E minecraft:redstone_wall_torch[facing=west,lit=true]
  F minecraft:redstone_wire[east=side,north=side,power=0,south=side,west=side]
  R minecraft:redstone_torch[lit=true]
  S minecraft:stone
  W minecraft:waxed_copper_bulb[lit=false,powered=true]
  c minecraft:comparator[facing=north,mode=compare,powered=false]
  d minecraft:dropper[facing=up,triggered=true]
  r minecraft:redstone_wall_torch[facing=north,lit=false]
layer -1:
  .
  ..d
  ...S
layer 0:
  DSW
  ..cB
  .SSFS
layer 1:
  FFES
  r..A
  SCDBR
layer 2:
  .
  .
  ...F