Skip to content Nodecraft
Support / Don't Starve Together / Adding Mods to Your Don't Starve Together Server

Adding Mods to Your Don't Starve Together Server

Adding mods to your Don't Starve Together server is very easy, as the game already has a system that will allow you to automatically download and install mods directly from the Steam Workshop. This article will show where it is located and how to use it.

Download the Mods to Your Server

Go to the "File Manager" tab on the left hand side of your NodePanel and click on the mods folder to open it. Once you have opened the mods folder, look for the file dedicated_server_mods_setup.lua. This is the file that controls the automated system for downloading mods automatically. Select the file and then click "Edit" to open a text editor.

Editing the dedicated_server_mods_setup.lua file for a Don't Starve Together server in NodePanel

Once you have that file open, there are instructions inside of it for how to add the mods.

The initial view of the dedicated_server_mods_setup.lua file contents for Don't Starve Together

The system will support downloading individual mods or even entire Steam Workshop collections.

The characters -- in the setup file are comment characters, that tell the file to ignore anything after them, so don't begin the mod setup lines with those or they will not take effect.

You have two options of how to add mods from the Steam Workshop to your server, you can add either mods individually, or by adding the mods to a collection and having the server download the whole collection.

Adding Individual Mods

To use a single mod, add the line:

ServerModSetup("ID number")

Where ID number is replaced with the Steam Workshop ID number. Make sure to keep the quotation marks (" ").

Adding an individual mod to the dedicated_server_mods_setup.lua file for Don't Starve Together

To easily find the Steam Workshop ID number for a specific mod, start your Steam client and go to the Steam Workshop for Don't Starve Together. Once in the workshop, click on a mod and it will take you to a website for that mod. In the URL at the top of the Steam window, the ID number will be near the very end, immediately after id=. See the example below.

Workshop ID number location for a Don't Starve Together mod

If you need to add additional mods, just add another ServerModSetup("< ID number >") line under it, and keep repeating until you have added all the mods you want downloaded.

Adding Workshop Collections

It is possible to add an entire workshop collection, use the line:

ServerModCollectionSetup("Workshop Collection ID")

Below is an example of both lines added to the file:

Adding a workshop collection to the dedicated_server_mods_setup.lua file

It is generally more popular to add mods individually rather than through a collection, to more easily add/remove mods and to organize them in the file. The workshop collection was removed before continuing, so the rest of the process would be simpler.

Enabling the Mods

Create the modoverrides.lua file

In the File Manager of your NodePanel, navigate to the /.klei/DoNotStarveTogether/MyDediServer/Master location, and click on the Create File button. Name it modoverrides.lua, and then feel free to copy paste the text below into the file.

This example file allows for 4 mods, but feel free to add additional lines for more mods. Make sure to leave the return { portion at the beginning, and the double } } at the end. Those signify the beginning and the end of the file.

Replace the #### portions with the workshop mod id numbers. See the examples below for how this file should look as well.

Creating a file to enable mods for Don't Starve Together in NodePanel

return {
    configuration_options={  },
    configuration_options={  },
    configuration_options={  },
    configuration_options={  },

Example image of the contents of a modoverrides.lua file

If you have Overworld and Caves split apart, the process will be similar. The only difference being, create the modoverrides.lua file in the /.klei/DoNotStarveTogether/MyDediServer/Caves folder in your file manager.

Start Your Server

Start your server up and begin playing on it with all of your mods! If you're curious as to where your mods are located on your server, you can find them in your /mods and /ugc_mods folders on your server. Depending on when the mods were created/updated/formatted, they will end up in either location on your server.

Mod locations for Don't Starve Together in NodePanel

Configuring Your Mods

Sometimes it's not enough to just enable your mods, but you want to configure how they behave as well. The best way to accomplish this is to have your game client create the file, as there's a lot of configuration that can go on to configure your mods.

Creating the Files to Upload to Your Server

Within the game client on your PC select "Host Game".

The Don't Starve Together in-game main menu

Enable the "Server Mods" you wish to use on your server, these will be Steam Workshop addons you've subscribed to.

Enabling the Server Mods for a Don't Starve Together server in their in-game GUI

Take the time to configure each mod how you wish, all of your changes will be included in the files we will be uploading to your server.

Don't Starve Together's in-game GUI to configure Server Mods

Once everything is how you wish, select the "Generate World" button in the lower right.

Upload the Mod Config Files

Once the world has finished being created, exit to the Main Menu and select "Host Game" once again. Click on the folder icon, it will take you to the files we will be needing. The location on a Windows PC is usually Documents\Klei\DoNotStarveTogether\(randomly generated number)\Cluster_1\.

Don't Starve Together's in-game GUI to take you to the files on your PC

Select the Master folder, and you find a file called modoverrides.lua. Upload this file to your /.klei/DoNotStarveTogether/MyDediServer/Master folder in the File Manager of your NodePanel. You can drag and drop the file directly into your server, or you can also use FTP. This file is very important, as it will enable the mods we will be uploading to the server in the next step. It also includes all of your changes you made to customize the mods.

A view of the files for the server you just made for Don't Starve Together on your PC

The location of the modoverrides.lua file on your PC

Repeat the process for Caves if applicable. You will select the Caves folder on your PC and upload that particular modoverrides.lua file to /.klei/DoNotStarveTogether/MyDediServer/Caves on your Nodecraft server.

Here's what the contents of the file can look like in comparison when you have various settings within each mod configured:

The modoverrides.lua file for a Don't Starve Together server with setting configurations in NodePanel

MUCH easier to let the game get you the correct syntax than trying to type it out yourself. If you have any questions or issues at all, please reach out to us in Support!

Don't Starve Together Icon
Create a Don't Starve Together Server today!
Start Free Trial

Chat blocked!

Nodecraft is an ad-free website! Disable adblock if you have any questions.