nocware

nocware › Blog › Comparator Guide

Comparator Guide

It reads how full a block is and turns it into redstone.

A comparator surrounded by a chest, a hopper, nether quartz and a cake on smooth stone
Quick answer
  • A Comparator reads how full a container is and turns it into a signal from 1 to 15.
  • Click it to switch between compare mode and subtract mode.
  • It also reads cakes, composters, item frames, jukeboxes and more.

Comparators are the redstone part that "looks inside" blocks. They're how auto smelters know a chest is full and how item sorters work.

Stack & Shulker CalculatorConvert Minecraft items into stacks, shulker boxes and chests

Crafting

RowItems
TopEmpty, redstone torch, empty
MiddleRedstone torch, nether quartz, redstone torch
Bottom3 stone

You need Nether quartz from the Nether, so comparators come a little later than other redstone parts.

The two modes

ModeFront torchOutput
CompareOffThe back signal, unless a side signal is stronger. Then off
SubtractOnBack signal minus the strongest side signal
ExampleIn subtract mode, a back signal of 9 with a side signal of 5 gives 4.

Reading containers

Put a comparator facing away from a chest, hopper, barrel or furnace. Any item inside gives at least 1. A full container gives 15.

The signal goes up with how full the slots are, not how many items there are. So a chest of tools fills up the signal far faster than a chest of dirt.

SignalChest (64 stack items)Hopper (64 stack items)
111
212423
549492
8864160
101,111206
151,728320
15max signal
23items in a hopper for signal 2
Item sortersSorters put a comparator on a filter hopper. When a matching item arrives, the signal goes up by one and unlocks the hopper below so it can drain.

Other blocks it reads

BlockSignal
Cake2 per slice left, 14 when full
Composter0 to 8 by fill level
Cauldron0 to 3 by fill level
Item frame1 to 8 by rotation
JukeboxDepends on the disc
End portal frame15 with an eye of ender
Beehive0 to 5 by honey level
Respawn anchor0, 3, 7, 11 or 15 by charge
LecternHigher the further through the book
PlacementThe comparator reads the block behind it. Check the arrows on top point away from the container.

Cheat sheet

  • 3 redstone torches, 1 quartz, 3 stone
  • Front torch off: compare. On: subtract
  • Full container gives 15
  • Hopper: 23 items for signal 2
Stack & Shulker CalculatorConvert Minecraft items into stacks, shulker boxes and chests

More guides

All guides →

Free Minecraft tools

See all 30 tools →

Made by nocware, a Hardcore Minecraft streamer. One life, live Mon, Wed and Fri at 6pm UK.