Terraria difficulty is controlled by the difficulty value in serverconfig.txt. Master difficulty uses value 2. Back up your world first if you are changing an active server.
| Value | Difficulty |
|---|---|
0 | Normal |
1 | Expert |
2 | Master |
3 | Journey |
- Open your Terraria server in the control panel.
- Click Configuration Files.
- Open
serverconfig.txtwith Text Editor. - Find the
difficultyline and set it to:difficulty=2 - Save the file.
- Generate a new world if you need the world itself created as Master difficulty.
- Restart the server and join to confirm the expected difficulty.
Changing the setting does not repair a world that was created with the wrong difficulty. If the world difficulty is wrong, create a backup, set the value, then generate a new world.
Verify the change
Restart the server after saving, then join and confirm the world, difficulty, location, message, or playlist now matches the value you set. If players are online, warn them before restarting.
Common causes
If the old value is still shown, check that you edited the active configuration file and saved it before restarting. For world or difficulty changes, you may need a new world file before the setting takes effect.