What each order does
| Codes | Result in Java Edition |
|---|---|
§6§lWelcome | Gold and bold |
§l§6Welcome | Gold, not bold: the colour cancelled the bold |
§cX§nY | Red X, then red underlined Y: formatting after a colour keeps the colour |
§nX§cY | Underlined X, then red Y without the underline |
Changing colour in the middle of a line
Every new colour drops the formatting, so repeat it after each colour change:
§6§lGold §b§lAqua §a§lGreen
To go back to plain text, use §r, which resets both colour and formatting.
Ampersand codes follow the same rule
Plugins that accept & codes normally translate them to § codes before the game draws the text, so &6&l works and &l&6 loses the bold, just like above.
Bedrock Edition is different
- Formatting codes stay active after a colour code, so the order doesn’t matter there.
- Bedrock has no strikethrough or underline.
§mand§nare extra colours instead, so a Java MOTD or sign text that uses them looks different on Bedrock.
The Color Codes tool previews Java Edition’s behaviour as you type.