ArrowCount 是一款为弓箭手打造的简易弹药显示模组。当你手持 弓 或 弩(任意手)时,一个紧凑的计数器会出现在 准星正下方,显示你携带的弹药数量。
显示内容
- 总箭数 — 统计你物品栏中的所有箭矢,在射击和补充弹药时实时更新计数。
- 类型细分 — 当你携带特殊箭矢时,第二行会将总数拆分为 普通箭、光灵箭 和 药水箭,让你清楚下一支射出的是什么箭。
- 低量/空量警告 — 当剩余箭数为 4 支或更少时,计数变为 黄色;当没有箭时变为 红色,以便你在弓弦发出空击声之前及时察觉。
设计初衷
原版游戏在不打开物品栏的情况下不会告诉你有多少箭,而且直到你彻底没箭之前,弓本身也不会给出任何提示。ArrowCount 在你最需要的时候——无论是战斗中还是狩猎中——将数字直接展示给你。此外,箭矢类型的细分功能也帮助你在需要保留光灵箭或药水箭用于特定攻击时做出更明智的选择。
控制方式
- N — 切换计数器的开启/关闭状态。操作栏消息会确认当前状态。
技术实现
- 遍历你 36 个主物品栏槽位以及副手,对
ArrowItem 堆叠进行计数,并根据物品类型区分光灵箭和药水箭。
- 仅在你手持弓或弩时显示读数,并尊重 F1(隐藏 HUD)及打开菜单时的隐藏逻辑。
- 无需 Mixin,纯客户端渲染——单个 JAR 文件可在四个游戏版本中无缝运行。
兼容性
Minecraft 1.21.8, 1.21.9, 1.21.10, 1.21.11 —— 需 Fabric Loader 0.16+。单个 JAR 覆盖全部四个版本。纯客户端模组:仅需安装于客户端即可,兼容任何 Fabric 服务器,完全原版兼容。需要 Fabric API。
ArrowCount is a tiny ammo readout for archers. Whenever you're holding a bow or crossbow (in either hand), a compact counter appears just below your crosshair showing how much ammunition you're carrying.
What it shows
- Total arrows — every arrow in your inventory, counted live as you fire and restock.
- Type breakdown — when you carry special arrows, a second line splits the total into normal, spectral, and tipped so you know exactly what you'll loose next.
- Low / empty warning — the count turns yellow at 4 arrows or fewer and red when you have none, so you notice before the string clicks empty.
Why
Vanilla never tells you how many arrows you have without opening the inventory, and the bow itself gives no hint until you're already dry. ArrowCount keeps the number in front of you exactly when it matters — mid-fight or mid-hunt — and the type split helps when you're saving spectral or tipped arrows for a specific shot.
Controls
- N — toggle the counter on/off. An action-bar message confirms the state.
How it's built
- Counts
ArrowItem stacks across your 36 main inventory slots plus the off-hand, classifying spectral and tipped arrows by item type.
- The readout only appears while you hold a bow or crossbow, and respects F1 (hide HUD) and open menus.
- No mixins, pure client-side rendering — one JAR runs unchanged across all four game versions.
Compatibility
Minecraft 1.21.8, 1.21.9, 1.21.10, 1.21.11 — Fabric Loader 0.16+. One JAR covers all four. Pure client-side: install on your client only, works on any Fabric server, fully vanilla-compatible. Requires Fabric API.
评论 0
登录后参与评分
还没有评论,来抢沙发吧