mcHUD
A custom HUD for Paper servers: four themes with custom screens, a dozen widget types, per-player settings and a built-in drag and drop web editor, drawn by a resource pack the plugin generates.
Quick start
- Put
mcHUD-1.0.0.jarinplugins/and start the server. The config,lang.ymland four themes are created inplugins/mcHUD/. - Open TCP port
8165to your players (the built-in pack host), then join and accept the resource pack. - Type
/hud settingsto pick a theme, hide widgets or set your screen size. - The web editor is on by default: type
/hud editorfor a one-time link (setweb.enabled: falseto turn it off). - Drag widgets, press Save, try Preview on me, then Publish so players get the new pack.
Getting started
Install it and get running.
Overview
mcHUD gives a server its own HUD: health and hunger bars, armor and air icons, a hotbar and XP bar skin, a compass,...
Installation and requirements
There is no database. Players' choices are saved in players.yml . The packs are built when the server starts and when you...
First steps
Everything players see comes from the published state. Edits you make later are drafts until you run /hud publish (or press...
Using it
How every feature works.
Themes
Each theme lives in plugins/mcHUD/themes/<id>/ .
Custom screens and the pause menu
A theme can replace the game's own screens with your artwork, with no client mods. Your picture is scaled to each screen and...
Widgets
A layout is a list of widgets in layout.yml . Edit it by hand or with the editor.
Widget settings
Settings every widget has, then the settings of each type.
Tokens and conditions
Text, value and max accept tokens in braces and any PlaceholderAPI %placeholder% . visible.when takes comparisons joined by and :
Player settings and screen size
/hud settings opens a menu with the HUD on/off switch, the themes the player may use, the widgets they may hide or show, and...
Layout rules
Rules pick a layout (an extra file layouts/NAME.yml in the theme, or default ) or a theme for a player. The first matching...
The web editor
The editor is on by default ( web.enabled: true ; after changing it, /hud reload starts or stops it). Run /hud editor in game...
Securing the editor (HTTPS)
The editor serves plain HTTP. Sessions use an HttpOnly cookie with SameSite=Strict, changing requests need a custom header and...
Pack hosting
pack.mode decides how players get the packs.
Values and placeholders
Use tokens in widget texts, value , max and conditions.
Reference
Commands, permissions and settings.
Built-in tokens
Written in braces, for example {health} .
PlaceholderAPI placeholders
mcHUD provides these when PlaceholderAPI is installed. Any PlaceholderAPI placeholder also works inside widget texts.
Commands
The command is /hud (alias /mchud ).
Permissions
7 entries
config.yml
Apply changes with /hud reload . Pack and web ports need a restart.
API and events
Add softdepend: [mcHUD] to your plugin.yml. Call the API from the main thread.
Help
Fixes, answers and updating.
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.
Performance
Main thread: per player, mcHUD builds a few text components every refresh-ticks ticks and sends a packet only when the result...
Troubleshooting
Another plugin is sending action bars. Pause mcHUD for those moments ( pause in the API) or stop the other plugin's action bar.
FAQ
No. Only the resource pack, which the server sends.
Support
Need help? Join the Discord: https://discord.gg/V9J6fAKebg .
Stuck on mcHUD?
Ask in our Discord. We answer questions, take bug reports and hear your ideas.