Simple AND Gate

An AND gate is a fundamental Minecraft logic circuit that only sends an output signal when all of its inputs are active at the same time. If only one input is switched on, nothing happens. This compact build is ideal for two-key security doors, co-op puzzles, or conditional automation systems in your base.

Logic GatesBeginnerJava & Bedrock
Simple AND Gate video tutorial

Video: Minecraft 1.18 Simple AND gate Tutorial! by RileyBBuilds

How to build it

  1. Place the Base Blocks

    Place three solid blocks (such as iron blocks) in a straight horizontal row on the ground.

  2. Attach the Input Levers

    Place one lever on the front side of the left block and the second lever on the front side of the right block.

  3. Place the Redstone Torches

    Put one redstone torch on top of the left block and another on top of the right block. Then, attach your third redstone torch to the back side of the center block.

  4. Connect with Redstone Dust

    Place a single piece of redstone dust on top of the center block, directly between the two top redstone torches. The back torch should now turn off.

  5. Add Your Output

    Place a redstone lamp (or your desired output line) directly behind the back redstone torch. Flick both levers on to verify that the lamp lights up.

How it works

This circuit relies on signal inversion using redstone torches:

  • Default State (OFF): When both levers are off, the two redstone torches on top of the outer blocks remain lit. They power the Redstone Dust in the center, which powers the middle block and forces the back output torch to stay off.
  • One Input Active (OFF): If you flick only one lever, its corresponding top torch turns off. However, the other top torch is still lit and continues powering the center redstone dust, keeping the back output torch off.
  • Both Inputs Active (ON): When both levers are switched on, both top torches are inverted and turn off. The center redstone dust loses all power, allowing the back redstone torch to turn back on and power your Redstone Lamp or output line.

Tips & variations

  • Building Blocks: You do not need to use iron blocks; any solid, opaque block (like cobblestone, stone, or planks) will carry the redstone signal properly. Avoid transparent blocks like glass.
  • Input Swapping: You can replace the two levers with pressure plates, buttons, or incoming redstone dust lines from other circuits.
  • Cross-Edition Compatibility: Because this uses basic torch inversion mechanics, it works identically in both Minecraft Java and Bedrock Editions.

Frequently asked questions

Why stays my output torch on all the time?
Make sure you placed the redstone dust on top of the middle block between the two top torches, and check that you used solid opaque blocks rather than glass or slabs.
Can I use buttons instead of levers on an AND gate?
Yes, you can place buttons on the outer blocks, though both buttons will need to be pressed at the exact same time for the output to briefly activate.
Does this AND gate work in newer versions past 1.18?
Yes, basic redstone torch logic has remained unchanged for years and works in all modern versions of Minecraft.

Components used

More and gate