Repository navigation
For Developers
Naylek edited this page Nov 30, 2026
·
1 revision
Installation, title screens, announcements: see the README.
Declare them on the client, while your mod is constructed, so that they exist when the files are read.
HudVariables.number(ResourceLocation.fromNamespaceAndPath("mymod", "mana"), c -> mana(c.player()), 12);
HudVariables.text(ResourceLocation.fromNamespaceAndPath("mymod", "class"), c -> className(c.player()), "Mage");The last argument is the sample value shown in the editor. Packs then write {mymod:mana} in a text, or
{ "var": "mymod:mana", "below": 5 } in a condition.
A variable that throws disables the elements using it until the next F3+T, with one message in the log.
Put them in assets/<modid>/proscenium/hud/<name>.json, format in Custom HUD. They appear in the editor
under your mod, and a resource pack can replace them.
For anything the JSON format cannot draw: see HUD editor.