Compatibility
Minecraft: Java Edition
1.21.8–1.21.11
Platforms
Supported environments
Client-side
Tags
Creators
Details
Licensed MIT
Published 6 days ago
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.crosshairTargetevery 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.


