Skip to main content

Crafting Your Realm: World Generation Logic

In the Terraria engine, world parameters are technically static once the generation sequence concludes. This means you cannot expand a “Small” world into a “Large” world or transition from “Classic” to “Master” mode after the world file (.wld) has been created. These critical variables must be defined within your configuration registry before the server initializes its first world instance. This guide walk you through the technical configuration of your world and the procedure for forcing a regeneration.

Difficulty

Beginner

Time

5 Minutes

Technical Configuration (serverconfig.txt)

You can define these variables directly within the serverconfig.txt file or use the Startup tab in the FREAKHOSTING Game Panel.

1. World Size Calibration (autocreate)

This parameter dictates the total horizontal and vertical dimensions of your map.
  • 1 (Small): Optimized for singleplayer or 1-2 survivors.
  • 2 (Medium): A balanced environment for small cooperative groups.
  • 3 (Large): Highly Recommended for public community servers (4+ players). A large world ensures sufficient resource distribution and biome diversity for every participant.

2. Difficulty Tiers (difficulty)

Adjust the survival intensity and loot quality by modifying the following modes:
Mode IDNameMechanical Impact
0ClassicStandard baseline gameplay and mechanics.
1ExpertScaled boss health, increased drop rates, and unique Treasure Bags.
2MasterExtreme tactical challenge, exclusive relics, and rare mount drops.
3JourneyAccessible mode featuring research and duplication capabilities.

Procedure for World Regeneration

If you have already initialized a world and wish to modify these settings, you must programmatically force the engine to regenerate the terrain.
1

Initialize Maintenance

Log in to the Game Panel and Stop your server.
2

Update Configurations

Modify the autocreate and difficulty variables in your Startup settings or serverconfig.txt to reflect your new desired state.
3

Purge Legacy Data

Navigate to the Files tab and enter the /Saves/Worlds/ directory. Delete or rename the existing .wld file to prevent the engine from loading the old data.
4

Initialize Generation

Start the server. The engine will detect the missing world file and automatically generate a new one using your updated technical parameters.

Need Extra Help?

If you encounter any issues, our support team is ready to assist:

Save on Your Hosting

Ready to get a new server? Use code KB20 at checkout for 20% off your first month!

Last Updated: January 2026 | Terraria: World generation rules set.