Redstone Companion · Learn Open simulator →

Comparator

A comparator does analog redstone logic: it compares or subtracts signal strengths and, unlike a repeater, preserves the exact 0–15 level instead of forcing it to 15.

Bedrock Edition · Block dictionary

Comparator — spec
ModesCompare (front torch off) and Subtract (front torch lit)
Delay2 game ticks (1 redstone tick)
AnalogPreserves the input signal strength (does not force 15)
Reads containersOutputs a 0–15 level from container fullness behind it
Open full simulator →
Open full simulator →

Full guide: Comparator →