Skip to content

Stockkeeping

Adds a redstone component that reads the amount of a specific item in an inventory.

FabricQuilt
Loaders
FabricQuilt
Downloads on Modrinth
278
Followers on Modrinth
2
versions
5
Updated
January 7, 2026Jan 7
Published
in 2025
A surprise — You may not care about the other items in this chest, but if anyone steals your diamonds, they're in for an explosive surprise. · swipe

At a glance

Runs on Fabric and Quilt
For Minecraft 1.20.1
Needed in the game and on the server
Latest version — 1.4 from January 7, 2026
License LGPL-3.0-only — free
Where it's needed
In gamerequiredOn serverrequired

Needed both in the game and on the server

Game versions1.20.1

Adds a comparator-like block that reads the amount of an item in the inventory it faces.

The filtered comparator can be placed in any direction, and outputs an analogue redstone signal like a comparator facing the inventory-containing block (or, inventory-containing minecart on a detector rail) - but the filtered comparator only counts the item in it's filter slot.

Performance

  • To avoid constantly checking each inventory every tick, the Filtered Comparator only updates upon a comparator update from the block it's facing.

    • (This may cause edge cases with inventories that don't output comparator updates, or upon placement facing a chest minecart with no detector rail.)

Compatibility

  • Supports drag and drop for setting filters by EMI.
  • The Serial Port from TIS-3D can read the exact number of detected items (provided it fits in a short, that is.)
  • Functions as an InRed device for YTTR's WIP Cuprosteel wires, providing a range from 0-63 that doesn't attenuate.

...And lack thereof

  • Whilst I'm unsure, I believe this will not function with Modern Industrialization machines, as from what I recall, those do not output Comparator Updates.
  • If an inventory cannot be seen by an unmodified vanilla hopper, then the Filtered Comparator will be unable to read it.

Mixins

  • AbstractBlockStateMixin: injects at the head of isOf to return true if a Filtered Comparator is checked if it's a regular comparator.
  • World: injects at the head of updateComparators to also update vertically, but only for Filtered Comparators.
  • Several mixins to itself for adding conditional compatibility for YTTR when both mods are loaded.

FAQ

How to install Stockkeeping?

Install Fabric for your Minecraft version, download Stockkeeping for the same version and loader, put the file into the mods folder and launch the game with the loader profile.

Which Minecraft versions does Stockkeeping support?

Stockkeeping has builds for Minecraft 1.20.1.

Is Stockkeeping needed on the server?

Needed in the game and on the server

License and source
GNU Lesser General Public License v3.0 onlyfree to use and share; changes to the mod itself must be published under the same license
Original — Modrinth↗Files unchanged, verified with SHA-512Is this your mod? For rights holders

The site uses cookies: the necessary ones for sign-in and the theme, plus the Yandex Metrica and LiveInternet visit counters — they show us how the site is used. We have no advertising cookies. More