Color Codes & Formatting
MasuHolograms supports multiple color systems. Colors are processed in a specific order, and all systems can be combined in a single line.
Legacy Color Codes
Use & followed by a code character. These work exactly like Bukkit/Spigot color codes.
Colors
| Code | Color | Code | Color |
|---|---|---|---|
&0 |
Black | &8 |
Dark Gray |
&1 |
Dark Blue | &9 |
Blue |
&2 |
Dark Green | &a |
Green |
&3 |
Dark Aqua | &b |
Aqua |
&4 |
Dark Red | &c |
Red |
&5 |
Dark Purple | &d |
Light Purple |
&6 |
Gold | &e |
Yellow |
&7 |
Gray | &f |
White |
Formatting
| Code | Effect |
|---|---|
&k |
Obfuscated (random characters) |
&l |
Bold |
&m |
~~Strikethrough~~ |
&n |
Underline |
&o |
Italic |
&r |
Reset all formatting |
Examples
/mh line set myHolo 1 1 &cRed text
/mh line set myHolo 1 1 &6&lBold Gold
/mh line set myHolo 1 1 &aGreen &7- &cRed &7- &9Blue
/mh line set myHolo 1 1 &k&4!!!&r &6&lWARNING &k&4!!!
Hex Colors
Use &# followed by a 6-digit hex color code for any RGB color.
Examples
/mh line set myHolo 1 1 &#FF5533Orange Text
/mh line set myHolo 1 1 �CCFFCyan Text
/mh line set myHolo 1 1 &#FFD700Gold Text
Common Hex Colors
| Hex Code | Color |
|---|---|
&#FF0000 |
Pure Red |
�FF00 |
Pure Green |
�FF |
Pure Blue |
&#FFFF00 |
Yellow |
&#FF00FF |
Magenta |
�FFFF |
Cyan |
&#FFFFFF |
White |
� |
Black |
&#FFD700 |
Gold |
&#FF6B6B |
Soft Red |
ECDC4 |
Teal |
&#A855F7 |
Purple |
Gradients
Create smooth color transitions across text using the gradient syntax.
Each character in the text gets a color interpolated between the start and end colors.
Examples
This creates text that fades from red to blue. Gold to orange gradient. Light green to dark green.Info
Gradients are calculated per-character, so longer text produces smoother gradients. Very short text (2-3 characters) will have abrupt color changes.
Rainbow
Apply a full HSB rainbow across the text.
Example
Each character cycles through the rainbow spectrum based on its position.
Custom Text Replacements
MasuHolograms includes special character shortcuts for decorative text. These are defined in config.json under customReplacements and can be customized.
Default Replacements
| Shortcut | Character | Description |
|---|---|---|
[x] or [X] |
█ |
Full block |
[/] |
▀ |
Upper half block |
[,] |
░ |
Light shade |
[,,] |
▒ |
Medium shade |
[,,,] |
▓ |
Dark shade |
[p] or [P] |
• |
Bullet point |
[|] |
⎮ |
Vertical bar |
Examples
/mh line set myHolo 1 1 &8[,,,][,,][,] &fServer Info &8[,][,,][,,,]
/mh line set myHolo 1 1 &6[p] &fFirst item
/mh line set myHolo 1 1 &6[p] &fSecond item
/mh line set myHolo 1 1 &c[x][x][x][x][x] &fHealth Bar
Adding Custom Replacements
Edit config.json to add your own:
{
"customReplacements": {
"[x]": "\u2588",
"[star]": "\u2605",
"[heart]": "\u2764",
"[arrow]": "\u279C"
}
}
Then /mh reload to apply.
Processing Order
Colors are processed in this order:
- Custom replacements —
[x],[p], etc. - Gradients —
<GRADIENT:hex>...</GRADIENT:hex> - Rainbow —
<RAINBOW>...</RAINBOW> - Hex colors —
&#RRGGBB - Legacy codes —
&0-9a-fk-or
This means gradients and rainbow override legacy codes within their range, and hex colors take precedence over legacy codes.
Combining Color Systems
You can mix different color systems in a single line:
/mh line set myHolo 1 1 &6[p] <GRADIENT:FF0000>Important text</GRADIENT:FFFF00> &7- �CCFFMore info
This creates: - Gold bullet point - Red-to-yellow gradient text - Gray dash - Cyan hex-colored text