HorseStats 在你骑上马背的瞬间,将坐骑的真实属性显示在屏幕上。只要骑上任何马、驴、骡或骆驼,左上角就会弹出一个紧凑的面板:
Horse
Health: 22.0 / 30.0
Speed: 9.42 m/s
Jump: 3.86 blocks
无需打开物品栏,无需猜测——数字会在你骑行时实时更新。
显示内容
- 坐骑名称 - 马、驴、骡或骆驼,让你始终清楚自己骑的是什么。
- 生命值 - 动物当前的 / 最大生命值,随着血量下降会分别显示为绿色 / 黄色 / 红色。
- 速度 - 坐骑在地面上的最高移动速度(以每秒方块数为单位),基于其移动速度属性计算得出。
- 跳跃 - 坐骑能跳多高(以方块为单位),基于其跳跃强度属性计算得出。
为什么需要它
两匹看起来一模一样的马可能拥有截然不同的速度和跳跃能力。原版游戏仅通过手感暗示这一点,而现有的唯一读数则隐藏在坐骑的物品栏界面中。HorseStats 在你骑上的瞬间就展示真正重要的数值,让你在繁殖或购买时一眼就能分辨出优质坐骑和劣质坐骑。
工作原理
- 通过标准的活体实体 API 直接从坐骑读取生命值。
- 通过稳定的注册 ID 读取 速度 和 跳跃 属性,确保在所有支持版本中保持准确。
- 使用原版的跳跃高度曲线将跳跃强度转换为方块数,并将移动速度转换为每秒方块数。
- 通过 Fabric 的 HudRenderCallback 进行渲染,因此按 F1(隐藏 HUD)时会像其他原版覆盖层一样将其隐藏。
- 只读模式 —— 绝不改变坐骑状态,也不发送数据包。在任何服务器上都是安全的。
控制键
- H - 切换 HUD 的开启/关闭状态(默认:开启)
兼容性
适用于 Minecraft 1.21.8、1.21.9、1.21.10 和 1.21.11,配合 Fabric Loader 0.16+ 及以上版本。一个 JAR 文件兼容这四个版本——安装 Fabric API 后放入 mods/ 文件夹即可。纯客户端模组;可安全安装在任何服务器上。零配置文件。
HorseStats puts your mount's real stats on screen the moment you climb on. Get on any horse, donkey, mule or llama and a compact panel appears in the top-left corner:
Horse
Health: 22.0 / 30.0
Speed: 9.42 m/s
Jump: 3.86 blocks
No inventory to open, no guessing - the numbers update live as you ride.
What it shows
- Mount name - Horse, Donkey, Mule or Llama, so you always know what you're on.
- Health - current / max hit points of the animal, colored green / yellow / red as it drops.
- Speed - the mount's top ground speed in blocks per second, derived from its movement-speed attribute.
- Jump - how high the mount can jump, in blocks, derived from its jump-strength attribute.
Why
Two horses that look identical can have wildly different speed and jump. Vanilla only hints at this through feel, and the one existing readout lives buried in the mount's inventory screen. HorseStats shows the numbers that actually matter the instant you mount up, so you can tell a keeper from a dud at a glance while breeding or shopping.
How it works
- Reads health straight from the mount via the standard living-entity API.
- Reads the speed and jump attributes by their stable registry ids, so it stays correct across every supported version.
- Converts jump strength to blocks with the vanilla jump-height curve, and movement speed to blocks/second.
- Renders through Fabric's HudRenderCallback, so F1 (hide HUD) hides it like any vanilla overlay.
- Read-only - never changes the mount, never sends a packet. Safe on any server.
Controls
- H - toggle the HUD on / off (default: on)
Compatibility
Works on Minecraft 1.21.8, 1.21.9, 1.21.10, and 1.21.11 with Fabric Loader 0.16+. One JAR for all four versions - install with Fabric API and drop into your mods/ folder. Pure client-side; safe to install on any server. Zero config files.
评论 0
登录后参与评分
还没有评论,来抢沙发吧