Don’t Starve Together comes with a full mod system for servers. You do not have to upload the mods yourself – the server downloads them from the Steam Workshop on its own. Two files are responsible for this:
dedicated_server_mods_setup.luadefines which mods are downloaded.modoverrides.luadefines which mods are active in the world – per shard.
Find the Workshop ID
-
Open the mod in the Steam Workshop
Open the Steam Workshop for Don’t Starve Together and look up the mod you want. -
Read the ID from the address
The Workshop ID is the number at the end of the URL. Forhttps://steamcommunity.com/sharedfiles/filedetails/?id=350811795the ID is350811795.
Add mods for download
-
Stop the server
Stop your server via the dashboard. -
Connect via SFTP
Connect to your server via SFTP or use the file browser in the dashboard. -
Open the file
In the main directory of your server, open the following file:mods/dedicated_server_mods_setup.lua -
Enter the mods
Add one line per mod with its Workshop ID:ServerModSetup("350811795") ServerModSetup("2902364746") -
Add collections
If you want to load a complete Workshop collection, use this command with the ID of the collection instead:ServerModCollectionSetup("379114180") -
Save
Save the file.
Enable mods in the world
-
Open the cluster folder
Navigate to the folder that contains thecluster.inifile. That is your cluster folder. Inside you will find the shard foldersMaster(overworld) and, if the caves are enabled,Caves. -
Open modoverrides.lua
Open themodoverrides.luafile in theMasterfolder. If it does not exist yet, create it:<cluster folder>/Master/modoverrides.lua -
Enter the mods
Add each mod with its Workshop ID in the formatworkshop-<ID>:return { ["workshop-350811795"] = { enabled = true }, ["workshop-2902364746"] = { enabled = true }, } -
Set mod options
If a mod offers its own options, add them viaconfiguration_options. The valid names and values are listed in themodinfo.luafile of the mod in question:return { ["workshop-2902364746"] = { enabled = true, configuration_options = { mode = "Easy Cartography" }, }, } -
Cover the caves
If the caves are enabled on your server, copy the same file to<cluster folder>/Caves/modoverrides.luaas well. Every shard has its own mod list. -
Start the server
Start your server. On startup it downloads the listed mods and enables them, so the first start can take a little longer.
