
Video: Geoff's Minecraft AND & NAND Gate Tutorial by Geoffrey Pouliot
How to build it
- Place the Gate Base Blocks
Place a row of three solid blocks on the ground. These will support the torches and dust that form the core of the logic gate.
- Add the Input Redstone Torches
Place one redstone torch on top of the left block and another redstone torch on top of the right block. Leave the center block empty for dust.
- Connect the Center Dust (NAND Output)
Place a piece of redstone dust on top of the middle block between the two torches. For a NAND gate, run your output redstone line directly from the front of this center block to your door.
- Add the Inverting Torch for an AND Gate
To turn the NAND gate into an AND gate, place a third redstone torch on the front side of the center block. Run your output redstone dust from this third torch to your door instead.
- Attach the Two Input Levers
Run two separate lines of redstone dust into the back of the left and right blocks, and place a lever at the end of each line. Flip both levers to test how the output responds.
- Merge Inputs with Repeaters for Asymmetric Delay
To create uneven on/off timing, remove one lever and connect both input lines to a single lever. Place redstone repeaters along one of the two branches so one side receives the signal slower than the other.
How it works
Both circuits rely on redstone torch inversion to compare two inputs:
- NAND Gate: The two top redstone torches naturally power the redstone dust between them, keeping the output ON by default. Turning on only one input turns off its torch, but the other torch still powers the center dust. Only when both inputs are powered ON do both top torches turn off, turning the output OFF.
- AND Gate: An AND gate simply adds a third redstone torch on the front of the center block to invert the NAND signal. While the center dust is powered, the front torch stays OFF. When both inputs are turned ON, the top torches turn off, the center dust depowers, and the front output torch turns ON.
- Asymmetric Timing (Merged Inputs): When a single lever feeds both inputs of a gate, adding
Redstone Repeatersto one branch delays that side. For an AND gate, flipping the lever ON requires waiting for the slow repeater branch before both inputs are active (turns ON slowly), but flipping it OFF immediately cuts the fast branch (turns OFF quickly). A NAND gate does the exact opposite: it turns ON quickly as soon as the fast branch turns off, and turns OFF slowly after the delayed branch catches up.
Tips & variations
- Block Choice: Use any opaque solid block (like clay, stone, or wool) that can support redstone torches and transmit power. Avoid glass or slabs for the three core blocks.
- Hidden Door Sequencing (ABBA Switch behaviour): Use an AND gate with a delayed branch for pistons that need to activate last and retract first, and a NAND gate for pistons that need to extend immediately and retract last.
- Adjusting Delay: Add more repeaters or right-click them to increase their tick delay on one leg of the split input to widen the timing gap between powering on and powering off.


