
Video: Logical Redstone Tutorial 3: 2 Tick pipelineable X,Y decoder with Passthrough! by WildEngineering
How to build it
- Prepare Signal Strength 14 and 15 Barrels
Fill barrels (or furnaces) with items so that one set outputs a comparator signal strength of 15 (completely full) and another set outputs signal strength 14. In creative mode, you can rename and middle-click (+NBT) these containers to place pre-filled barrels quickly.
- Build the Base Decoder Cell
Create two parallel horizontal lines of building blocks for a 2-wide cell. Place a signal strength 15 barrel at the start of the cell with a comparator reading from it, flanked by 1-tick repeaters on the sides to control the X and Y input gates.
- Add the Signal Strength 14 Passthrough Gate
Set the main line comparator to subtract mode. Place a side comparator pointing into it reading from a signal strength 14 barrel so that 15 minus 14 leaves a signal strength of 1, allowing back-plane data to pass through without bleeding into adjacent cells.
- Stack the Horizontal Y-Axis Line
Repeat or stack the 2-wide cell horizontally 15 times to create 16 total column outputs. Because redstone dust loses power after 15 blocks, insert a repeater along the horizontal line to extend the signal and add matching repeater delay earlier in the line to keep all outputs synchronized.
- Build the Vertical X-Axis Ladder
Construct a slab tower on the input side to carry the X-axis signals vertically across 16 rows. Leave a 4-block wide gap for the input lines so there is enough room to insert vertical signal extenders where the dust runs out of power.
- Sync Vertical Delays for 2-Tick Pulses
Ensure every vertical branch takes exactly 3 ticks to reach its row. Where a 3-tick delay is needed, do not use a single 3-tick repeater (which drops 2-tick pulses); instead, chain a 2-tick repeater into a 1-tick repeater separated by a solid block.
- Stack the Full 16x16 Matrix
Stack the horizontal rows and passthrough assemblies vertically to complete the 16x16 grid. Trigger a redstone update across the array so all comparators read their barrels properly.
- Optimize Output Repeaters
Replace unnecessary 1-tick repeaters in the output and passthrough lines with solid blocks and redstone dust where adjacent solid blocks naturally isolate the lines from cross-talk. This shaves latency off the AND gate while keeping the lines isolated.
- Connect the 1D X and Y Decoders
Attach your 1-dimensional X address decoder to the vertical input lines and your Y address decoder to the horizontal input lines. Because the matrix uses inverted logic, an active coordinate drops Both blocking signals to 0 and outputs the selected pixel.
How it works
This circuit combines a torchless NOR/AND matrix with analog comparator subtraction to decode 2D coordinates while supporting back-to-front data passthrough:
- Inverted Coordinate Gating: Each pixel cell starts with a barrel outputting signal strength 15 into a comparator. Both the X-axis and Y-axis address lines feed into the side of the cell's comparators. By default, unselected address lines are held high (ON), which subtracts or blocks the signal and keeps the pixel output OFF.
- Selecting a Pixel: When both the X line and the Y line for a specific coordinate turn OFF (low) at the same time, neither side blocks the barrel's power. The comparator outputs a high signal to light or trigger that exact X,Y pixel.
- 1-Strength Passthrough Logic: Behind each pixel is a passthrough input fed through a comparator in
subtractmode. A side comparator reading a signal strength 14 barrel subtracts 14 from incoming strength 15 signals, leaving a signal strength of1. This weak signal can travel forward into the output repeater of that exact cell without strong-powering neighboring dust lines, effectively performing a logical OR between the current X-Y decoder and any display data or secondary decoder placed behind it. - 2-Tick Pipeline Syncing: Because redstone torches burn out or drop fast pulses, this design uses only repeaters and comparators. To travel across a 16x16 grid, signal extenders require 3 ticks of total delay. Using a
2-tickrepeater followed by a1-tickrepeater allows 2-tick clock pulses to flow through a 3-tick delay line without being swallowed.
Tips & variations
- Repeater Ordering Bug: When chaining repeaters to create a 3-tick delay for a 2-tick pulse, always feed the 2-tick repeater into the 1-tick repeater (or test your orientation with a 2-tick clock first). Running a 1-tick repeater into a 2-tick repeater can cause short pulses to be blocked depending on how the signal enters a comparator.
- Save an Extra Tick: As noted by the creator, you can speed up the AND gate by removing the extra repeater coming from the decoded Y address and moving the Y decoder 1 block closer to the matrix.
- Pre-fill Barrels with NBT: In Creative mode, fill a barrel to signal strength 14 or 15, rename it in an anvil to "SS14" or "SS15", and hold
Ctrl + Middle Clickto copy the block with its inventory intact. Placing an empty barrel by mistake will break the cell logic.





