This guide covers Java Edition 26.3 series in standard Survival, with no experimental features or mods. It shows the basic layout for reading one chest directly on a flat floor.

Gather 3 Stone, 3 Redstone Torches, and 1 Nether Quartz

Materials for one ComparatorAmount
Stone3
Redstone Torch3
Nether Quartz1

Stone is made by smelting Cobblestone in a furnace. It is different from Cobblestone and from Smooth Stone, which has been smelted again. Use Redstone Torches, not regular torches.

  1. Bring the materials and select Comparator from the Crafting Table recipe list.
  2. Check that you have all the required materials and craft it.
  3. Prepare one chest and one Redstone Dust separately to check the output.
  4. Move to a flat floor away from other circuits.

If you need to get Nether Quartz, first check preparing for and returning from your first Nether trip (Japanese only). Use Nether Quartz as the ingredient, not a block of Quartz.

Face the two-torch side toward the chest

The arrow on top of the Comparator points toward its output. One torch is at the front and two are at the back. To read a chest, orient the back against the chest.

Chest → Comparator rear〔two-torch side〕→ front〔one-torch side〕→ 1 Redstone Dust

  1. Place a chest on the floor.
  2. Place the Comparator on the floor beside it, with the rear against the chest.
  3. Place one Redstone Dust in front of the arrow.
  4. Empty the chest and check whether the dust turns off.
  5. Put in one Cobblestone and check whether the dust receives a signal.
  6. Remove the Cobblestone and check that the dust turns off again.

This layout does not automatically move the items you put in. It reads the contents and converts them to a signal. For transport, combine it separately with Hopper direction and automatic furnace input/output.

If you placed it facing the wrong way, remove and place it again. Right-click changes its mode, not its facing direction.

A small amount produces a weak signal

An empty chest outputs 0; a full chest outputs 15. In between, the signal changes with how full the storage is. The Comparator does not identify the item's name or value.

State of one chestWhat to expect
Completely emptyNo signal
One CobblestoneA weak signal; do not run a long wire yet
Add more of the same itemStrength increases in steps as fullness rises
All 27 slots filled to their item stack limitsOutput is 15

The signal does not increase by 1 for each item added. Also, an item that stacks to 64 and a non-stackable tool occupy different proportions of the chest per item. For the first test, use the same item such as Cobblestone so you can compare without mixing item-type differences.

With only a small amount inside, the signal can fade out along a long Redstone Dust line. That is why you first check the single dust directly in front. If you only need to send “there is something in the chest” over a longer distance, you can place a Repeater where it receives the output. However, a Repeater outputs a full-strength signal and does not preserve the original fine-grained strength reading.

Compare and subtract behave differently with a side input

A Comparator starts in compare mode. Right-click switches it to subtract mode, and the small front torch lights up. Use it again to switch back to compare mode.

ModeHow rear and side signals are handled
CompareIf the rear signal is greater than or equal to the strongest side signal, output the rear strength; if the side is stronger, output 0
SubtractOutput max(0, rear − strongest side); if the result is 0 or less, output 0

If signals come from both sides, the stronger side signal is used. For example, rear 10 and side 4 gives 10 in compare mode and 6 in subtract mode. Rear 10 and side 10 gives 10 in compare mode and 0 in subtract mode.

For the first chest test, leave the side inputs disconnected. Another wire on a side can make the output disappear even when the chest has items. Check the front mode indicator separately from whether the Redstone Dust on the output is powered.

What to check when it does not respond

  1. Open the chest and confirm it actually contains an item.
  2. Check that the Comparator is directly beside the chest, with its two-torch side against it.
  3. Test with only one Redstone Dust in front.
  4. Disconnect the left and right wires to remove side inputs.
  5. Switch back to compare mode and try inserting and removing the item again.
  6. Once the short test works, connect it to the intended device.

If it works here, you can separate chest reading from problems in the wiring farther down the circuit. Check where the signal changed instead of rebuilding the whole automatic sorter from the start.

Sources and references

Questions and contributions

Share questions, corrections or play reports. Only approved posts for this article and language appear here.

Submit for review

Do not include personal details, passwords or private information about others. Text only. Publication and replies are not guaranteed.