The basics of chest filtering
Chest filtering in Minecraft lets you sort and organize items automatically using hoppers and comparators. A hopper is a block that moves items into or out of containers, and a comparator is a redstone component that detects how full a container is. Together, they form a system that can separate stacks of items and route them to different chests based on what they are.
The simplest filter uses a hopper pointing into a chest, with a comparator watching that chest. When the chest fills to a certain level, the comparator sends a redstone signal that stops the hopper from dropping more items. This works for basic sorting, but more complex filters let you separate different item types entirely.
Key Takeaways
- A basic hopper-and-comparator filter stops items from entering a chest once it reaches a full or half-full state, useful for preventing overflow.
- Item-specific filters use hopper locks and test items to separate different materials into different chests automatically.
- The hopper lock method works by placing a comparator next to a hopper that contains a single test item, which locks the hopper when the target chest fills.
- Redstone dust and repeaters extend signals over distance and add delays, letting you build filters that work across multiple chests in a line.
Setting up a simple overflow filter
Start with two chests side by side. Place a hopper above the first chest so items fall into it. Next to that hopper, place a comparator facing away from the hopper. Run redstone dust from the comparator back to the hopper's side.
When you drop items into the hopper, they move into the first chest. Once that chest fills completely, the comparator detects the full state and sends a signal through the redstone dust. This signal locks the hopper, stopping it from dropping more items. Any new items then stay in the hopper itself or back up into whatever fed items to it.
This setup is useful for farms or mob grinders where you want items to flow into a primary chest first, then overflow into a secondary one. You can add a second hopper below the first chest to catch overflow and route it elsewhere.
Building an item-specific filter with hopper locks
To separate different item types, you need a hopper lock. This uses a comparator to detect a specific item in a hopper, which then locks a second hopper and prevents it from moving items.
Place a hopper on top of a chest. Next to that hopper, place another hopper pointing sideways into a different chest — this is your filter hopper. Put a comparator next to the filter hopper facing away from it. Run redstone dust from the comparator back to the filter hopper's side.
Now place a single test item in the top hopper — for example, one diamond. When items flow through the filter hopper, the comparator detects the diamond in the top hopper and locks the filter hopper. Only items that match the test item will pass through. Items that don't match back up and can be routed to another filter or chest.
Chaining multiple filters together
To sort many different item types, build several filter hoppers in a line, each with its own test item and target chest. Items enter the first filter, and anything that doesn't match gets pushed to the next filter in the chain.
Use redstone repeaters to extend signals between filters if they are far apart. A repeater adds a one-tick delay and can be set to delay longer if needed. This prevents signal conflicts and lets you build filters across a larger area.
For example, you might have one filter for diamonds, one for emeralds, one for iron, and one for everything else. Items drop into the diamond filter first. Non-diamonds move to the emerald filter. Non-emeralds move to iron. Anything left goes to a catch-all chest.
Troubleshooting common filter problems
If items are not moving through your filter, check that the hopper is actually locked. The hopper lock only works when the comparator detects a full enough signal from the test item. If your test item is a single stack, the comparator may not send a strong enough signal. Try adding more test items to the hopper until the comparator activates.
If items are moving too slowly, you may have too many filters in a chain. Each filter adds delay, and redstone signals take time to travel. Reduce the number of filters or use multiple parallel chains instead of one long line.
If the wrong items are passing through, double-check your test items. Make sure each filter hopper contains only the item type you want to sort. A stray item in the wrong hopper will cause the filter to lock incorrectly.
Using comparators to detect fill levels
Comparators output a redstone signal strength based on how full a container is. A completely empty chest outputs no signal. A half-full chest outputs a medium signal. A completely full chest outputs the strongest signal.
You can use this to trigger different actions at different fill levels. For example, place a comparator next to a chest, then run redstone dust to a lamp. The lamp turns on when the chest reaches a certain fullness. This is useful for knowing when to empty a storage chest or when a farm has produced enough items.
Comparators can also subtract signals. If you place two comparators next to each other in a specific way, the second one subtracts the signal of the first. This is an advanced technique used in more complex redstone contraptions, but the basic idea is that comparators give you control over when things happen based on container fullness.
Frequently Asked Questions
Do I need to use a double chest or does a single chest work?
A single chest works fine for filtering. Double chests hold twice as many items, so they fill more slowly and require fewer filter checks. For large farms, a double chest is more practical, but the filtering mechanism is the same either way.
Can I filter items without using redstone?
No, filtering requires at least a comparator and redstone dust to detect fullness and lock hoppers. However, you can manually sort items by placing multiple hoppers side by side and letting items back up into different chests — this is slower but requires no redstone knowledge.
What happens to items that don't match any filter?
They back up through the hopper chain and end up in the last chest or hopper in the line. You can place a catch-all chest at the end to collect everything that did not match earlier filters.
Can I filter items by damage value or enchantment?
No, hoppers and comparators only detect item type, not damage or enchantment. All diamonds look the same to a filter, whether they are fresh or used. You would need to sort those manually or use mods.
How fast can a filter sort items?
A single hopper moves one item every 0.4 seconds. Multiple hoppers in parallel can sort faster. Redstone signals travel instantly, but hopper locks add small delays. For most farms, a single filter hopper is fast enough, but large mob grinders may need multiple parallel filters.