Builtin Servers Mod (1.20.1, 1.19.2) is a small mod that lets modpack makers set up built-in servers instead of shipping a preconfigured server.dat file.
If you want to add default servers that will show up in the server list when players download your modpack, just run the mod once and edit the config file generated at .minecraft/config/builtinservers.json.
After that, ship your config file with your modpack, and all new instances will have your servers, but old instances will not lose their custom servers when your modpack updates.
Here is what the default config file should look like:
Builtin servers will show a custom badge on the client so that players can see which servers have been added by the modpack (this can be disabled):
Forced servers cannot be deleted and will always be re-added unless the config file changes. They cannot be edited/removed and will show a custom message:
How to install:
How To Download & Install Mods with Minecraft Forge
How To Download & Install Fabric Mods
Don’t miss out today’s latest Minecraft Mods