Minecraft Redstone and Computer Logic · 1

A torch that goes dark when you power it

Give this torch power and it switches off. That one backwards habit is enough to build a computer.

In 2021, a Minecraft player known as Sammyuri showed off CHUNGUS 2, an 8-bit processor built entirely inside the game. The builder said it took seven months, and it runs Tetris, Snake and Connect Four.1 Among its parts: redstone dust, torches, repeaters, pistons and levers.2

Strip it down to its smallest working part and you find something odd: a torch that switches off when you power it.

Four blocks to know

No gaming needed. Redstone is the game's version of electricity, and four blocks are enough for today:

The backwards rule

Here's the twist: a redstone torch goes dark while the block it's stuck to is powered, and lights again when the power stops. In signal terms, it flips its input: zero becomes full strength, and anything above zero becomes zero.4

That makes it a NOT gate, or inverter. A logic gate is a tiny rule that turns on-or-off inputs into an on-or-off output; NOT's rule is the simplest: the output is the opposite of the input.5

Simplified top-down sketch, not Minecraft's exact rules. One square is one block. The motion is slowed down; the times shown are game time.

Lamp 1 always does the opposite of the lever. Lamp 2 sits behind a second torch, so its signal is flipped twice: it copies the lever, a beat later. In the game's Java Edition, each torch takes 2 game ticks, or 0.1 seconds, to react.4

That chain is the real trick. A torch's output is just another signal, so it can power the next torch's block. One gate feeds the next, as far as you like. A wall switch needs a hand to flip it; torches flip each other.

A torch is not a battery that glows brighter when fed more power. It's a power source with an off switch, and the switch is the block it's stuck to.

Two levers, one torch

Now run wires from two levers, A and B, to the same torch's block. A lamp sits after the torch.

When is the lamp on?

Only when both levers are on When either lever is on Only when both levers are off Only when the levers are in different positions

Check it: set the levers all four ways and watch the table fill in.

Simplified sketch: in the real game, two inputs into one block need careful spacing so they don't interfere.

The lamp is on only when A and B are both off. This rule is called NOR, short for "not OR," and in Minecraft it's simply a torch with two or more inputs.5

Why one torch is enough

NOR has a special property: every other logic gate can be built from NOR gates alone.56 Real processors are logic gates wired together, sometimes more than 100 million of them.7 So torches and dust give you every gate a processor needs. The rest is wiring and patience.

Next lesson, you'll build those gates out of torches. After that the course climbs step by step: how lit and dark wires spell numbers, how torches add them, how a circuit remembers, and how a machine like CHUNGUS 2 puts it all together.