Redstonery
RedstoneryCircuits › Locked repeater latch
Memory circuit

Locked repeater latch

Hold a sampled logic level with a lock input.

5 × 3 footprint1 layer7 blocksTested in 4 rotationsJava Edition 26.2
Open in the simulatorBuild it in the game

Layout

Layer 0 (on the floor)
lever [face=floor, facing=north, powered=false] at x 0, z 0redstone dust at x 1, z 0repeater [facing=west, delay=1] at x 2, z 0redstone dust at x 3, z 0redstone lamp at x 4, z 0repeater [facing=south, delay=1] at x 2, z 1lever [face=floor, facing=north, powered=false] at x 2, z 2
redstone dustrepeater or comparatorinputlamparrows point where a device sends its output; north is up

How it works

A repeater whose side is fed by another repeater locks and holds its output. Data on the left lever, lock on the bottom lever.

  1. The data repeater normally follows its input after its delay.
  2. A powered side repeater locks it, preserving the previous output even while data changes.

Inputs and outputs

  • Inputdata (x 0, y 0, z 1)
  • Inputlock (x 2, y 0, z 3)
  • Outputheld while locked (x 4, y 0, z 1)

Blocks you need

2 × lever, 2 × redstone dust, 2 × repeater, 1 × redstone lamp.

Build it in the game: 7 commands

Relative to where you stand, with x running east and z running south. Paste one line at a time into chat, or into a chain of command blocks. The block art is the game's own; the layout is what the page above shows.

setblock ~0 ~0 ~1 minecraft:lever[face=floor,facing=north,powered=false]
setblock ~1 ~0 ~1 minecraft:redstone_wire
setblock ~2 ~0 ~1 minecraft:repeater[facing=west,delay=1]
setblock ~3 ~0 ~1 minecraft:redstone_wire
setblock ~4 ~0 ~1 minecraft:redstone_lamp
setblock ~2 ~0 ~2 minecraft:repeater[facing=south,delay=1]
setblock ~2 ~0 ~3 minecraft:lever[face=floor,facing=north,powered=false]