跳到正文

FallPredict

作者:kvapilvaclav0

A tiny HUD that predicts the fall damage of the drop directly below your feet, before you step off.

收藏

截图

介绍

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

FallPredict answers one question every time you’re standing on a ledge: “Would I die if I jumped from here?” — without making you count blocks or do mental math.

What it does

  • Every client tick it casts a ray straight down from your feet to the first solid block or fluid surface below.
  • It converts that drop height into the exact vanilla fall damage you’d take and shows it in the top-left of your HUD: e.g. “Fall: 12b -> 4.5 hrt”.
  • The readout is color-coded: yellow = survivable, orange = half your health or more, red “LETHAL” = the fall would kill you at your current health.
  • Over a bottomless drop it reads “Fall: void -> LETHAL”.
  • The badge only appears when there’s an actual drop below you (more than the vanilla 3-block safe height), so it stays out of your way on flat ground.

Controls

  • J — toggle the readout on/off. An action-bar message confirms the state.

How it’s built

  • Uses a downward RaycastContext (collider + fluid surface) from the player’s feet — landing in water reads as a safe, low number.
  • Damage uses the real vanilla formula ceil(fallDistance - 3) in health points, so the prediction matches what the game would actually deal.
  • Lethality compares predicted damage against your live health, not max health.

Notes

  • Pure client-side — install on your client only. Works on any Fabric server, fully vanilla compatible.
  • Shows the base vanilla fall damage; it does not subtract Feather Falling, so treat it as a worst-case estimate for enchanted boots.
  • The badge respects F1 (hide HUD) and hides while a menu is open.
  • No config files, no dependencies beyond Fabric API.

Compatibility

Minecraft 1.21.8, 1.21.9, 1.21.10, 1.21.11 — Fabric Loader 0.16+. One JAR covers all four. Drop into your mods/ folder alongside Fabric API.

常见问题

FallPredict 支持哪些 Minecraft 版本?

FallPredict 支持 Minecraft Java 版 1.21.8–1.21.11,共 4 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

FallPredict 怎么安装?

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

评论

登录后评论和评分

kvapilvaclav0 的其他作品

查看全部 →