Redstone Computer Register

A register is a vital memory component in a Minecraft redstone computer that temporarily holds data—such as a 4-bit binary number—for the CPU and Arithmetic Logic Unit (ALU). This tutorial shows you how to build a 4-bit accumulator register using locked repeaters for data storage and comparator-based gates to control when data is written or read.

Memory CircuitsIntermediateJava Edition
Redstone Computer Register video tutorial

Video: Redstone Computer Tutorial - Episode 12 - Building the First Register by Redstone Without Limits

How to build it

  1. Lay Out the 4-Bit Data Lines

    Place four parallel lines of building blocks (such as black wool) with one-block gaps between them to represent the four bits of your register. Leave at least two blocks of space between the stages along the length of the lines.

  2. Install the Repeater Locks

    Place one redstone repeater on each of the four data lines to hold the incoming bits. Next to each data repeater, place a second repeater facing directly into its side so it can lock and unlock the data repeater.

  3. Wire the Clock Line

    Build a bridge line of blocks across the four locking repeaters, stepping up over the data lines as needed so the signals do not cross. Run redstone dust along this bridge into all four locking repeaters and place a redstone torch at the control end so the repeaters stay locked by default.

  4. Build the Input Enable Gates

    At the input end of the four data lines, place a redstone comparator on each line and right-click it to turn on subtraction mode (front torch lit). These comparators act as toggle switches to control when data is allowed into the register.

  5. Connect the Write Enable Line

    Run a horizontal redstone line across the sides of all four input comparators and power it with a redstone torch. When this torch is active, it subtracts full signal strength from the comparators and blocks incoming data until you invert the line to enable writing.

  6. Build the Output Enable Gates

    Extend the four data lines out from the back of the storage repeaters using stone blocks. Place another set of four redstone comparators on these output lines and set all four to subtraction mode.

  7. Connect the Read Enable Line

    Run a second horizontal redstone line feeding into the sides of the four output comparators, powered by another redstone torch. This keeps the stored value from automatically flowing out to the rest of the CPU until the read line is enabled.

  8. Test Loading and Reading a Value

    Input a 4-bit binary number (like 0101 for 5) at the front, power the input enable line to let the data reach the repeaters, and send a quick pulse to the clock line to lock the value in place. Toggle the output enable line whenever you want to send the stored number out to your ALU.

How it works

This 4-bit accumulator register relies on two core vanilla redstone mechanics: repeater locking and comparator subtraction gates.

  • Input Gating (Write Enable): Each of the 4 input bits passes through a redstone comparator set to subtraction mode. A perpendicular control line powered by a redstone torch feeds signal strength into the side of every comparator, blocking signals from passing through. Turning off that torch enables the input, letting the 4-bit binary data reach the storage stage.
  • Memory Storage (Clocking): Each bit line has a redstone repeater with a second repeater pointing into its side. Because the side repeaters are powered by a default-on torch line, the data repeaters remain locked (displaying a bedrock bar) and hold their current on/off state indefinitely. Sending a brief pulse to turn off the locking torch unlocks the repeaters just long enough to capture the new 4-bit value before locking it again.
  • Output Gating (Read Enable): A second bank of subtraction-mode comparators sits on the output lines. Even though the locked repeaters continuously output their stored bits, the output comparators block the signal until the control unit toggles the read-enable line to send the data to the ALU.

Tips & variations

  • Signal Reach across 4 Bits: A single redstone torch has a signal strength of 15, which easily stretches across all four bit lines for the enable and clock controls without needing extra repeaters in the middle.
  • Color Coding: Use distinct blocks (like black wool for the register body and stone for data buses) so you can easily trace input, output, read, and write lines as your CPU grows.
  • Clock Pulse Timing: When loading a value, make sure the input enable line is active before and during the clock pulse; if you disable the input before the locking repeaters re-lock, the register will store zeroes instead.

Frequently asked questions

What is an accumulator register in a redstone computer?
An accumulator is the primary register in a CPU that temporarily stores numbers entering or leaving the Arithmetic Logic Unit (ALU) during calculations like addition.
Why are the comparators placed in subtraction mode?
In subtraction mode, powering the side of a comparator with full signal strength reduces its output to zero, allowing a single control line to act as an ON/OFF gate for all four bits at once.
How do you load a number into the register?
Set your 4-bit binary input, turn on the input enable line so the signal reaches the repeaters, and send a short pulse to the clock line to unlock and re-lock the repeaters.
Can this register be expanded to 8 bits?
Yes, the design is tileable. You can add four more parallel data lines alongside the existing ones, though you may need a repeater on the horizontal control lines if the wire exceeds 15 blocks.

Components used

More register / shift register