Builtin Servers

This compact mod provides modpack creators with a convenient way to integrate servers directly into their builds, eliminating the need to include pre-configured server.dat files.
Setting Up the Mod for Your Modpack
To add default servers that will automatically appear in the server list for players after installing your modpack, simply run the mod once and edit the generated configuration file located at .minecraft/config/builtinservers.json.
After configuration, just include this configuration file with your modpack. All new installations will receive your servers, while existing instances won't lose their custom servers when the pack updates.
Here's what the standard configuration file looks like:

Servers added through the mod display with a special badge in the client, allowing players to easily identify which servers were included in the modpack (this feature can be disabled):

Forced servers cannot be deleted—they will always be automatically restored until the configuration file changes. These servers cannot be edited or removed from the list and are accompanied by a special message:

Additional Information
To report bugs, visit the mod's GitHub repository: https://github.com/lucaargolo/builtin-servers