Change Terraria Server Difficulty: Full Guide
Changing the difficulty on a Terraria server lets you adjust how challenging the game feels for everyone connected. You can switch between Classic, Expert, and Master modes, which affect enemy stats, boss behavior, and loot drops. This guide covers both the easy in-game method and the more reliable config file approach, so you can pick what works best for your setup.
What You’ll Need
- Access to the server’s control panel or file system (e.g., FTP, hosting dashboard, or local folder).
- The server must be stopped before editing the config file.
- If using the in-game command, you’ll need server console access (not just in-game chat).
Step-by-Step
Method 1: Using the Server Config File (Recommended)
- Stop the server. Ensure no players are connected and the server process is fully shut down.
- Locate the config file. It’s usually named
serverconfig.txtand sits in the same folder as the server executable (e.g.,terraria-server.exeon Windows, or the directory where you runterraria-serveron Linux). - Open the file with a plain text editor like Notepad, VS Code, or nano.
- Find the line that says
difficulty=. If it doesn’t exist, add it at the end of the file. - Set the value:
difficulty=0for Classic (normal).difficulty=1for Expert.difficulty=2for Master.difficulty=3for Journey (only if you’re running a Journey world).
- Save the file and close the editor.
- Restart the server. The new difficulty will apply when the world loads.
Method 2: Using the Server Console Command
- Start the server and wait for it to fully load the world.
- Open the server console (the terminal window where the server is running).
- Type
difficultyand press Enter. The server will display the current difficulty and prompt you to enter a new one. - Enter the number for the desired difficulty (0 for Classic, 1 for Expert, 2 for Master, 3 for Journey).
- Press Enter. The server will apply the change immediately. Note that this only affects the current session; it won’t persist after a restart unless you also update the config file.
Important Note for Existing Worlds
- If you’re changing difficulty on an existing world, the game will warn you that some features (like Expert-exclusive items) may not work retroactively.
- For a fresh experience, consider creating a new world with the desired difficulty via the server’s
--worldparameter or by using thenewcommand in the console.
Common Mistakes
- Editing the config while the server is running. Changes won’t take effect until restart, and the server may overwrite your edits on shutdown.
- Using the wrong value. Some guides mix up the numbers (e.g., thinking 1 = Classic). Double-check: 0=Classic, 1=Expert, 2=Master.
- Changing difficulty on a Journey world incorrectly. Journey mode has its own difficulty slider in-game; using the server command may not work as expected.
- Forgetting to save the config file before restarting.
- Not backing up the world. Changing difficulty can affect world data; it’s wise to back up your world files first.
Tips
- Use Master mode for the hardest challenge and exclusive drops like the Relics.
- If you want a middle ground, Expert mode is the most popular for experienced players—it adds new AI patterns and better loot.
- For a more relaxed experience, Classic is fine, but you can also enable
--autocreateto generate a new world with the difficulty preset. - Always test the difficulty change with a single player before inviting others, to avoid surprises.
- If you’re using a hosting panel (like Pterodactyl or Multicraft), look for a “Difficulty” dropdown in the server settings—it edits the config for you.
Troubleshooting
- Difficulty doesn’t change after editing config. Check that the file is named exactly
serverconfig.txtand that the server is reading it (you can see the config path in the server startup log). Also, ensure the line is not commented out (lines starting with#are ignored). - Server crashes after changing difficulty. This can happen if the world was created in a different difficulty and the game can’t handle the switch. Try reverting to the original difficulty, or create a new world with the desired setting.
- In-game command doesn’t work. The
difficultycommand only works from the server console, not from in-game chat. If you’re using a hosting panel, use the console tab. - Players still see old difficulty. Make sure they fully exit and rejoin the server. Also, verify that the server actually restarted (check the uptime in the console).
- Can’t find the config file. If you’re using a dedicated server, it’s in the same folder as the executable. If you’re using a hosting service, check the file manager in your panel. If it doesn’t exist, create a new text file named
serverconfig.txtand add the difficulty line.
Frequently Asked Questions
Can I change difficulty without restarting the server?
Yes, using the console command difficulty applies immediately, but it won’t persist after a restart. For a permanent change, edit the config file and restart.
Will changing difficulty affect my existing world?
It will change the game’s difficulty settings, but some things like Expert-exclusive boss drops may not appear retroactively. It’s safest to start a new world for a clean experience.
What’s the difference between Expert and Master mode?
Master mode is harder than Expert: enemies have more HP and damage, and bosses drop unique Master Mode items like Relics and pets. Expert also adds special AI behaviors and better loot percentages.
Can I set a different difficulty for each player?
No, the server difficulty applies to everyone. However, each player can choose their own difficulty when playing single-player or if they host their own server.
Does Journey mode count as a difficulty?
Yes, it’s a separate difficulty (value 3) that gives players godlike powers and adjustable spawn rates. It’s not harder, just different—more like a sandbox mode.
What happens if I set difficulty to 3 on a non-Journey world?
The server may ignore it or behave unpredictably. Journey mode is tied to the world type, so it’s best to only use 3 if the world was created as Journey.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.