NAND Gate

NAND Gate
Stackable
Yes(64)

Overview

The AND Gate is a Digital Gate that outputs a Redstone signal of 0 if both input pins receive a Redstone signal greater than 0. Otherwise, it outputs 15. This makes the NAND Gate one of the simplest and most widely used gates in digital logic. Any Digital Gate can be made just with NAND gates.

Boolean Logic Table

The NAND Gate operates according to the following Boolean logic table:

Input AInput BOutput
001
101
011
110

Configuration

Pin Marks A denote the inputs of the gate. They can be configured to face any direction on right-click.

Parallel NAND Gate
Stackable
Yes(64)

Parallel NAND Gate

The NAND Gate also has a Parallel Gate version, which is used in parallel circuit designs. Unlike the standard NAND Gate, the Parallel Gate version does not allow input configuration because its logic relies on fixed input arrangements.

The Boolean logic table for the Parallel NAND Gate is as follows:

LeftBackRightOutput
0001
1001
0101
1100
0011
1011
0110
1110

Crafting

Normal NAND Gate

Parallel NAND Gate

Version Log

VersionDescription
0.0.0Introduced. On update from anywhere reads redstone signal only and updates neighbours when output changes.
0.0.1Unlike in the previous version, block first reads the blockstate on the input, and if suitable, uses blockstate value, if not, reads redstone signal.
0.1.1Changed registry name from nand to floor_nand and paralel_nand to floor_parallel_nand. Replaced bottom texture from being that on the top to Smooth Stone Block.
0.2.0Changed registry name from floor_nand to normal_nand and floor_parallel_nand to parallel_nand. Can be placed on walls and ceiling. Updates the block on the output when output changes instead of updating all neighbours. Output data is stored on Block Entity. Lost `rotate` and `mirror` block methods..
0.2.1Reimplemented `rotate` block method.