Redstone Wiki
Register
Advertisement
Icon Warning Before you read this page, you should first read Redstone Basics.

Redstone can be used to make circuits. These can be as simple as "You must pull two levers to open this door" to an entire fully-functioning computer. This article articulates the basics.

Gates[]

In hardware programming, a gate is a way to take one or more inputs and use those to give one or more outputs. Usually a gate takes in two or more and gives only one.

NOT Gate[]

Info See Also List of NOT Gates
Ingame NOT Gate

In-game NOT gate

A NOT gate (AKA inversion, inverter or signal inverter) inverts a single input into a single output. That is to say, it changes a wire's ON signal into an OFF signal, or its OFF signal into an ON signal. This can be simply made with a redstone torch on a block; if the block is powered, the torch is off, else, it's on.

Symbols[]

  • NOT
  • !
  • ~
  • ¬

Truth Table[]

Input Output
A NOT A
1 0
0 1

AND Gate[]

Info See Also List of AND Gates
Ingame AND Gate

In-game 2-input AND gate

An AND gate (AKA conjunction) takes in two or more inputs and gives a single output, which is only ON if all the inputs are also ON.

Symbols[]

  • AND
  • &
  • &&

Truth Tables[]

2 Inputs
Inputs Output
A B A AND B
1 1 1
1 0 0
0 1 0
0 0 0
3 inputs
Inputs Output
A B C A AND B AND C
1 1 1 1
1 1 0 0
1 0 1 0
1 0 0 0
0 1 1 0
0 1 0 0
0 0 1 0
0 0 0 0


OR Gate[]

Info See Also List of OR Gates
Ingame OR Gate

In-game 2-input OR gate

An OR gate (AKA disjunction) takes in two or more inputs and gives a single output, which is only OFF if all the inputs are also OFF.

Symbols[]

  • OR
  • |
  • ||

Truth Table[]

2 Inputs
Inputs Output
A B
1 1 1
1 0 1
0 1 1
0 0 0
3 inputs
Inputs Output
A B C A OR B OR C
1 1 1 1
1 1 0 1
1 0 1 1
1 0 0 1
0 1 1 1
0 1 0 1
0 0 1 1
0 0 0 0

AND+NOT equivalent[]

Ingame OR with AND+NOT only

An OR gate only using AND and NOT gates. Black blocks are NOT gates, and yellow blocks are AND gates.

Every gate can be made using only AND andor NOT gates. A OR B is the same as a NOT(NOT(A) AND NOT(B)). This is illustrated to the right in Minecraft gates.


XOR Gate[]

Info See Also List of XOR Gates
Ingame XOR Gate

In-game 2-input XOR gate

An XOR gate (AKA exclusive OR, exclusive disjunction) takes in two or more inputs and gives a single output, which is only ON when the number of ON inputs is odd.

Symbols[]

  • XOR
  • EOR
  • EXOR
  • ^

Truth Tables[]

2 Inputs
Inputs Output
A B
1 1 0
1 0 1
0 1 1
0 0 0
3 inputs
Inputs Output
A B C A OR B OR C
1 1 1 1
1 1 0 0
1 0 1 0
1 0 0 1
0 1 1 0
0 1 0 1
0 0 1 1
0 0 0 0

AND+NOT equivalent[]

Ingame XOR with AND+NOT only

An XOR gate only using AND and NOT gates. Black blocks are NOT gates, and yellow blocks are AND gates.

Every gate can be made using only AND andor NOT gates. A XOR B is the same as a NOT(NOT(A AND NOT(A AND B)) AND NOT(A AND B) AND B)). This is illustrated to the right in Minecraft gates.


Clocks[]

A clock is any way to repeatedly send an on-and-off signal.

Repeater Clock[]

Ingame Repeater Clock

A basic repeater clock

Info See Also List of Repeater Clocks

This is a clock which takes advantage of the delay and full signal produced by repeaters. These all have variable-length signals, as reducing of increasing the length of the signal is as easy as adding more repeaters or even changing the delay on individual repeaters.

Toggleable[]

Ingame Toggleable Repeater Clock

A basic repeater clock made toggleable

A repeater clock can be activated or deactivated by using a sticky piston which inserts or removes a conductive block in place of one of the clock's redstone wires.

Minecart Clock[]

Ingame Minecart Clock

A basic minecart clock

Info See Also List of Minecart Clocks

This is a clock which uses the output of a detector rail when a minecart moves across it. To keep the minecart going, people often use powered rails.

Advertisement