Guide 1.3.1 (HUD Tooltips & Block Icons Update)
Curse Maven Snippet
What's new
๐ Version 1.3.1 — Feature-targeted release introducing a synchronized HUD projection engine for real-time item tracking and localized block tooltips.
๐ New Features:
• Ray-Traced Hologram Interaction Tracker — Deployed a precise vector-based intersection algorithm that projects a line-of-sight ray from the player's eye coordinates using the client's current block-reach distance. It accurately evaluates bounding-box intersections (
AABB.clip) with phantom blocks in the world projection, completely bypassing vanilla raytrace limitations inside air blocks.• Dynamic Crosshair HUD Overlays — Engineered an adaptive screen-space tooltip overlay positioned securely beneath the BossBar layer. When the raytracer detects a target block within the hologram boundary, the HUD dynamically displays its registered identity along with a localized prefix, eliminating the need to cross-reference ัะผะตัั in a separate GUI.
• Vector-Stabilized Axis Alignment — Resolved an inherent 2D/3D matrix desynchronization where flat-sprite blocks (torches, saplings, flowers) would render offset or overlap adjacent text elements. Implemented a dedicated positional correction pass (
getVisualFixY) that evaluates the underlying block hierarchy and dynamically shifts the Y-axis projection to ensure pixel-perfect center alignment with typography.• Asynchronous GUI Icon Rasterization — Integrated a lightweight item-rendering proxy into the HUD rendering thread. It extracts the matching
ItemStack definition directly from the hologram's cached BlockState and streams its high-definition 2D texture or 3D block model directly into the interface canvas immediately preceding the text layout.• Old-School Paragraph Color Parsing — Re-engineered text processing for modern Minecraft lifecycles (1.19+ up to 1.21.1) where standard translation components drop vanilla paragraph markers. It bypasses string-sanitization layers via raw resource localization, enabling proper hardware-level parsing of nested color codes (
§7, §e) directly out of the JSON language pack.
๐ ๏ธ Improvements & Fixes:
• Zero-Interference HUD Layering — Optimized the layout matrices within the GUI render event, shifting the current block info panel to a fixed offset (
barY + barH + 16). This prevents visual collision with the progress bars, completed-structure macros, or sub-hotbar screen widgets.• Isolated Translation Bundles — Added new schema nodes (
guide.projector.hud.current_block) across all supported language configuration packs, cleanly handling parameterized string injection (%s) for localized block titles without hardcoded values.This mod has no additional files