Servers.dat format

The servers.dat (file located in the .minecraft folder) is used to store the list of saved multiplayer servers. It does not store the direct connect IP address or any LAN server information. It is stored as an uncompressed NBT file. It is possible to add color codes by editing the server name attribute with an NBT Editor, using the section sign ( § ).

NBT Structure

 * The root tag.
 * : List of compound tags, one for each saved server.
 * A saved server.
 * : The name of the server as defined by the player.
 * : Icon data, contains the icon file in a Base64 encoded binary file.
 * : The IP address of the server.
 * : 1 or 0 (true/false) - true if the IP address should be hidden.
 * : 1 or 0 (true/false) - false if the user has selected "Never" when prompted to install a custom server resource pack.