Using it

Pack hosting

pack.mode decides how players get the packs.

ModeWhat happens
hostmcHUD hosts <theme>.zip on pack.host.port (default 8165). Needs that TCP port open.
urlYou host the files. After each publish upload plugins/mcHUD/packs/<theme>.zip to the address in pack.url ({theme} is replaced). The uploaded file must be byte-identical or clients reject it.
nonemcHUD sends nothing. Merge plugins/mcHUD/packs/<theme>.zip into the pack you already send. The HUD then draws for everyone with the theme you merged.

Built-in host addresses#

Players who join by IP address download from that same IP. For players who join by domain name, through a proxy (BungeeCord, Velocity), or from another network, set pack.host.public-address, for example play.example.com or https://cdn.example.com. With auto or empty, mcHUD uses server-ip from server.properties, or asks an outside service for the server's public IP once.

Each theme is a separate pack. When a player changes theme, mcHUD removes the old pack and sends the new one, and the game reloads resources for a moment. Players who decline the pack keep the vanilla HUD (set pack.required: true to kick them instead).

Pack format#

The generated pack.mcmeta declares pack format 46 with supported formats 46 to 999, the same file for 1.21.4 up to 26.1.x (formats 46, 75 and 84 were checked). No version overlays are needed for the shipped themes. You can add your own with overlays/MIN-MAX/ folders in a theme.