How to set the Terraria world difficulty

The Terraria world difficulty is normal by default. You can change it if you want an extra challenge. This guide will show you how in a few simple steps.
Note that the world difficulty must be set before the world is generated. This can be done by deleting the world right after creating a server.
Change the world difficulty
- Start your server
- Pause your server
- Open your server's files
- Edit the
gameserver/serverconfig.txtfile - Change the line starting with
difficulty=to one of the following:difficulty=0for Classic difficultydifficulty=1for Expert difficultydifficulty=2for Master difficultydifficulty=3for Journey difficulty
- Save the file
- Go into the
gameserverfolder and delete theWorldsfolder - Restart the server
Example file for Master Mode
Here is an example of what your serverconfig.txt file could look like
if you want to play Master Mode:
world=Worlds/world1.wld
worldpath=Worlds/
worldname=world1
autocreate=1
difficulty=2
maxplayers=32
port=7777
password=
motd=Yet another Squadnox server
banlist=banlist.txt
secure=1
language=en-US