Redstone Diodes

Redstone repeaters and comparators act as Minecraft's diodes, restricting redstone signals to a single direction while offering unique logic functions. You will use repeaters to boost signals back to full strength, add precise tick delays, or lock states, whereas comparators maintain specific signal strengths, compare or subtract inputs, and measure how full containers are.

Signal TransmissionBeginnerJava Edition
Redstone Diodes video tutorial

Video: What You Don't Know About Minecraft's Diodes | PRR 2 by

How to build it

  1. Extend and Delay with a Repeater

    Place a Redstone Repeater on a solid surface with the red track pointing toward your input signal and the single front torch pointing toward your output. Any signal entering the back will be boosted to a full power level of 15 at the front after a default delay of 2 game ticks.

  2. Adjust Repeater Timing

    Right-click the repeater to move the sliding torch along the track, increasing the delay by 2 game ticks per click up to a maximum of 8 game ticks. To create an exact 1-second (20 game tick) delay using the fewest blocks, place three repeaters in a row set to 8, 8, and 4 game ticks.

  3. Lock a Repeater's State

    Place a second repeater or a comparator facing directly into the left or right side of your main repeater. When you power this side input, a bedrock bar appears across the main repeater, freezing its current output (on or off) until the side power is turned off.

  4. Set Up Comparator Compare Mode

    Place a Redstone Comparator with the two back torches facing your main input and the single front torch unlit. Run a side input into either side using redstone dust, a repeater, or another comparator; the block will pass the main input signal forward without boosting it, provided the main input is greater than or equal to the strongest side input.

  5. Switch to Subtract Mode

    Right-click the comparator so the front torch turns on, putting it into subtract mode. Now, when power enters the back and the side simultaneously, the comparator outputs a signal strength equal to the main input minus the highest side input.

  6. Build a Comparator Fadeout Clock

    Place two comparators beside each other facing opposite directions to form a loop. Connect one end with two pieces of redstone dust and the other end with a solid block plus one redstone dust so the signal drops by 1 power level per loop, extending a full power 15 pulse for 60 game ticks.

  7. Measure Containers Through Blocks

    Place a container (such as a chest, hopper, or lectern) and put a solid conductive block directly against it. Place a comparator facing away from that solid block to read the container's fullness and convert it into a proportional signal strength from 0 to 15.

How it works

Both components require a solid bottom rim for placement, take 2 game ticks by default to process signals, and transfer power in one direction from back to front through conductive blocks.

  • Repeater Mechanics: Regardless of how weak the incoming signal is, a repeater always outputs a full signal strength of 15. A repeater also cannot output a pulse shorter than its current delay setting; sending a 2-tick pulse into an 8-tick repeater stretches the output into an 8-tick pulse.
  • Comparator Logic: Unlike repeaters, a comparator preserves the exact incoming signal strength. In Compare Mode (front torch off), if the back input is A and the highest side input is B, the output is A when A ≥ B, and 0 when A < B. In Subtract Mode (front torch on), the output is simply max(A - B, 0).
  • Container Reading: A comparator averages the fullness of all slots in a container (factoring in whether items stack to 64, 16, or 1), multiplies that average by 14, rounds down, and adds 1 if at least one item is inside. It also reads special block states like Cakes (up to 14), Cauldrons (0–3), Composters (0–8), Chiseled Bookshelves (1–6 based on last slot used), Crafters (0–9 based on filled or locked slots), Copper Bulbs (0 or 15), and Lecterns.

Tips & variations

  • Hexadecimal Memory Cell: When building a comparator fadeout pulse extender, accidentally using solid blocks on both ends without letting the redstone dust decay by 1 power level creates an infinite loop that remembers whatever signal strength you input.
  • Container Override Trick: When a comparator reads a container through a solid block, it ignores any redstone dust powering that block at signal strengths 1 through 14. However, powering that intermediate block at a full strength of 15 overrides the container reading and forces the comparator to output 15.
  • Blocked Chests: A chest with a solid block or a sitting cat on top cannot be opened and will output a signal strength of 0 to a comparator regardless of how many items are inside.
  • Short Pulse Delays: If you need to delay a 2-tick pulse by 8 game ticks without stretching the pulse length, chain four 2-tick repeaters in a row rather than using a single 8-tick repeater.

Frequently asked questions

What is the difference between a repeater and a comparator?
A repeater always boosts any incoming signal to a full power level of 15 and allows you to adjust its delay from 2 to 8 game ticks. A comparator preserves the exact input signal strength, operates at a fixed 2-game-tick delay, can compare or subtract side inputs, and reads the fullness of containers.
How do you lock a redstone repeater?
Point a second repeater or a comparator directly into the left or right side of the repeater and power it. A bedrock bar will appear on the locked repeater, keeping its output frozen on or off until the side power is removed.
Why is my comparator fadeout clock pulsing on and off instead of giving a steady signal?
Your input pulse is shorter than the 4 game ticks it takes for the signal to travel once around a 2-comparator loop. Make sure the input pulse lasts at least as long as the loop's total delay so the signal remains continuous while decaying.

Components used

More diode / one-way