v3 guide
For Minecraft 1.19.2 to 1.20.6. Newer than that? Read the current docs.
Files
Profiles live in .minecraft/config/custom-hud/. There are three slots, profile1.txt to profile3.txt. With Mod Menu you can open them from CustomHud's settings button. Saving updates the HUD right away.
Text and variables
Text shows as written. Variables go in braces.
Colors
Use &0 to &f. Put bold or italic after the color. Hex colors are &{RRGGBB}, &{AARRGGBB}, &{RGB} or &{ARGB}. From v3.1 you can write names such as &{gold}.
Sections
Options are corner, x, y, hideOnChat, width. v3.0 has the four corners. v3.1 added TopCenter, CenterLeft, CenterCenter, CenterRight and BottomCenter.
Theming
==Name:value== above the first section covers the whole profile. =Name:value= changes it from that line.
| Option | Default | Local too |
|---|---|---|
| ForegroundColor | #FFFFFFFF | yes |
| BackgroundColor | #44000000 | yes |
| LineSpacing | 2 | yes |
| TextShadow | true | yes |
| Font, v3.3 for local use | minecraft:default | yes |
| Scale | 1.0 | no |
| TargetRange | 20 | no |
| Crosshair: normal, debug, and from v3.1 vanilla, none | normal | no |
Conditionals
Inline, or as blocks. No braces around variables inside the condition.
Operators are | & < > <= >= = != with ( ) for grouping. Nest one level by switching to '. There is no math.
Flags
| Flag | Effect |
|---|---|
| -uc -lc -tc -sc -nd | Upper, lower, title case, small caps, no dashes |
| -p2 | Decimals |
| -s0.001 | Multiply, or size for icons |
| -f | Format a statistic |
| -dvc -w -sh | Icon centering, width, shift |
| -rich -count -dur -cooldown | Item slot icon extras |
Items and icons
Slots are the same as today: mainhand, offhand, head, chest, legs, feet, h0 to h8, i0 to i26.
Other icons: {icon:diamond_pickaxe}, {icon:texture_path,u,v,w,h} and {gizmo}.
Time and stats
{real_time:HH:mm} and {stat:...} work as described on real time and statistics.
Variables
Names from the v3 list. Descriptions are ours, and a few values behaved differently back then, for example tps and tick times only worked in singleplayer. The Sodium and Iris entries were removed in later v3 releases.