XOR Gate

XOR Gate
Stackable
Yes(64)

Overview

The XOR Gate (Exclusive OR Gate) is a Digital Gate that outputs a Redstone signal of 15 if exactly one of its input pins receives a Redstone signal greater than 0. Otherwise, it outputs 0. This logic makes it an essential gate for circuits that rely on exclusive decision-making.

Boolean Logic Table

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

Input AInput BOutput
000
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 XOR Gate
Stackable
Yes(64)

Parallel XOR Gate

The XOR Gate also has a Parallel Gate version, which is used in parallel circuit designs. Unlike the standard XOR 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 XOR Gate is as follows:

LeftBackRightOutput
0000
1001
0101
1100
0011
1011
0110
1110

Crafting

Normal XOR Gate

Parallel XOR 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 xor to floor_xor and paralel_xor to floor_parallel_xor. Replaced bottom texture from being that on the top to Smooth Stone Block.
0.2.0Changed registry name from floor_xor to normal_xor and floor_parallel_xor to parallel_xor. 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.