Compact Set-Reset Latch

A Set-Reset latch (or RS NOR latch) is a fundamental redstone memory circuit that remembers which of its two inputs was powered most recently. This compact 4x2 design replaces the wider traditional torch-and-dust layout with redstone comparators in subtraction mode. It is ideal for tight spaces where you need to toggle a contraption on from one trigger and reset it from another.

Memory CircuitsBeginnerJava Edition
Compact Set-Reset Latch video tutorial

Video: Minecraft Redstone Update: Compact Set-Reset Latch by skaterzero807

How to build it

  1. Place the Constant Power Torches

    Clear a 4x2 flat area. Place two redstone torches at the two back corners of the 4-block-wide footprint so they sit on the outer columns with two empty spaces between them.

  2. Add Comparators in Subtraction Mode

    In front of the two torches, in the inner two columns, place two redstone comparators facing forward (away from the torches) so each torch powers the rear input of a comparator. Right-click both comparators to turn their front torches on, putting them into subtraction mode.

  3. Place the Cross-Coupled Redstone Dust

    Place one piece of redstone dust directly in front of each comparator. Because the two comparators sit side-by-side, the dust in front of the left comparator will automatically feed into the side of the right comparator, and vice versa.

  4. Connect the Set and Reset Inputs

    Connect your Set and Reset input triggers (such as buttons or levers) to the two pieces of redstone dust at the front, and take your circuit output from either of the two dust lines.

How it works

This latch uses two side-by-side Redstone Comparators in subtraction mode to lock each other into opposite states:

  • Constant Rear Input: Each redstone torch feeds a constant signal strength of 15 into the back of its comparator.
  • Subtraction Loop: In subtraction mode, a comparator calculates Rear - Side. The redstone dust in front of the left comparator powers the side of the right comparator, and the dust in front of the right comparator powers the side of the left comparator.
  • Holding Memory: When the left dust is at strength 15, it feeds 15 into the side of the right comparator. The right comparator computes 15 - 15 = 0, turning the right dust off. Because the right dust is 0, the left comparator computes 15 - 0 = 15, keeping its own dust powered at 15 even after the input button turns off.
  • Switching States: Powering the unlit side forces that dust up to signal strength 15. This immediately subtracts 15 from the opposite comparator, dropping its output to 0 and flipping the stored memory state.

Tips & variations

  • Don't Forget Subtraction Mode: Make sure the front torch on both comparators is lit. While comparison mode also cancels at equal signal strength, the design specifically relies on subtraction mode (`15 - 15 = 0`).
  • Inputs: Temporary pulse inputs like buttons or pressure plates work best for Set and Reset lines. Avoid leaving both Set and Reset permanently powered with levers at the same time, as forcing both sides to 15 prevents the latch from toggling cleanly.
  • Dual Outputs: You can take your output from either of the two front redstone dust pieces depending on whether you need an active-high or active-low signal.

Frequently asked questions

What does an RS NOR latch do in Minecraft?
An RS NOR (Set-Reset) latch stores one bit of memory. Pressing the Set input turns the output on and keeps it on, while pressing the Reset input turns the output back off until Set is triggered again.
Why won't my comparator latch change states?
Check that both comparators have a redstone torch at their rear input, both have their front subtraction torch turned on, and that your Set or Reset input isn't permanently locked on by a lever.
How big is this comparator RS latch?
The core memory cell takes up a 4x2 footprint (1 block tall, plus 1 block above ground if placed on a solid floor).

Components used

More rs latch