Help

How it works and its limits

A server plugin cannot draw on the player's screen. mcHUD uses two things the vanilla client already supports.

  1. Re-skinned vanilla sprites in the resource pack: perfect and instant, but static. This is how hearts, hunger, armor, air, the hotbar, XP bar and boss bars get a new look, or are hidden.
  2. A custom font. The pack contains your widget images as characters of a font. mcHUD sends them through the action bar and a boss bar name line, with invisible spacing characters that place each one. Bars are pre-cut into a number of fill steps (steps), text widgets use copies of the vanilla font.

Limits#

  • Hidden text: the experience level number, the held-item name popup, item counts and durability bars are text or item decorations. A resource pack cannot hide them (that needs a core shader, which mcHUD does not ship).
  • Screen size: left and right anchored widgets use the player's screen preset (see Player settings). Center, top-center and bottom-center anchors are exact on every screen.
  • Vertical position is baked in. Moving a widget up or down needs a publish. Widgets in the middle of the screen, or text far above the hotbar, use screen.reference-height (the editor marks them with a !).
  • Text can only sit just above the hotbar or hang from the top. The font format cannot raise text above the action bar line, so text more than about 63 units above the bottom edge is placed from the top using the reference height.
  • Refresh rate: widgets are rebuilt every refresh-ticks ticks (default 4) and sent only when changed. Vanilla elements are instant; glyph widgets can lag by that interval.
  • Other plugins: the client shows one action bar and one boss bar name per slot. Another plugin sending action bars covers the bottom widgets until the next refresh, and other plugins' boss bars of the hidden color become invisible. Use pause in the API or change bossbar.hidden-color.
  • Not clickable. Nothing on the HUD reacts to the mouse.
  • F1 hides the whole HUD, including mcHUD.
  • No NMS and no reflection are used.

The full version of this list is in docs/FEASIBILITY.md in the project.