Redstone Comparator — Minecraft block

Redstone Comparator

Comparator measures signal strength and inventory contents — the analog brain of any complex redstone build.

Block ID minecraft:comparator
Mod Vanilla
Game versions
1.21

Description

Comparator is crafted from three redstone torches, one nether quartz, and three stone blocks arranged in the standard pattern. Unlike a repeater, this device does not boost the signal back to full strength — it instead measures and compares incoming signals, then outputs a precise analog level between zero and fifteen. This makes it the foundation of every signal-strength-aware build in the game.

The device has two modes, toggled by right-click. In compare mode (front torch off), it passes the rear-input signal through only if no side input is stronger; otherwise it outputs zero. In subtract mode (front torch on), it outputs the rear input minus the strongest side input. Most importantly, the device reads from container blocks placed behind it: a chest, hopper, brewing stand, or jukebox emits an analog signal proportional to fill level, enabling automated farms, item-counter displays, and disc players that trigger actions when a specific song plays.

How to craft this block

Ingredients:
Redstone Torch Redstone Torch x3
Nether Quartz Nether Quartz x1
Stone Stone x3
Crafting
Redstone Torch
Redstone Torch
Nether Quartz
Redstone Torch
Stone
Stone
Stone
→
Redstone Comparator
1