跳到正文

CrosshairDist

作者:kvapilvaclav0

Shows a live decimal distance readout under your crosshair for whatever block or mob you aim at (e.g. "Block 4.50m"). Great for builders and archers. Toggle with J.

收藏

截图

介绍

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

CrosshairDist answers a question the vanilla game never quite does: how far away is the thing I’m pointing at? While you aim at a block or entity within reach, a small line under your crosshair shows the kind (“Block” or “Entity”) plus the exact distance from your eyes, to two decimal places.

What it shows

  • Block 4.50m — when the crosshair hits a block face. Green text.
  • Entity 3.56m — when the crosshair hits a mob, animal, or other player. Orange text.
  • Nothing when you’re aiming at empty space — no clutter when there’s nothing to measure.

The distance is the straight-line distance from your eye position to the exact ray-hit point, so leaning closer or backing off updates the readout smoothly.

What it’s good for

  • Builders — pillar height, gap width, bridge spans, redstone alignment ranges.
  • Archers — judge arrow drop at exact ranges instead of guessing.
  • Map makers — pick precise camera angles and document scenes.

How it works

  • Reads MinecraftClient.crosshairTarget every frame and computes the distance from your eyes to the hit point.
  • Drawn via Fabric’s HudRenderCallback — respects F1 (hide HUD), pause menus, and inventory screens automatically.
  • No mixins, no server traffic. Fully client-side.

Controls

  • J — toggle the readout on / off (default: on)

Compatibility

Works on Minecraft 1.21.8, 1.21.9, 1.21.10, and 1.21.11 (Fabric Loader 0.16+). One JAR for all four versions — install alongside Fabric API and drop into your mods/ folder. Pure client-side; works on any server, zero config.

常见问题

CrosshairDist 支持哪些 Minecraft 版本?

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

CrosshairDist 怎么安装?

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

评论

登录后评论和评分

kvapilvaclav0 的其他作品

查看全部 →