The first circuit
A lever, a bit of redstone dust on the ground and a lamp. When you pull the lever the signal runs along the dust and the lamp turns on. All circuits, even the biggest ones, work like this: switch, wire, machine.
Redstone is the electricity of Minecraft. With it, things move by themselves: doors that open, lights that turn on, farms that work in your place. In this guide, every diagram can be clicked: pull the levers and see what happens.
Really tested: every circuit in the guide was built and run on a Minecraft Java 1.21.1 server (84 checks, all correct).
They start the signal: levers, buttons, pressure plates.
They carry the signal where it's needed: redstone dust, the repeater, the torch.
They do something when the signal arrives: lamps, pistons, doors.
A lever, a bit of redstone dust on the ground and a lamp. When you pull the lever the signal runs along the dust and the lamp turns on. All circuits, even the biggest ones, work like this: switch, wire, machine.
The signal starts with a strength of 15 and loses a bit for every block of dust: see how the dust gets darker. After 15 blocks it runs out and the lamp stays off. Move the lamp farther away and watch.
To go farther, place a ripetitore: refreshes the signal to 15. There's a whole lesson on strength, the next one.
The dust powers the block it sits on and the one it points toward. If it only passes next to a lamp or a piston, it doesn't power them. It's the most common mistake: see where the line ends.
Click the lever: the lamp at the end of the line turns on, the one on the side doesn't.
A normal block, like stone, can receive the signal and power whatever is attached to it: a lamp, a piston, a torch. Glass, on the other hand, receives nothing.
A lever attached to a block powers it so well that the block also powers the dust next to it. If instead the block is powered only by the dust, the dust on the other side stays off.
The redstone signal is not just on or off: has a strength, from 0 to 15. You can see it from the color of the dust, which is bright red at 15 and almost black at 0. With strength you can measure things: how full a chest is, how much stuff is on a plate.
Lever, button, torch and redstone block always give the maximum.
Dust loses 1 strength for every block.
The repeater always brings the strength back to 15.
The comparator passes the strength along as it is, it doesn't refresh it.
Lamps, pistons and doors turn on with any strength from 1 up.
Some switches don't always give 15: give more or less depending on what's happening. Pick them below and move the bar: see how far the signal gets in the dust.
The trick is the distance: the farther the door is from the plate, the more strength you need to reach it. With the door after 5 blocks of dust you need at least 5 items.
Warning: the plate counts piles, not items. If you throw 5 identical rocks they merge into a single pile and count as one. Use 5 different items, or mobs. We tested it.
Il comparatore with its back against the barrel (or chest) gives more strength the fuller it is. The lamps under the dust stay on as long as the strength reaches them.
Click a tool to find out what it does and what you need it for in the game. The images are the ones from the inventory.
A logic gate is a small circuit that answers a question, for example "are both levers pulled?". You'll find them inside almost all builds. Each box below explains itself: read the example, click the levers and build it.
The tool that does the opposite is the redstone torch: it's always on, but it turns off when the block it sits on receives the signal.
Just join two lines of dust. The two repeaters keep the signal from going back: without it, lever A would also power B's line.
The trick uses three torches. Each lever turns off its torch. As long as at least one torch is on, the third torch stays off. Only when you've turned both of them off does the third one turn on.
The easiest way from the 1.21: two osservatori they watch the levers. Every time a lever changes, its observer sends a pulse to the copper bulb, which turns on or off with every tap.
Circuits that remember what happened, or that do something by themselves on a timer. With these you build alarms, blinking lights and automatic farms.
Two torches keep each other off: when one is on, the other is off. The button S turns on the light, the button R turns it off. Try pressing S and then wait: the light stays on.
From the 1.21 it's really easy: the copper bulb changes state with every press. A comparatore that reads it gives a signal only when it's on, so you can also control pistons and doors.
The torch powers the loop of dust; the loop, going through the repeater, comes back into block B and turns off the torch; with the torch off, the loop turns off and the torch turns back on. And so on, all by itself. The lever on B stops it.
Il subtract-mode comparator (right-click, the little light in front turns on) gives a signal only if the back is powered and the side is not. The signal arrives at the back right away and a moment later at the side, going through the repeater: a short pulse comes out in the middle.
Un osservatore that looks at the lever or the dust gives a pulse both when it turns on and when it turns off. For a single pulse when it turns off, swap the comparator's two lines: the one with the repeater at the back, the one directly at the side.
Two osservatori face to face: each one sees the other change and fires, forever. They make about 5 pulses per second, so fast that a lamp looks like it's always on. To stop it, break an observer.
Choose what to build. Every diagram can be tried by clicking: the plates, levers and buttons work.
A door 2 wide and 2 tall that opens when you step on a plate, from inside and outside.
It's a NOT gate: the torches power the pistons, the pistons push the blocks into the opening and the door stays closed. The plate powers the block below it, which powers the dust in the channel; the dust reaches the repeaters, the repeaters power B and the torches turn off. Pistons retract and pull the blocks back. The repeater is needed because dust coming in from the side wouldn't point into B.
Four levers: the iron door opens only with the right combination. Here the code is: up, down, up, down. Try to guess it by clicking the levers.
Each torch or repeater turns on when its lever is sbagliata. The row of dust is an OR of the errors; the torch after Y is a NOT: opens the door only if there are no errors. To change the code, swap torches and repeaters. With 8 levers there are 256 combinations.
Counts how many times you press a button: with every press one more lamp turns on. It's also useful for making something happen only after a certain number of times.
A sword doesn't stack, so it alone fills one of the hopper's 5 slots. The comparator gives strength 3 with one sword, 6 with two, up to 15 with five. With strength 3 the dust reaches the third block, with 6 the sixth, and so on: that's why the lamps are placed every 3 blocks. To open a door after 4 presses, put it in place of the fourth lamp.
Items travel along a row of hoppers and each module pulls out its own type, for example diamonds, and puts it into its own barrel. The modules go next to each other.
With 22 items the comparator gives strength 1 and only reaches the first dust. The torch is on and, through L, locks the hopper below. With the nineteenth diamond the strength becomes 2, it reaches the second dust, the torch turns off, and the hopper below picks up a diamond. It works with items that stack to 64.
Tested on the server: the hopper below closes so quickly that the last diamond to arrive stays inside it and only goes down into the barrel when the next diamond arrives. With 3 diamonds, 2 go into the barrel and 1 waits. Nothing is lost.
The exact rules, for those who want to invent new circuits or understand why a circuit behaves strangely. Here too, we test everything: build, press, break.
Each tool makes the signal wait a little. It's counted in redstone ticks: 1 ticks = 0,1 seconds. Build a chain with the buttons, click a repeater to change its notches (like right-clicking in the game) and press Go.
| Tool | Delay | Notes |
|---|---|---|
| Redstone dust | 0 | It loses 1 strength per block. |
| Redstone torch | 1 ticks | It burns out if it turns off 8 times in 3 seconds. |
| Repeater | 1–4 ticks | It stretches pulses shorter than its delay. |
| Comparator | 1 ticks | |
| Observer | 1 ticks | Then it gives a pulse 1 ticks long. |
| Piston | about 1 ticks | The movement lasts 2 game ticks. |
| Lamp | 0 / 2 ticks | It turns on right away, turns off after 0,2 s. |
| Dropper and dispenser | 2 ticks | They fire only when the signal turns on. |
| Hopper | 4 ticks | 2,5 items per second. |
| Stone / wooden button | 10 / 15 ticks | |
| Pressure plate | about 10 ticks | It turns off about 1 s after the entity has stepped off. |
The game runs at 20 game ticks per second: 1 redstone ticks = 2 game ticks. The repeater notches are redstone ticks; the command /tick uses game ticks.
A torch that turns off 8 times in 3 seconds burns out: gives off a wisp of smoke and stays off for a few seconds. It happens with flashers that are too fast.
Turn the repeater and watch: with 1 notch the torch burns out, from 2 notches up it holds. We tested it on the server.
A block that's on can be forte o debole. Both turn on the lamp underneath. Only the strong one also powers the dust next to it.
In Java, the pistons, droppers and dispensers turn on even if the signal arrives at the spot above them: è la quasi-connettività. But the piston only notices when it receives an aggiornamento, that is, when something next to it changes.
Try it: turn on the lever. The piston stays still. Then put a block on top of it: it fires. A piston that is "charged but still" is called BUD.
A block that changes notifies the six blocks touching it; dust, torches and rails even those two steps away. When more things change in the same tick, Java updates them in an order that, for dust, depends on position: that's why some circuits work facing one way and not the other. In Bedrock, quasi-connectivity doesn't exist.
A piston pushes at most 12 blocks in a row. With 13 it doesn't move at all. Some blocks never move: obsidian, bedrock, chests, furnaces, hoppers and the other blocks with an inventory.
Add and remove blocks, then pull the lever.
Il slime block sticks to whatever it touches: when the piston pushes or pulls it, it also brings along the attached blocks, like B. The honey block does the same, but slime and honey don't stick to each other: this way you can put two machines next to each other without them sticking together.
Watch the floor: a slime lying on the ground also sticks to the floor, and the piston can no longer move it. Keep it off the ground, as in the diagram.
The observer sends a pulse so short that the sticky piston doesn't have time to pull the block back: pushes it and leaves it there. On the next pulse it grabs it again and brings it back. With this trick you make doors that stay open, and flying machines.
Click the button: changes block X in front of the observer, as if you were placing or removing something there.
The comparator has one input at the back, two at the sides and the output in front. Change the strength of the two inputs and click the button to right-click the comparator.
With its back against a container, even through a solid block, the comparator tells you how full it is: strength = 1 + fill level × 14, rounded down. A slot is full with 64 normal items, 16 pearls or 1 tool.
Items needed for each strength with this container:
| Bed block | What it gives the comparator |
|---|---|
| Containers (chests, barrels, hoppers, droppers, furnaces, shulker boxes, decorated pot) | How full they are. |
| Cake | 2 per remaining slice. |
| Cauldron | Level 0–3. |
| Composter | Level 0–8. |
| Jukebox | A number for each disc (1–15). |
| Lectern | It grows while the page is open. |
| Frame | Rotation of the item 1–8. |
| End Portal Frame | 15 with your eye. |
| Chiseled Bookshelf | Last spot touched (1–6). |
| Beehive | Honey 0–5. |
| Respawn Anchor | 0, 3, 7, 11, 15 depending on the charges. |
| Copper bulb | 15 if on. |
| Crafter | Slots that are full or disabled (0–9). |
| Sculk sensor | Type of the last vibration (1–15). |
| Shelf | Slots taken: 1, 2, 4 added together (0–7). |
| Detector Rail | Filling the minecart above. |
The button stays on for 1 second. The signal goes through a row of repeaters set to 4 notches and the output takes from each of them: the lamp stays on until the signal has finished the row. Three repeaters set to 4 notches add 1,2 seconds.
Five circuits that don't work the way they should. Look at the diagram and pick the pattern.
| Version | What changes |
|---|---|
| 1.16 | Cross or dot dust (right-click), target block. |
| 1.17 | Sculk sensor. |
| 1.20 | Calibrated sculk sensor, chiseled bookshelf. |
| 1.21 | Crafter and copper bulb. |
| 1.21.2 | Optional experiment "Redstone Experiments": new dust update order. It has to be enabled when the world is created; in a normal world nothing changes. |
| 1.21.9 | Shelf, copper golem statue read by the comparator. |
| 26.1 | March 24, 2026. No changes to the components: the tripwire's string is easier to see, the dispenser drops eggs without data instead of locking up. |
| 26.2 | June 16, 2026. New blocks you can use with redstone and sculk sensors; the components in this guide work as before. |
The whole guide applies to Java Edition. In Bedrock there's no quasi-connectivity, pistons also move chests, and the timings are different: many circuits from Bedrock videos don't work in Java.
Sources
The images of the blocks are the textures and models from Minecraft Java 1.21.1 (the shelf from 26.3). All the circuits were built and tested on a 1.21.1 server on 20/11/2026: logic gates, memories, flashers, doors, counter, sorter, pistons and slime.