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:
- If Pin Mark A faces the Back, then:
- If the Redstone signal at the Back is greater than the signal at the Left or Right side, the Output provides 15.
- If the Redstone signal at the Back is smaller than or equal to the signal at the Left or Right side, the Output provides 0.
- If Pin Mark B faces the Back, then:
- If the Redstone signal at the Back is smaller than or equal to the signal at the Left or Right side, the Output provides 15.
- If the Redstone signal at the Back is greater than the signal at the Left or Right side, the Output provides 0.
The Redstone signal at the Output for the Parallel Inverted Comparator is the opposite of the one for the Parallel Comparator.