Home › Minecraft › How to Make a Redstone Comparator in Minecraft

How to Make a Redstone Comparator in Minecraft

How to Make a Redstone Comparator in Minecraft

The comparator is the thinking player's redstone component. Repeaters shout, observers notice, but the comparator measures. It can tell you how full a chest is without opening it, weigh one signal against another, and do quiet arithmetic that entire farms quietly depend on. It has been in the game for years and is still the component most players never learn, which is a shame, because the recipe is cheap.

Items You Need

  • 3 redstone torches (a stick and redstone dust each)
  • 3 stone blocks (smelt cobblestone, or mine stone with silk touch)
  • 1 nether quartz (from nether quartz ore in the Nether, or bought from an expert stone mason)

The Comparator Crafting Recipe

  1. Fill the entire bottom row of the crafting grid with stone blocks.
  2. Place the nether quartz in the centre slot.
  3. Put redstone torches above, left and right of the quartz, leaving only the top corners empty.

Comparators also generate naturally in ancient cities, of all places, tucked near the big portal-like structure, but crafting them is far less likely to get you killed by a Warden.

The Two Modes: Compare and Subtract

A comparator has inputs at the back and both sides, and one output at the front. The small torch on its front edge is a mode switch you toggle by right-clicking.

Front torch off (compare mode): the comparator passes the back signal through only if it is at least as strong as the strongest side input. Back 10, side 5: output 10. Back 2, side 5: output nothing. It is a gatekeeper.

Front torch on (subtract mode): the output is the back signal minus the strongest side signal. Back 10, side 4: output 6. This is how players build signal-strength locks, precise counters and item counters that only fire at an exact fill level.

One timing note: a comparator takes two game ticks to pass a signal, so it cannot react to the very fastest one-tick pulses.

Reading Containers: The Killer Feature

Point a comparator at the back of a container and it outputs a signal proportional to how full that container is: empty gives 0, completely full gives 15, and everything between scales smoothly. It works on far more than chests:

Storage it readsUnusual things it also reads
Chests and trapped chestsCake (signal drops as slices are eaten)
Barrels and shulker boxesComposters (by compost level)
Hoppers, droppers, dispensersLecterns (by the page being read)
Furnaces, blast furnaces, smokersBeehives and bee nests (by honey level)
Brewing standsCauldrons, item frames, respawn anchors

That one ability powers overflow protection on farms, fullness indicators on storage systems, and the classic starter project: a hopper with a comparator and a redstone lamp that lights up whenever the hopper has anything in it. Build that once and the rest of the component suddenly makes sense.

Comparator vs Repeater

They look similar and get confused constantly, so here is the whole difference: a repeater boosts a signal back to full strength, delays it, and only lets it travel one way. A comparator cannot boost or meaningfully delay anything. It measures, compares and subtracts. Farms that sort, count or switch themselves off when a chest fills up are comparator territory; long signal wires are repeater territory.

Frequently asked questions

Where can I find a comparator without crafting one?

Comparators generate naturally in ancient cities, near the large portal-like structure at the centre. Crafting one is much safer for most players.

How do I switch a comparator to subtract mode?

Right-click the comparator to light its front torch. Torch on means subtract mode, where the output equals the back signal minus the stronger side signal. Torch off is compare mode.

Can a comparator read a shulker box or barrel?

Yes. It reads nearly every container, including shulker boxes, barrels, hoppers and furnaces, plus oddities like cakes, composters and lecterns, outputting 0 to 15 based on fullness.

What is the difference between a comparator and a repeater?

A repeater restores a signal to full power and adds delay. A comparator never boosts a signal; it compares or subtracts side inputs and measures container fullness instead.