Comparator

Comparator
Stackable
Yes(64)

Overview

The Comparator is a Hybrid Gate that functions like a Minecraft Redstone Comparator in comparator mode. It compares two input Redstone signals and outputs 0 or 15 depending on whether one is greater than the other. Specifically, the Redstone signal at Pin Mark A must be greater than the Redstone signal at Pin Mark B for the Output to provide 15, and smaller or equal to provide 0.

Inverted Comparator

The Inverted Comparator outputs 15 if the Redstone signal at Pin Mark A is less or equal to the Redstone signal at Pin Mark B, and 0 otherwise.

Configuration

The inputs can be configured to face any direction by right-clicking the block.

Parallel Comparator

Both the Comparator and Inverted Comparator have a Parallel Gate variant. In this variant, the inputs can be configured by right-clicking to have either Pin Mark A or Pin Mark B face the Back of the Block. The logic for the Parallel Comparator is as follows:

The Redstone signal at the Output for the Parallel Inverted Comparator is the opposite of the one for the Parallel Comparator.

Parallel Comparator
Stackable
Yes(64)

Crafting

Normal Comparator

Normal Inverted Comparator

Parallel Comparator

Parallel Inverted Comparator

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 comparator to floor_comparator, n_comparator to floor_n_comparator, paralel_comparator to floor_parallel_comparator and paralel_n_comparator to floor_parallel_n_comparator. Replaced bottom texture from being that on the top to Smooth Stone Block.
0.2.0 Changed registry name from floor_comparator to normal_comparator, floor_n_comparator to normal_n_comparator, floor_parallel_comparator to parallel_comparator and floor_parallel_n_comparator to parallel_n_comparator. 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. Reclassified as Hybrid Gate.