servers.dat format
Jump to navigation
Jump to search
This feature is exclusive to Java Edition.
The servers.dat is used to store information regarding the multiplayer servers that the player has added to their server list. It does not store the direct connect IP address (see options.txt), nor 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 through the use of formatting codes.
The file is located in the root of the directory specified in the launcher profile. By default, this would be .minecraft\servers.dat.
NBT Structure[edit | edit source]
- The root tag.
- servers: List of compound tags, one for each saved server.
- Information about the server.
- icon: Base64-encoded PNG data of the server icon.
- ip: The IP address of the server.
- name: The name of the server as defined by the player.
- acceptTextures: 1 or 0 (true/false) - 0 if the player has selected Never when prompted to install a server resource pack.
- Information about the server.
- servers: List of compound tags, one for each saved server.
History[edit | edit source]
Java Edition Beta | |||||||
---|---|---|---|---|---|---|---|
1.8 | Pre-release | Added server.dat, include tag ip and name , for saving server address and its name. | |||||
Java Edition | |||||||
1.4.2 | 12w42a | Added hideAddress tag, for the client shows the address or not in the server list. | |||||
1.7.2 | 13w41a | Added icon tag, for saving server icon cache. | |||||
1.7.6 | pre1 | Added acceptTextures tag, for the client to select a default action to a server resource pack.
| |||||
Removed hideAddress tag. | |||||||
1.8 | 14w17a | Added acceptTextures tag, for the client to select a default action to a server resource pack.
| |||||
Removed hideAddress tag. |