添加了一个类似比较器的方块,用于读取其正对方向方块的物品数量。
过滤比较器可以放置在任意方向,并输出模拟红石信号,类似于正对包含容器方块的比较器(或位于检测轨上的含容器矿车)——但过滤比较器仅统计其过滤器槽位中的物品。
性能
- 为避免每刻检查每个容器,过滤比较器仅在它正对的方块发出比较器更新时进行更新。
- (这可能会导致一些边缘情况,例如某些不输出比较器更新的容器,或者当它正对没有检测轨的含容器矿车时。)
兼容性
- 支持通过 EMI 拖放来设置过滤器。
- TIS-3D 的串口可以读取精确的检测物品数量(前提是该数值适合 short 类型)。
- 作为 YTTR 开发中铜钢线的 InRed 设备,提供 0-63 且不衰减的范围。
...以及缺乏的情况
- 虽然我不确定,但我认为这将无法与现代工业化的机器配合使用,因为据我所知,这些机器不会输出比较器更新。
- 如果普通漏斗都无法看到某个容器,那么过滤比较器也无法读取它。
Mixins
AbstractBlockStateMixin:在isOf方法头部注入,如果检查的是过滤比较器且为常规比较器时返回true。World:在updateComparators方法头部注入,使其也能垂直更新,但仅限过滤比较器。- 几个针对自身的 mixin,用于在两个模组同时加载时为 YTTR 添加条件兼容性。
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 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.- Several mixins to itself for adding conditional compatibility for YTTR when both mods are loaded.
下载 Stockkeeping
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Stockkeeping
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Stockkeeping
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Stockkeeping
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Stockkeeping
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
修复了一个偏移一位的错误,并增加了对 Yttr(开发中)的 InRed Cuprosteel 线缆的支持,以获得更高的分辨率。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
AE2:一款流行的自动化与存储模组
模组
基于 GTCEu 1.12.2 的现代 GregTech
模组
让你能够在世界中的任何位置定位结构。
模组
高科技机械、强大的能量生成、炫酷的小工具以及更多内容。现已登陆 Modrinth!
模组
更聪明地交易,随处存储,并用奇妙的原版增强机制打造更好的体验。
评论 0
登录后参与评分
还没有评论,来抢沙发吧