Compatibility
Minecraft: Java Edition
1.20.1
Platforms
Supported environments
Links
Creators
Details
Licensed LGPL-3.0-only
Published 2 months ago
Updated 3 weeks ago
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 powered 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.)
...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.
Mixins
AbstractBlockStateMixin: injects at the head ofisOfto returntrueif a Filtered Comparator is checked if it's a regular comparator.World: injects at the head ofupdateComparatorsto also update vertically, but only for Filtered Comparators.


