Skip to content Nodecraft
Support / Terraria / Configuring Your Terraria Server (serverconfig.txt)

Configuring Your Terraria Server (serverconfig.txt)

One of the primary methods of configuring a Terraria server is using a config file called serverconfig.txt. The Game Settings tab in Nodepanel here at Nodecraft will write directly to this file.

A view of the Game Settings tab in Nodepanel that configures a Terraria serverYou also can manually edit this file within the File Manager, if that is your preference.

A view of the location of the serverconfig.txt file in the File Manager of Nodepanel for a Terraria server

Configuring Your Server

The following is a list of the current setting the game allows as of the time of writing this article. You can always reference the Terraria Wiki for further information.

world=C:\Users\Defaults\My Documents\My Games\Terraria\Worlds\world1.wld - Loads a world and automatically starts the server.

autocreate=3 - Creates a new world if none is found.
World size is specified as:
1 (small)
2 (medium)
and 3 (large)

seed=AwesomeSeed - Sets the world seed when using autocreate.

worldname=World - Sets the name of the world when using autocreate.

difficulty=0 - Sets world difficulty when using -autocreate.
Options:
0 (normal)
1 (expert)
2 (master)
3 (journey).

maxplayers=8 - Sets the max number of players allowed on a server.
The value must be between 1 and 255.

port=7777 - Set the port number.

password=p@55w0rd* - Set the server password.

motd=Please don’t cut the purple trees! - Set the message of the day.

worldpath=C:\Users\Defaults\My Documents\My Games\Terraria\Worlds\ - Sets the folder where world files will be stored.

banlist=banlist.txt - The location of the banlist file.
Defaults to "banlist.txt" in the working directory.

secure=1 - Adds additional cheat protection.

language - Sets the server language from its language code.
Available codes:

  • en-US = English

  • de-DE = German

  • it-IT = Italian

  • fr-FR = French

  • es-ES = Spanish

  • ru-RU = Russian

  • zh-Hans = Chinese

  • pt-BR = Portuguese

  • pl-PL = Polish

upnp=1 - Automatically forward ports with uPNP.

npcstream=60 - Reduces enemy skipping but increases bandwidth usage. The lower the number, the less skipping will happen, but more data is sent.
0 is off.

priority=1 - Default system priority.
0: Realtime
1: High
2: Above Normal
3: Normal
4: Below Normal
5: Idle.

Journey Mode power permissions for every individual power.
0: Locked for everyone
1: Can only be changed by the host
2: Can be changed by everyone.

journeypermission_time_setfrozen=2

journeypermission_time_setdawn=2

journeypermission_time_setnoon=2

journeypermission_time_setdusk=2

journeypermission_time_setmidnight=2

journeypermission_godmode=2

journeypermission_wind_setstrength=2

journeypermission_rain_setstrength=2

journeypermission_time_setspeed=2

journeypermission_rain_setfrozen=2

journeypermission_wind_setfrozen=2

journeypermission_increaseplacementrange=2

journeypermission_setdifficulty=2

journeypermission_biomespread_setfrozen=2

journeypermission_setspawnrate=2

Disabling Settings

If you ever wish for the server to ignore a specific setting, you can add a comment character (this is an overall coding term) at the beginning of each line, and the server will ignore that line. For Terraria, it uses the number sign #.

Here’s a screenshot of an example file with a mixture of commented-out lines, and also some active. It’s pretty easy to tell which is which within the Nodepanel, as the commented-out lines are greyed out.

A view of the inside of a serverconfig.txt file for a Terraria server in Nodepanel

Terraria Icon
Create a Terraria Server today!
Start Free Trial

Chat blocked!

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