跳到正文

Stockkeeping

作者:AquaAdAstra

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

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

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.

常见问题

Stockkeeping 支持哪些 Minecraft 版本?

Stockkeeping 支持 Minecraft Java 版 1.20.1,可用的加载器:Fabric / Quilt。下载时注意选择和你游戏版本一致的文件。

Stockkeeping 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分

AquaAdAstra 的其他作品

查看全部 →