Minecraft Wiki
Advertisement

Redstone circuits are a new feature added to Minecraft in the first Alpha update. They allow for advanced, more complicated mechanisms to be created by players. Redstone circuitry is commonly compared to WireMod (a widely-used addon from Garry's Mod).

File:Redstone Circuits.png

How it Works

File:Electricity2.png

Signal will only flow 15 squares from its source.

Placing Redstone on a block creates a wire. Every "wired" block has two possible states: 1 (powered) or 0 (unpowered). A wire can be powered by any lever, pressure plate, stone button, or Redstone torch. Placing Redstone on top of a block that is adjacent to a powered block causes the newly wired block to become powered as well. Powered Redstone will always glow red, and will cease to flow after moving 15 blocks from its source. However, the range can be extended without limit by chaining Redstone torches (but will result in a delay).

If all wires adjacent to a torch are unpowered, the torch will provide power to them. However, if a wire connected to it's block is powered by another source, the torch itself will cease to generate power and its flame will go out.

Important Notes

Template:Improve

  • Power flows 15 blocks before ending (but can be extended)
  • Power sent through multiple torches does not travel instantly, so expect a slight delay when designing
  • Circuits that are more than ~300 blocks away from your current position will cease to operate; due to them being on unloaded chunks

Gate Logic

File:StandardLogicGates.png

Basic logic gate diagrams

To use a Redstone torch as a logic gate, the source(s) should be connected one block behind the torch itself (see example images). To use the torch's state as an output, connect a wire at-level with the torch.

A wire placed directly below the block a torch is on will not connect to the torch. However, another torch placed in the same position will.






The NOT gate (Inverter)

File:Inverter.PNG

A NOT gate (inverter)

A device that inverts the input. It can also be used as a signal light which is on when no input is detected.

Using two NOT gates can extend your running wire length past the original 15. As of 1.0.2 (the July 6th update), there must be a strip of wire between the two NOT gates.



The OR gate

File:OR gate.PNG

A three-input OR gate

A device where the output is on when at least one of the inputs are on.

Note that OR gates are simple inversions of NOR gates.




The AND gate

File:AND gate.PNG

An AND gate

A device where the output is on when both inputs are on.

This is useful in building a locking mechanism for a door, requiring both the activating button and the lock (typically a lever) to be on.



The NOR gate

File:NOR gate.PNG

A NOR gate.

A device where the output is off when at least one of the inputs are on.

These are infrequently used. More commonly-used are the OR gates (above).






The NAND gate

File:NAND gate.PNG

A NAND gate.

A device where the output is off when both inputs are on.





The XOR gate (pronounced "exor")

File:XOR gate.PNG

A XOR gate.

A device where the output toggles when one of inputs change state.

Adding a NOT gate to the end will produce an XNOR gate. XNOR only activates when both inputs are in the same state. This, however, will (effectively) create a more lengthy (N)AND gate.



RS NOR Latch

File:RS NOR Latch.PNG

A RS NOR Latch.

A device where Q will stay on forever after input is received by S. Q can be reset by a signal received by R. This is probably the smallest memory device that is possible to make. Note that ~Q means the opposite of Q, e.g. when Q is on, ~Q is off and vice-versa. This means that in certain cases, you can get rid of a NOT gate by simply picking the ~Q output instead of putting a NOT gate after the Q output.

It is useful for making an alarm system were you for example want a warning light stay turned on after a pressure plate is pressed.





RS NAND Latch

File:RS Nand Latch.PNG

A RS NAND Latch.

When S and R are both off, Q and -Q are on. When S is on, but R is off, Q will be on. When R is on, but S is off, -Q will be on. When s and r are both on, it does not change Q and -Q. They will be the same as they were before S and Q were both turned on.

Note: This design is susceptible to changing state when receiving input through the Q and Q~ outputs, and needs revision. Use with caution.






Clock generators

File:5-timer.PNG

A 5-clock.

Clock generators are devices where the output is toggling on/off constantly.[1]

The smallest/fastest stable clock generator is the 5-clock as shown at the picture to the right. 1-clocks and 3-clocks are possible to make but they will "burn out" because of their speed, which makes them unstable. Slower clocks are made by making the chain of inverters longer. It is only possible to make clocks with an odd number of Redstone torches.

Affected Objects

Objects receiving power are affected in the following ways:

Doors open and close. This is the only method of opening iron doors.
  • Tracks
Tracks will change direction, though always to a turning track.
TNT will have its charge set. A few seconds of delay should be expected (TNT is not instant).

Video Examples

For a video explaining and giving examples of how to wire Redstone torches, click here.

For an example adder built of these, click here.

Advertisement