Minecraft Color Codes Overview
Last modified on Dec 13, 2021 in general
Minecraft Color Codes
When playing Minecraft you may see a lot of different painted, bold, or strike through texts in your either your mod or Apex server. If you want to know how the color codes work and how to change text with color codes then this guide may help you. Mojang, the company that published Minecraft in 2011 has created a code system for the game. All of the text in Minecraft can be formatted by using the unique section sign § map editor. If you want to paint or edit text in Minecraft then you will need to enter the section sign § codes and know which ones to enter. If you have a server, you need to know that all of the text from your server can be painted in every color with the various Minecraft color codes, and every unique section sign is followed by a hex code. A section sign followed by a hex digit in the message commands the client to switch colors while displaying text, your client will follow the codes and change the colors in game while displaying text.
It’s important to note, that the unique section sign codes can only be entered into book and quills, which are items used to turn books into written books in Minecraft that players can read or trade with villagers. Text can be formatted by using the § section sign followed by a character. In any other case, an external program will have to be used. Some of the Bukkit plugins allow you to use the section sign § to format other text. The § can be used in both the Minecraft server text box and the server.properties file. To enter the “§” sign on Windows, with a US or UK English keyboard just hold alt then press 2 and 1 on the number pad, it will not work if you use the keys on the other row of numbers. On a Mac US keyboard press Option and 6 or for the US Extended press Option and 5. On Linux with the compose key activated, type compose, s, o. The other alternative you can use is to copy and paste the unique section sign from this page and press ctrl and v to paste the character into a book. However, copying and pasting the section sign will not work on tthe Command Block GUI or Minecraft chat bar.
If you use a formatting code before a color code is used, then the formatting code will be disabled beyond the color code point. An example would be §cX§nY displaying as XY, whereas §nX§cY will be displayed as XY. So when you use a color code in tandem with a formatting code, make sure that you insert the color code first and reuse the formatting code whenever you are changing colors. §r may be used to reset all of the texts formats that is beyond it, for example, §nXXX§rYYY displays as XXXYYY. Keep in mind that the random characters that are placed after §k will always be the exact same width as the original characters, with the exception that you use [ and ] in 1.4.5 – 1.52. For example, any random character that gets cycled through where the letter “m” would be wide characters, and any other random characters in the spot “I” would be narrow characters.
Formatting codes can also be used in the motd line in a server.properties file, however, the unique section signs have to be escaped as u00A7. When a section sign is entered directly, the server will replace it with u00C2 u00A7 (Â§); clients will present the u00C2 character as a question mark. If the u00C2 character in the MOTD comes with a bunch of question marks then you should delete it, this only will happen if you are in the Minecraft version 1.2.5 or lower or something is not compatible. Besides these colors, in Minecraft version 1.7 and above you have the ability to add an extra line to your MOTD by using n.
Additionally, formatting codes can be used to color items, achievement names, block names, and descriptions by using ¬ß and a code such as 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b, c, d, e, or f. An example of this is ¬ßaHello¬ßr would make the name appear as Hello. With the use of NBTExplorer, and other external tools, world names can also have custom formatting and color codes. To modify world names, just choose the LevelName tag in the world’s level.dat.