header
logo

Desired Servers

Install
screenshot imagescreenshot image
  • screenshot thumbnail
  • screenshot thumbnail

Description

 

 

Get 25% off 1st months rent at Bisect Hosting using code Kreezxil

If you want a server setup for nearly any mod pack with zero effort, get a server with BisectHosting and receive 25% off your first month as a new customer using the code kreezxil

 

 

From a page that is GPLv3 licensed that sounds very familiar to this.

 

Fabric versions require Fabric API.

 


Desired Servers

 

This is a mod that removes the need to ship a servers.dat file that overwrites player-added servers.

Stop shipping that file and add Desired Servers! You can add multiple servers with a simple json format.

 

On first run, the mod will generate a desiredservers.json with the following content if one isn't present:

[
  {
    "serverName": "Desired Server",
    "serverIP": "127.0.0.1",
"forceResourcePack":"true" }, { "serverName": "Another Desired Server!", "serverIP": "192.168.1.1",
"forceResourcePack":"false" } ]

 Adding a server is as simple as adding another json block with the details.

 

The server is added to the server list on load, if it is already there it will be ignored.

 

Server list JSON

 

Using forceResourcePack

 set it to true if the server has a resource pack that the player must have no matter what to connect. when the value is true, they will be forced to receive the servers forced resource pack.

 

if the server does not have a resource that must be installed as in that it does not have one to force on the user, set this to false. Or in the case it's not required to have the resource pack to connect.

 

Servers in the multiplayer screen

 

The TidBit

The Featured Servers/ folder now lives in the config folder.

 

Neat Feature

You can colorize your server entries using /u (universal) and semoleans.

We tested putting §6 inside the servername in the desiredservers.json

 

Same works on fabric

CMS COMPATIBILITY

The only thing cms does is allow you to do color codes using % instead of §

So there's no reason to even add CMS support

 

The What and How

Forge didn't like how the mod was laid out and wanted it to be more like the default example. So I added in some stuff for that. Also the mod was catching way too much stuff with reporting, so I unwrapped that added try/catch clauses where it was absolutely necessary.

 

Other Info

* Same license as the original GPLv3 at https://www.curseforge.com/minecraft/mc-mods/featured-servers

* ported to 1.16.1

* source now available

* client only