Redstuff Wiki
Advertisement
2011-06-15 22.01

A simple AND gate

Truth table
A B A AND B
0
0
0
0
1
0
1
0
0
1
1
1

AND gates are one of the most common type of logic gate in minecraft. They are only in their active state when both inputs are active. AND gates can have any amount of inputs, while having only one output. Usual AND gate will always have 2 ticks delay. The design shown on the right is one of the most common builds. But both/all inputs have to be active.

Formula[]

Since Minecraft only supports 2 fundamental logic gates, to make an AND gate, it needs to make it into a combination of OR and NOT gates. De Morgan's Law is designed to convert from OR to AND and backwards. In its basic form:

NOT (A AND B) = NOT A OR NOT B

Bringing over an inversion gets us the fundamental AND gate formula:

A AND B = NOT (NOT A OR NOT B)

Advertisement