Comparator Calculator

Find the signal your storage gives off and count the items needed to reach each strength.

Java

Measure your container

Calculation direction
Container
Items per stack

A chest gives no signal if a solid block or a sitting cat keeps it closed.

Comparator output

2/ 15

Filled container command

For Java 1.20.5 and later. This replaces the block at your position.

Items for each strength

Chest with 64 items per stack
TargetMinimum itemsOutput
111
21242
32473
43714
54945
66186
77417
88648
99889
101,11110
111,23511
121,35812
131,48213
141,60514
151,72815

An empty container outputs zero.

Set up a storage alarm before the chest fills

Choose Signal to items to find the smallest load that triggers the reading you want.

  1. Select the container your comparator will read. Pick Double Chest if you have two connected halves.
  2. Choose the largest stack your item can form. Stone stacks to 64, ender pearls to 16, and a sword takes a slot on its own.
  3. Set Target signal. Signal 2 takes 124 stone in a single chest. You can set that aside as a stack of 64 and a stack of 60, then check the strength before reconnecting your item line.

Some inventories skip a strength. One sword in a hopper already gives a reading of 3. Check the output column when a row says Skipped, since the minimum listed there reaches a higher strength.

Check a chest with different items

Pick Items to signal and turn on Edit each slot for a mixed inventory. Enter the count and stack limit for every occupied slot. One sword fills its slot as much as 64 stone fills another. Leave unused slots at zero. In a furnace or brewing stand, check where each item fits before you plan the circuit.

Place the back of the comparator against the container. The reading here is the strength at the comparator in compare mode with its sides unpowered. Dust farther along the line can be weaker.

Place a test container in Creative

With cheats or operator permissions in Java 1.20.5 or later, use Copy command to place a supported container with test items already inside. Stand on an empty spot in your test area before pasting the command into chat. It replaces the block at your feet. Connect your comparator and check the reading before using the setup in your main build.

Read blocks that hold more than items

Use these Java readings when your comparator faces a block such as a beehive, composter or jukebox.

Show block outputs

Cake

Slices leftSignal
714
612
510
48
36
24
12

Composter

Level 7 changes to 8 when the compost is ready.

Compost levelSignal
00
11
22
33
44
55
66
77
88

Empty Cauldron

Fill levelSignal
00

Water Cauldron

Water levelSignal
11
22
33

Powder Snow Cauldron

Powder snow levelSignal
11
22
33

Lava Cauldron

Filled with lavaSignal
Full3

Respawn Anchor

ChargesSignal
00
13
27
311
415

End Portal Frame

Eye of EnderSignal
Missing0
Inserted15

Beehive

Honey levelSignal
00
11
22
33
44
55

Bee Nest

Honey levelSignal
00
11
22
33
44
55

Chiseled Bookshelf

An untouched shelf reads 0. The reading follows the last slot you used.

Last slot usedSignal
00
11
22
33
44
55
66

Crafter

Count a slot once if it is filled or disabled.

Filled or disabled slotsSignal
00
11
22
33
44
55
66
77
88
99

Decorated Pot

Items that stack to 64Signal
00
11
41
328
6415

Jukebox

Music discSignal
1111
131
515
blocks3
bounce8
cat2
chirp4
creator12
creator music box11
far5
lava chicken9
mall6
mellohi7
otherside14
pigstep13
precipice13
relic14
stal8
strad9
tears10
wait12
ward10