Formatting codes apply color and modifications to the in-game text. It is possible to format text in Minecraft with the section sign (§). The section symbol can be entered into signs, world titles, books, named items, and in the chat in Bedrock Edition. External programs can be used to insert it in other locations. A § symbol followed by a hex digit in the message tells the client to switch colors while displaying text.
Color is the internal name for the color in Minecraft.
Chat Code is the internal code for the chat color in Minecraft.
MOTD Code is the internal code for the "Message Of The Day" color in Minecraft.
Decimal is the decimal value for the color.
Hexadecimal is the hexadecimal value for the color.
Reset the default color
Description is the name of the format.
Chat Code is the internal code for this format in chat.
MOTD Code is the internal code for this format in the "Message Of The Day".
Use of color codes
The § symbol can be used for any text input in Bedrock Version, while it can be used in server.properties, pack.mcmeta, world titles, and server names in Java Edition. In Java Edition, the formatting code is disabled after the color code point if a color code is used after a formatting code. For example, §cX§nY displays as XY, whereas §nX§cY displays as XY. Therefore, when using a color code in parallel with a formatting code, first make sure the color code is used and, when swapping colors, reuse the formatting code.
Hold down the ALT key on your keyboard. Make sure Num Lock is on. Using only the number pad, type 2, then 1 (21). Release ALT and it should type a §.
On Mac, it looks like if you hold Option and type 6, it will type the § sign (Option and 5 for extended U.S. keyboards).
In order to get a MOTD colored or formatted, u00A7 must be used instead of §; for example, §5 would be u00A75. Colors can be used in conjunction with formatting. The formatting must be done after the color. Given that pack.mcmeta files accept raw JSON text as descriptions, the usage of § can be replaced by text components with different colors and styles though using § still works.
Formatting codes can be used to color names and descriptions in language files by using § then any of the numbers/letters displayed above. This is also used in end.txt and credits.txt. With the use of external tools, such as NBTExplorer, world names can have custom colors and formatting codes. To modify the name, choose the LevelName tag in the world's level.dat. Additionally, the player can rename the world's folder to contain one of the codes. In the world selection menu, the specified color or effect appears.
The color codes almost exactly match, in order, the 16 colors available using a Color Graphics Adapter (CGA), as released in 1981.
How do you type in color codes in Minecraft?
Hold down the ALT key on your keyboard. Make sure Num Lock is on. Using only the number pad, type 2, then 1 (21). Release ALT and it should type a §. Follow it by the number of colors from the 16 in the list above.
How do you get colored names in Minecraft?
When embossing a name tag in the anvil preceded the name by the color codes to get the name to feature the color of your liking.