The usual failure is building a gate that works on the bench but flickers, locks up or drops its output the moment you connect it to a load, usually because the output is wired straight into the input of the next gate or because the lever sits too close to the torch. Build the gate on a flat area of at least 9 by 5 blocks, keep each gate's input and output one block apart, and test it with a single lever before you chain anything. Redstone dust loses signal strength over distance, so any wire longer than 15 blocks needs a repeater even if the gate itself is perfect.
Redstone Basics Before the Gate
Every logic gate in Minecraft is a small arrangement of three parts: a power source, redstone dust as wire, and a redstone torch as an inverter. A torch that is attached to a powered block turns off; a torch attached to an unpowered block stays on. That single inversion is the heart of almost every gate you will build.
Redstone dust carries a signal strength of 15 and loses one point per block of dust. A signal at strength 1 will not light a lamp or open a door, and it will not trigger most components, which is why a long run quietly stops working. A redstone repeater restores the signal to full strength and also introduces a delay of one to four ticks, set by right-clicking it.
Power reaches a block in two ways: directly, by a lever, button, pressure plate, torch or repeater facing into it, or indirectly through a solid block that is adjacent to a powered component. A redstone torch placed on the side or top of a block powers that block, which then powers dust next to it. This indirect powering is what lets you build compact gates, but it is also the cause of most accidental short circuits, so keep a clear block between input wiring and output wiring as a habit.
If you are on Bedrock, note that redstone behaves slightly differently in a few areas, most notably quasi-connectivity, which does not exist there. Gates built for Java may behave differently in Bedrock, so test in your own world. On Bedrock, a torch does not respond to a block update two blocks away the way a Java torch can.
The Fast Way: Three Gates in Minutes
These three gates cover almost everything a beginner needs, and each takes under two minutes once you have the materials. You need redstone dust, redstone torches, levers, solid blocks such as stone or planks, and a redstone lamp to read the output.
NOT gate (inverter)
- Place a solid block on the ground and attach a redstone torch to its side, facing outward, with the torch body against the block.
- Run redstone dust from your input lever into the block itself, so the lever powers the block when switched on.
- Place your output lamp or wire next to the torch. With the lever off, the torch is lit and the output is on; with the lever on, the block powers and the torch goes out, so the output is off.
Test it: the lamp should be lit with the lever off and dark with it on. If the lamp stays dark in both states, the lever is powering the torch's block indirectly instead of directly — move the lever one block further from the torch.
OR gate
- Lay a single line of redstone dust two blocks long on the ground.
- Run a second input line of dust into each end of that shared line, coming in from the sides or the ends, so both inputs merge into the same dust.
- Attach an output lamp or wire to any point on the shared line.
The output turns on if either lever is on, and stays on if both are. Dust merging is the simplest OR you can build, and it needs no torches at all.
AND gate
- Build two NOT gates side by side, each with its own input lever.
- Run both torches' outputs into a single line of dust that merges before the lamp, so the lamp lights only when both torches are lit.
- Because each torch is lit only when its input is off, invert the inputs once more with a lever on each block if you want the gate to read as a true AND on the levers.
Test it: the lamp should be lit only in one combination of the two levers. Write down which one; that is your gate's truth table, and you will need it when you chain gates.
The Thorough Way: XOR, NAND and Chaining
Once you can build NOT, OR and AND, every other gate is a combination. The XOR gate is the one most players want, because it is the core of a combination lock or a toggle, and it is the one most players get wrong first.
XOR gate
- Run input A into an OR gate and note its output.
- Run A and B together into an AND gate and note its output.
- Invert the AND output with a redstone torch on a block.
- Feed the OR output and the inverted AND output into a second AND gate; its output is A XOR B, on when exactly one input is on.
This is the standard four-gate build and it takes about 12 by 8 blocks of floor if you keep the wiring flat. A tighter version replaces the OR with a direct merge and uses a torch tower, but the four-gate version is easier to debug because each stage is visible.
NAND gate
- Build an AND gate as above.
- Place a redstone torch on a block at the AND output so the torch inverts the lamp.
- Take the torch as your output. A NAND is on for every input combination except both on.
NAND is useful because you can build every other gate from NANDs alone, which matters if you are tight on space or want a uniform design you can copy and rotate.
Chaining without flicker
When gates feed each other, put a repeater between them rather than a bare dust line. A repeater enforces direction, restores strength to 15, and stops a signal from travelling backwards through the circuit. Set the delay to two ticks on the first repeater in a chain so that two paths of different lengths arrive together; if one path is four blocks longer than another, a two-tick delay on the short path lines them up.
Keep the input side of a gate at least one solid block away from the output side. If a torch's powered block touches the output dust, the output will feed back into the input and the gate will lock on or oscillate. This one rule fixes most builds that work on a bench and fail in a wall.
Telling Whether It Worked
A correct gate has a stable truth table: for each combination of inputs, the output is either fully on or fully off, and it does not flicker when you flip a lever. Flip each lever slowly and then quickly; a flicker means two paths of different lengths are feeding one point, so add a repeater on the short path.
A lamp is a better test load than a door while you build, because a lamp turns fully on or off and shows the state at a glance. Once the lamp behaves, swap in the real load and test again, since doors, pistons and dispensers draw power differently and can expose a weak signal.
Also check the edges of your circuit at night or from above with the camera angled down. A torch that is one block off, or dust that runs over a block instead of beside it, is easier to see from above than at eye level.
Which Build to Use
Use the fast gates when you need one condition to control one thing, such as a lever that opens a hidden door or a pressure plate that lights a room. Use the thorough builds when a gate's output must depend on two or more conditions, such as a door that opens only when a specific lever is on and a player stands on a plate.
- If you need to invert a single signal, build a NOT gate — never a full XOR.
- If two levers should each open the same door, merge their dust into one line; that is an OR and needs no torches.
- If a door should open only when both levers are on, build an AND and test the light with one lever at a time.
- If a door should open when either lever is on but close when both are on, build an XOR.
- If the gate is more than 15 blocks of dust from the load, insert a repeater at the midpoint.
- If the circuit locks on after one flip, look for an output wire touching an input block and separate them by one block.
- If a torch burns out and stays off, check whether it is being switched faster than it can relight; slow the clock with a repeater.
- If you are building in a wall, test the gate on the floor first, then move it in one piece, keeping the same orientation.
Redstone lamps need a signal strength of at least 1 to light but full strength to stay bright; a lamp that glows dim means the line is too long. Repeaters and comparators can be locked and used as memory, but you do not need either for any of the gates above — a plain torch and dust are enough. When you are ready to move past single gates, the same parts scale up: a memory cell is two NOT gates facing each other, and an adder is a row of XOR and AND gates with the carry running along one side.