Vertical Binary Up/Down Counter

This vertical binary up/down counter is a stackable ripple counter capable of incrementing, decrementing, and resetting back to zero. It uses a repeater-locking T flip-flop paired with subtract-mode comparators and target blocks in each vertical cell. This circuit is ideal for technical redstone projects, scoreboards, and computational builds where you need to track values in binary.

Memory CircuitsIntermediateJava & Bedrock
Vertical Binary Up/Down Counter video tutorial

Video: Vertical Binary Up/Down Counter Tutorial - Minecraft Bedrock/Java by

How to build it

  1. Build the Core Locking T Flip-Flop

    Start the first cell by placing a 1-tick repeater feeding into a solid block with a redstone torch or output line, and set up a perpendicular repeater to lock it. Behind the locking repeater, place a comparator set to subtract mode so it can accept inputs from the rear and sides.

  2. Create the Comparator Pulse Generator

    Feed another subtract-mode comparator into the first comparator to act as a pulse generator. Place a 1-tick repeater running alongside it into its side input, and place a Target block behind the circuit so the incoming redstone dust redirects cleanly with equal signal strength into both paths.

  3. Place the Item Barrel

    Place a Barrel filled with items next to the side of the first subtract-mode comparator. The comparator reads a constant signal strength from the barrel without accidentally powering adjacent redstone dust like a redstone block would.

  4. Add the Carry-Out Torch

    Extend a block diagonally up from the output side of the T flip-flop and attach a Redstone Torch. This torch inverts the cell's state and serves as the carry signal to trigger the next cell stacked above it.

  5. Install the Decrement Line

    Replace the redstone dust at the input of the T flip-flop with a Target block. Build a vertical zig-zag tower of Glass blocks behind it with redstone dust on top so a vertical signal can feed into both the repeater and the Target block simultaneously.

  6. Wire the Reset Logic

    Off the side of the cell, place a block with a repeater set to 3 ticks (this exact delay is required) leading into a block with redstone dust, followed by a 1-tick repeater aiming into a solid block. This timing unlocks the T flip-flop repeater first and then pulses the cell to force its output to zero.

  7. Add the Vertical Reset Tower

    Swap the redstone dust on the reset line with a Target block. Build a second vertical Glass block tower with redstone dust alongside it so a single reset signal can travel vertically through every stacked cell.

  8. Stack the Counter Cells Vertically

    Duplicate the entire cell directly on top of the first one for as many binary bits as you need (the bottom cell is the least significant bit, and the top cell is the most significant bit). Ensure the redstone torch from each lower cell feeds into the input of the cell directly above it, and connect the two vertical glass towers.

  9. Build the Increment, Decrement, and Reset Inputs

    At the bottom cell's carry-in, place a Button for the Increment input (removing any unused carry torch at the very bottom). Connect the Reset glass tower to a subtract-mode comparator pulse generator using two repeaters (set to 4 ticks and 2 ticks) triggered by a Button. Connect the Decrement glass tower to a fast 1-tick comparator pulse generator with its own Button, and attach Redstone Lamps to the cell outputs to read your binary number.

How it works

Each vertical slice of this counter is a 1-bit memory cell built around a repeater-locking T flip-flop:

  • Counting Up (Increment): Pressing the increment button toggles the bottom cell (least significant bit). Each cell has an inverted output torch that acts as the carry line. When a cell transitions from 1 back to 0, its carry torch turns on and sends a pulse through the subtract-mode comparator pulse generator of the cell above it, causing a ripple carry up the stack.
  • Target Block Redirection: The subtract-mode comparator in the pulse generator requires equal signal strength at its rear and side to cut off the pulse properly. Using a Target block redirects the redstone dust directly into the comparator and repeater without signal loss.
  • Counting Down (Decrement): Pulsing the decrement glass tower sends a 1-tick pulse into every cell simultaneously, flipping the states in reverse ripple order. Because it is a ripple counter, you will briefly see transition states on the lamps while the signal settles.
  • Resetting to Zero: The reset line uses a 3-tick repeater and a 1-tick repeater to unlock the T flip-flop while forcing its state off. Cells currently at 1 drop to 0, while cells already at 0 remain at 0.

Tips & variations

  • Java vs. Bedrock Glass Towers: In Bedrock Edition, redstone signals can travel both up and down a glass block tower. In Java Edition, redstone signals can only travel up a transparent glass tower, so you must place your Reset and Decrement pulse generators at the very bottom of the counter.
  • Faster Down Counter Variant: Because decrementing across all cells triggers extra transition states, it is slightly slower than incrementing. If you only need a fast down counter, simply place blocks and redstone torches on the output to invert the display lamps, and use the fast Increment button to count down.
  • Extending Past 15 Blocks: If you stack enough bits that the vertical glass lines exceed a redstone signal strength of 15, insert a solid block and redstone torches along the tower to repeat the signal upward.
  • Critical Timing: Make sure the reset line repeater is set to 3 ticks and the decrement pulse generator repeater is set to 1 tick; other delays will cause the counter to miscount.

Frequently asked questions

Why does the decrement button count to the wrong binary number?
Check the pulse generator connected to the decrement glass tower. Its repeater must be set to 1 tick; a longer pulse like 3 ticks keeps the comparators unlocked too long and ruins the count.
Why do the top cells not reset or decrement on Java Edition?
On Java Edition, redstone dust on glass towers only transmits power upward. Make sure your reset and decrement input buttons and pulse generators are wired into the bottom of the glass towers, not the middle or top.
Why is a Barrel with items used instead of a Block of Redstone?
A Block of Redstone would power the adjacent redstone dust and disrupt the circuit, whereas a Barrel filled with items only provides a signal when read directly by the comparator.

Components used

More counter