
Video: Logical Redstone Tutorial 1: 3 Decoder Designs in 30 Minutes by WildEngineering
How to build it
- Design 1: Vertical Input Bus
Build four horizontal input lines stacked vertically with one block of air between each layer. On the side of each input block, build a slab staircase going up to an output column so all four bit levels feed into a single vertical slab tower.
- Tile the 16 Output Columns
Repeat this 2-wide output column 16 times down the length of the input lines (addresses 0 through 15). Place a 1-tick repeater halfway down the input bus where signal strength runs out to extend all four input lines to the end.
- Encode Binary 0s and 1s (Design 1)
Encode each column in binary from bottom (least significant bit) to top (most significant bit) by placing a repeater for a 0 and a redstone torch for a 1. Alternate 0 and 1 every column on the bottom row, every 2 columns on the second row, every 4 columns on the third row, and 8 repeaters followed by 8 torches on the top row.
- Sync the Vertical-to-Horizontal Outputs
Place an inverting redstone torch or repeater at the bottom of each output column. Because the second half of the decoder passes through a bus repeater, add 1 extra tick of repeater delay to the first 8 output lines so all 16 addresses update at the exact same time.
- Design 2: Flat-to-Flat Input Bus
Lay out four parallel horizontal input lines on the same level with 2 blocks of space between each line. Underneath, run 16 perpendicular output lines spaced every 3 blocks (3-wide tileable) so that each output crosses under all four inputs.
- Encode the Flat-to-Flat Lines
Where an address requires a 1, place a redstone torch on the side of the input line over the output line below. Where an address requires a 0, use slabs and blocks to step the redstone dust down from the input line directly into the lower output line; adjacent 0s can share a single drop-down block powering both left and right.
- Extend and Sync the Flat Decoder
Add repeaters along the four top input lines before the signal strength dies out, making sure to place them after any tap-off bridges. At the end of the bottom output lines, set the first group of outputs to 2 extra ticks of repeater delay, the middle group to 1 extra tick, and the final group to no extra delay.
- Design 3: Flat-to-Vertical Tower
Start with four flat input lines spaced apart with repeaters running into the base of four vertical slab staircases. Stack the staircases 16 levels tall (2 blocks per address level) with redstone dust climbing all four towers.
- Bridge Signal Strength Up the Tower
Whenever the signal strength runs out climbing the slab towers, replace a slab with a solid block and a repeater to boost the power, then continue the slab staircase upward. At each of the 16 vertical levels, run a horizontal output bar across all four input towers.
- Encode and Sync the Vertical Outputs
Tap off each tower into the 16 horizontal output layers using repeaters for 0s and redstone torches for 1s following the standard 1, 2, 4, 8 binary alternating pattern from bottom to top. Add output repeaters on each layer, adding extra tick delay to the lower layers to match the repeater boosts used higher up the tower.
How it works
All three binary decoders operate on the same inverted OR (NOR) logic gate principle:
- Input Bus: A 4-bit binary number is fed into the four input lines using levers or registers, from the least significant bit (Bit 0, value 1) to the most significant bit (Bit 3, value 8).
- Bit Matching (0s and 1s): Each of the 16 output lines is hard-coded to a unique binary address from
0000(0) to1111(15). A 0 is encoded with a repeater or direct dust connection, meaning the output line stays powered if that input bit is ON. A 1 is encoded with a redstone torch, meaning the output line stays powered if that input bit is OFF. - Active-Low / Inverted Output: If even a single input bit does not match the encoded address of a line, at least one torch or repeater keeps that output line powered. Only when all four input bits match the encoded address do all torches on that line turn off and all repeaters stay unpowered, allowing the output line to turn OFF (or invert to ON via a final output torch).
- Synchronization: Because redstone dust only travels 15 blocks, repeaters must be placed along the input lines to extend the signal. Adding compensating repeater ticks to the earlier output lines ensures every address outputs after the exact same delay.
Tips & variations
- Double-Sided Output: On the vertical-to-horizontal design, you can tap off both sides of the vertical input bus (8 addresses on each side) to cut the total length in half and avoid needing a bus repeater.
- 3-High Vertical Stacking: The flat-to-flat decoder is specifically built so multiple decoders can be stacked vertically every 3 blocks for multi-byte buses.
- WorldEdit Tip: When using WorldEdit
//stackto build large decoders, redstone torches and repeaters at the edges may pop off or fail to update—toggle the input lines or send a block update along the bus after stacking. - Slab/Repeater Cutoffs: In the flat-to-vertical tower, make sure solid blocks or repeaters on the output lines do not accidentally cut off the vertical slab dust staircases behind them.





