Pages
Utilities

Hopper Filter

Choose which items a hopper lets through

Give each hopper (and hopper minecart) rules for which items to pass or block. No formulas or functions: pick a rule type from the menu and fill in an item, text or number. Java players get a chest menu, Bedrock players get forms.

5 sections About 5 min read

Server-only items are sorted by kind

If you pick a server-only item (caught fish, special ore, bait, uranium fuel and so on) for "Item type", the rule only matches that exact kind (picking tuna won't match other fish). Normal items still match by their vanilla type.

Quick start

Look at a hopper and type /hf → "+ Add a rule" → "Item type" → click the item in your inventory → "Done". Now only that item goes through.

Filters survive breaking

Breaking a filtered hopper puts the filter into the dropped hopper item (its lore says "Hopper filter"). Place it again to reuse the same filter. Crafting a hopper minecart keeps it too. To reuse a filter on many hoppers, press "Apply this filter to other hoppers" in the menu, then punch other hoppers. Each hopper you punch gets the same filter.

How to read commands (read this first)
  • name
    Orange dashed box: replace it with your own value

    Don't type the word in the box — put your own value there.
    /t new name → /t new SakanaTown/t new name

  • name
    Gray dashed box: optional, you can leave it out

    The command works without it. If you add it, use your own value.
    /home name → /home or /home base

  • on/off
    Blue box: pick just one of the words separated by "/"

    Type only one word, without the "/". Each option is explained right under the command.
    /plot toggle pvp/fire → /plot toggle pvp/plot toggle pvp/fire

Click a command row to copy it up to the first box, then type the rest yourself.

01Opening the settings

Only players who can break that hopper (land permissions) and the lock owner / trusted players can change it.

  1. Look at the hopper (within 6 blocks) and type /hf
  2. On a locked hopper you can also sneak + right-click with an empty hand (on unlocked hoppers that gesture locks it)
  3. Hopper minecarts work the same way: look at it and use /hf, or sneak + right-click

02How it works

  • "Only let matching items through": only items that match pass; everything else stops
  • "Block matching items": items that match stop; everything else passes
  • "Any": with 2+ rules, matching one rule is enough
  • "All": an item must match every rule
  • Rule groups (parentheses): use "+ Add a rule group" to build things like "(A and B) or C". Choose "All" or "Any" inside each group and between groups
  • Number rules (stack size, durability, enchantment level, potion duration, map ID, stored XP) let you pick the comparison: at least, at most, exactly, more than, less than
  • Turn on "not" on a rule to invert it (e.g. NOT "is enchanted")
  • "Also when picking up from the ground" applies the filter to items dropped on top
  • With no rules, or when the filter is off, the hopper passes everything like normal
  • If the first item doesn't match, matching items further back still pass one by one (the hopper won't jam)
  • Sorting: when a sideways hopper has hoppers both to the side and below, matching items go to the hopper with the filter

03Available rules

For text, player names and town/nation names, separate several entries with a comma (,). Matching any one of them is enough.

Example: Name contains "diamond,emerald" → items whose name contains diamond or emerald

Example: English item ID contains "ore,log,planks" → ores, logs and planks

Example: Thrown by "Steve,Alex" → items thrown by Steve or Alex

Item types, groups, enchantments, tags, etc. are picked in the menu, as many as you like (matching any one is enough).

RuleInputMeaning
Item typePick from inventory (any number)Any of the chosen items. Names and enchantments are ignored
Exactly the same itemPick from inventorySame name, enchantments and everything
Item groupChoose groupsOres, logs, planks, wool, glass, crops, food, tools, weapons, armor, potions, dyes, shulker boxes, etc.
Name containsText (e.g. diamond,sword)The displayed name contains the text (Japanese or English)
Name is exactlyText (e.g. Town Key,Storage Key)The name is exactly the text
Lore containsText (e.g. rare,limited)The item's lore contains the text
English item ID containsText (e.g. ore,log,diamond)ore, log, diamond, etc.
Is enchanted—Enchanted books count too
Has a specific enchantmentEnchantment + levelHas the chosen enchantment at the level or higher
Has a custom name—Renamed on an anvil, etc.
Stackable—Stacks to 2 or more
Edible—Food
Furnace fuel—Coal, wood, etc.
Smeltable—Can be smelted in a furnace
Compostable—Crops, leaves, etc.
Damaged—Tools/armor that have been used
Remaining durability (%)Number + comparisonCompare remaining durability in % (e.g. at most 10%)
Stack sizeNumber + comparisonCompare the stack size (e.g. at least 16)
Sakana-only item—Caught fish, special ores, vote crates, Sakana tools, etc.
Thrown by XPlayer name (e.g. Steve,Alex)Ground pickup only: items that player threw/dropped
Name starts / ends withText (e.g. Diamond,Iron)The displayed name starts / ends with the text
Has lore—The item has lore
Lore line is / starts with / ends withTextChecked against each lore line
English item ID starts / ends withText (e.g. diamond,netherite / _ore,_log)Starts with diamond, ends with _ore, etc.
Vanilla tagChoose tagsAny vanilla item tag (wool, logs, planks, ...)
Unbreakable—Has the Unbreakable flag
Repairable on an anvil—Tools, armor, etc.
RarityChooseCommon, uncommon, rare, epic
Has an armor trim—Armor trimmed at a smithing table
Armor trim material / patternChooseDiamond, gold, amethyst... / coast, dune, flow...
Book authorPlayer name (e.g. Steve,Alex)Author of a signed book
Book title containsText (e.g. diary,rules)Title of a signed book
Book generationChooseOriginal, copy of original, copy of copy, tattered
Potion typeChooseSwiftness, regeneration, fire resistance... (long / strong variants too)
Potion effectChoosePotions, tipped arrows, etc. containing the effect
Potion duration (seconds)Number + comparisonCompare the longest effect duration
Head ownerPlayer name (e.g. Steve,Alex)That player's head
Head skinTextSkin texture ID (end of the texture URL)
Map IDNumber + comparisonCompare the map number
Stored XPNumber + comparisonXP stored in a bottle with /bottle
Smeltable inChooseFurnace, blast furnace or smoker
Came fromChooseChest, barrel, hopper, furnace, ground, etc.
Thrown by someone—Ground pickup only: items a player threw/dropped
Thrower's town / nationTown / nation name (e.g. FishTown,SeaTown)Ground pickup only

04Examples

  • Collect only ores: rule "Item group: Ores" + "Only let matching items through"
  • Protect enchanted gear at a trash disposal: rule "Is enchanted" + "Block matching items"
  • Send nearly broken tools to a repair chest: rule "Durability at or below 10%" + "Only let matching items through"
  • Pass everything except cobblestone: rule "Item type: Cobblestone" + "Block matching items"
  • Item sorter: a line of sideways hoppers with filtered hoppers below — matching items drop down, the rest continue
  • Complex rules: group 1 "Item group: Tools" AND "Is enchanted", group 2 "Item type: Diamond", groups combined with "Any" → only enchanted tools or diamonds pass
  • Release full stacks only: rule "Stack size: exactly 64" + "Only let matching items through"

05Commands

Use all of these while looking at the hopper.

CommandDescription
on
Use the filter
off
Don't use the filter (pass everything)
allow
Only let matching items through
deny
Block matching items