What Is Container Measurement?
One of the four primary functions of a redstone comparator is measuring block states, most commonly the fullness of storage containers. When a comparator faces away from a valid container—either touching it directly or separated by one solid opaque block—it reads the inventory and outputs a signal strength representing the average fullness across all available slots.
An completely empty inventory outputs a signal strength of 0, any non-empty container outputs at least 1, and a completely filled inventory outputs the maximum strength of 15. When reading a large chest or large trapped chest, the comparator evaluates all 54 slots across the entire double block, not just the 27 slots directly behind it.
Exact Formulas & Item Weights
Because different items stack to 64, 16, or 1, the game evaluates slot fullness as a fraction rather than a raw item count. You can also think of this using Full-Stack-Equivalent (FSE) weights, where standard 64-stack items add +1, 16-stack items (like ender pearls or snowballs) add +4, and non-stackable items (like minecarts or boats) add +64.
- Slot Fullness:
number of items in slot / max stack size for that item - Signal Strength from Items: For any non-empty container,
signal strength = floor(1 + ((sum of all slots' fullnesses) / (total slots in container)) × 14) - Items Required for Desired Signal (64-stack equivalents):
items required = max(desired signal strength, roundup((total slots in container × 64 / 14) × (desired signal strength − 1)))
Worked Examples
Here is how to calculate outputs and required inputs step by step:
- Calculating Signal Strength (Dispenser with 300 blocks): A dispenser has
9slots, and standard building blocks stack to64. First, find the total slot fullness sum:300 / 64 = 4.6875. Divide by the 9 slots:4.6875 / 9 = 0.52083. Multiply by 14 and add 1:1 + (0.52083 × 14) = 8.292. Rounding down (floor) gives a final signal strength of 8. - Calculating Required Items (Furnace at Strength 9): A furnace has
3slots. Using the reverse formula for strength 9:(3 × 64 / 14) × (9 − 1) = 13.714 × 8 = 109.714. Rounding up gives110. Comparingmax(9, 110), you need a full-stack-equivalent of 110 items (for example, 1 stack of 64 plus 46 extra items). - Mixing Stack Sizes (Hopper at Strength 10): A 5-slot hopper needs an FSE of at least
206(3 stacks + 14) and strictly less than229(3 stacks + 37) to output strength 10. Instead of placing 206 dirt blocks, you can insert3minecarts (3 × 64 = 192FSE) and14dirt blocks (14 × 1 = 14FSE) to reach206FSE instantly.
How Players Use & Exploit It
- Compact Constant Signal Generators: Instead of stretching long redstone dust lines to decay a signal to a specific power level, technical players place a furnace, hopper, or dropper behind a comparator and fill it with a calculated mixture of non-stackable, 16-stack, and 64-stack items to dial in an exact reference strength for subtraction or comparison circuits.
- Non-Stackable Item Detection: Because a single non-stackable item contributes 64 FSE (a full slot), placing just one in a 5-slot hopper immediately outputs signal strength
3, whereas a single stackable item only outputs1. This jump allows circuits to instantly distinguish unstackable gear or potions from bulk blocks. - Horizontal Hopper Flow Monitors: Comparators can detect every single item moving through a horizontal hopper pipe because items transfer at a pace the comparator can resolve. Under a continuous stream of items, the comparator stays steadily powered without blinking off.
Common Mistakes
- Blocking Chests from Opening: If a regular chest or trapped chest cannot open because an opaque block, cat, or ocelot is resting on top of it, a comparator reading it will always output
0regardless of how many items are inside. Use a shulker box instead if the top must be blocked, as shulker boxes can still be measured when obstructed. - Reading Vertical Hopper Pipes: Placing a comparator against a vertical chain of hoppers often fails to register passing items. When items move straight down, a hopper has its item pulled out by the hopper below just 1 game tick after receiving it. Since a comparator needs a measurement lasting at least
1.5 redstone ticks(3 game ticks) to respond, the output remains at0. - Overpowering the Separating Block: Reading a container through a solid opaque block is standard practice to keep builds clean. However, if an external redstone source powers that solid block to signal strength
15, the comparator will output15instead of the container's true fullness.
