The redstone comparator is arguably the most sophisticated logic gate in Minecraft. While a redstone repeater simply extends or delays a signal, the comparator performs mathematical operations and senses the internal state of blocks. To build an automated item sorter, a precise redstone clock, or a sophisticated security system, you must first understand how to craft this component and then how to implement its dual-mode logic.

The crafting recipe for a redstone comparator

To craft a redstone comparator, you require a 3x3 crafting grid and specific materials sourced from both the Overworld and the Nether. The arrangement is precise, and using the wrong variant of a material (such as cobblestone instead of smooth stone) will result in a failed craft.

Required Materials:

  • 3 Redstone Torches
  • 3 Stone Blocks (Standard grey stone, not cobblestone)
  • 1 Nether Quartz

Grid Arrangement:

  1. Open your crafting table.
  2. In the top row, place one Redstone Torch in the center slot (the two corner slots remain empty).
  3. In the middle row, place one Redstone Torch in the left slot, one Nether Quartz in the center slot, and one Redstone Torch in the right slot.
  4. In the bottom row, place three Stone Blocks, filling all three slots.

Once arranged correctly, a single redstone comparator will appear in the output slot. This configuration creates a "U" shape of torches around the central quartz, sitting upon a solid stone base.

Sourcing the components

Obtaining Stone

Stone is the most common material but often requires a two-step process. When you mine stone with a standard pickaxe, it drops as cobblestone. To turn it back into the smooth stone required for the recipe, you must smelt the cobblestone in a furnace using any fuel source (coal, wood, or lava). Alternatively, using a pickaxe enchanted with Silk Touch allows you to mine the stone block directly in its smooth form, bypassing the smelting process.

Crafting Redstone Torches

Each redstone torch requires one stick and one piece of redstone dust. In your crafting interface, place the redstone dust directly above the stick. Redstone dust is found deep underground, typically below Y-level 0. Mining redstone ore with an iron pickaxe or better will yield multiple pieces of dust per block.

Finding Nether Quartz

Nether Quartz is the primary gatekeeper for this recipe. You must construct a Nether Portal using obsidian and flint and steel. Once inside the Nether, look for white ore veins embedded in netherrack. Nether Quartz ore is abundant, but the environment is hazardous. It is advisable to wear at least one piece of gold armor to avoid aggression from Piglins and to bring a shield to deflect Ghast fireballs. Mining the ore with any pickaxe will drop the quartz item directly.

Understanding the two modes of operation

A redstone comparator has two pins at the back (input) and one pin at the front (output). There is also a small torch at the front that can be toggled by right-clicking (interact) the block. This toggle determines whether the comparator is in Comparison Mode or Subtraction Mode.

Comparison Mode (Front Torch Off)

This is the default state. In this mode, the comparator compares the signal strength coming into the back with the signal strength coming into either of its sides.

  • If the back input is greater than or equal to the strongest side input, the output signal strength will be exactly the same as the back input.
  • If the side input is stronger than the back input, the output is 0.

This is essential for creating "threshold" gates where a machine only activates once a certain signal strength is reached.

Subtraction Mode (Front Torch On)

When you right-click the comparator and the front torch lights up, it performs a subtraction calculation. It takes the signal strength of the back input and subtracts the strength of the strongest side input.

  • Formula: Output = Max(0, Back Input - Strongest Side Input).

For example, if the back signal is 15 and the side signal is 7, the comparator will output a signal of 8. This mode is the foundation of compact redstone clocks and complex calculators.

Detecting container fullness

Beyond logic, the comparator acts as a sensor. When placed with its back against a container, it outputs a signal proportional to how full that container is. This works through solid blocks, meaning you can place a block between the chest and the comparator and still receive a signal, provided the block is "strongly powered" or the comparator is directly adjacent.

Signal Strength Calculation

The game uses a specific formula to determine the signal strength output (from 0 to 15): Signal Strength = 1 + [ (Items in container) / (Total slots in container * 64) ] * 14 (Note: This varies slightly for items that stack to 1 or 16, as the calculation is based on 'slots' rather than raw item counts.)

Compatible Blocks

  • Chests and Barrels: Signal increases as more items are added.
  • Furnaces, Blast Furnaces, and Smokers: Measures both fuel and input/output slots.
  • Hoppers: Critical for automatic sorting systems.
  • Brewing Stands: Detects bottles and ingredients.
  • Crafters (v1.21+): Detects how many slots are filled or disabled, allowing for automated factory loops.
  • Jukeboxes: Outputs a signal based on which music disc is playing.
  • Composters: Outputs a signal based on the fill level (0-8).
  • Cauldrons: Outputs a signal based on the water, lava, or powder snow level (0-3).
  • Lecterns: Outputs a signal based on the page the reader is currently on.

Practical applications in modern builds

The Item Sorter

An item sorter relies on a comparator checking a hopper. By filling a hopper with 22 items of a specific type, the comparator outputs a signal strength of 3. When a 23rd item enters, the signal increases to 4, which can be used to trigger a redstone torch to unlock a lower hopper. This is the backbone of every organized survival base.

Rapid Pulse Clocks

By placing a comparator in subtraction mode and looping the output back into its own side input, you create a rapid clock. When the back is powered (e.g., by a lever), the comparator outputs power, which then travels into the side, causing the comparator to subtract that power from the input, turning itself off. This cycle repeats every 2 redstone ticks (0.2 seconds), creating a very fast pulse suitable for dispensers or droppers.

Pulse Extenders

Sometimes a stone button pulse (10 ticks) is too short. By placing two comparators side-by-side facing opposite directions and connecting them with redstone dust at both ends, you create a loop where the signal strength gradually decays. This keeps the signal "alive" for several seconds, which is useful for hidden doors that need to stay open longer.

Troubleshooting common comparator issues

If your redstone comparator isn't working as expected, check the following common pitfalls:

  1. Orientation: The two pins at the back must face the source of the signal. If you place it sideways, it will treat your intended input as a "side input" and likely output nothing.
  2. Signal Decay: Comparators do not boost signal strength to 15 like repeaters do. If you input a signal of strength 5, the output will be 5. If your redstone wire is too long after the comparator, the signal will die out before reaching its destination.
  3. Unintended Side Inputs: If a redstone wire is running parallel to the comparator one block away, it may be providing a side input that you didn't intend. This can cause the comparator to stop outputting power in Comparison Mode.
  4. 1-Tick Pulses: Comparators have a 2-tick delay. They are often too slow to detect 1-tick pulses generated by some observer-based machines. If you need to capture a 1-tick pulse, a repeater or a pulse sustainer is a better choice.
  5. Sub-optimal Blocks: You cannot place a comparator on non-solid blocks like glass, leaves, or glowstone. It must be placed on a solid surface.

The role of the comparator in 2026 automation

With the continued expansion of automation blocks, the redstone comparator has become even more relevant. The interaction between comparators and the Crafter block allows for "smart factories" where a system can detect when it has enough ingredients to produce a complex item (like a piston) and only then trigger the craft.

Furthermore, the use of comparators with Sculk Sensors and Calibrated Sculk Sensors allows for wireless redstone transmission based on specific frequencies. By using a comparator to output a specific signal strength into a calibrated sensor, you can filter for specific sounds, such as a player opening a chest or a mob walking nearby.

Mastering how to craft a redstone comparator is the first step toward moving from a basic player to a redstone engineer. While the recipe is simple, the logic it provides is infinite. Experiment with the subtraction mode and container sensing to discover new ways to automate your Minecraft world.