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.

OptionDefaultLocal too
ForegroundColor#FFFFFFFFyes
BackgroundColor#44000000yes
LineSpacing2yes
TextShadowtrueyes
Font, v3.3 for local useminecraft:defaultyes
Scale1.0no
TargetRange20no
Crosshair: normal, debug, and from v3.1 vanilla, nonenormalno

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

FlagEffect
-uc -lc -tc -sc -ndUpper, lower, title case, small caps, no dashes
-p2Decimals
-s0.001Multiply, or size for icons
-fFormat a statistic
-dvc -w -shIcon centering, width, shift
-rich -count -dur -cooldownItem 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.