How to Customize World Generation in Don't Starve Together (worldgenoverride.lua)

Edit worldgenoverride.lua on your Don't Starve Together server to control season length, day length, world size, resource frequency, and starting season.

Don't Starve Together's worldgenoverride.lua lets you customize everything about your world before generation: season lengths, world size, resource frequency, starting season, day/night ratios, mob spawns. Each shard (Master and Caves) has its own file. This page is the complete reference.

File Location

DoNotStarveTogether/Cluster_1/Master/worldgenoverride.lua
DoNotStarveTogether/Cluster_1/Caves/worldgenoverride.lua

If the file doesn't exist, create it. Settings only apply when the world is first generated — to apply changes to an existing world, you must regenerate that shard's save/ folder.

File Format

return {
  override_enabled = true,
  preset = "SURVIVAL_TOGETHER",
  overrides = {
    season_start = "summer",
    world_size = "huge",
    season = "shortboth",
  }
}
FieldRequiredDescription
override_enabledYesMust be true for any of your overrides to apply
presetYesThe base preset to start from — overrides modify this preset
overridesYesTable of setting = "value" pairs to apply on top of the preset

Available Presets

PresetDescription
SURVIVAL_TOGETHERStandard DST surface world (default for Master shard)
SURVIVAL_TOGETHER_CLASSICClassic Don't Starve world layout
SURVIVAL_DEFAULT_PLUSSurvival mode with more resources
COMPLETE_DARKNESSAlways-night extreme survival
DST_CAVEStandard cave world (default for Caves shard)
DST_CAVE_PLUSCaves with more resources

Season Settings

SettingValuesDescription
season_startdefault, autumn, winter, spring, summer, randomWhich season the world starts in
seasonnoseason, veryshortseason, shortseason, default, longseason, verylongseason, randomLength of all seasons
autumnsame as seasonLength of autumn specifically
wintersame as seasonLength of winter specifically
springsame as seasonLength of spring specifically
summersame as seasonLength of summer specifically

World Size & Layout

SettingValuesDescription
world_sizesmall, medium, default, hugeTotal map size
branchingnever, least, default, mostHow branchy the map setpiece layout is
loopnever, default, alwaysWhether the map loops back on itself
task_setdefault, cave_default, classic, lavaarena, quagmireSet of regions to use

Day/Night Cycle

SettingValuesDescription
daydefault, longday, longdusk, longnight, noday, nonight, nodusk, onlyday, onlydusk, onlynightDay phase ratio

Resources (set per resource type)

These all use the same value scale: never, rare, default, often, mostly, always. Examples:

SettingWhat
flintFlint nodes
grassGrass tufts
saplingSaplings
treesTree density
rockBoulders
gold_depthGold ore in caves
flowersFlowers
berrybushBerry bushes
carrotWild carrots

Mobs (creatures)

Same scale as resources: never, rare, default, often, mostly, always.

SettingWhat
spidersSpider dens
pigsPig houses
bunnymenBunnymen (caves)
tallbirdsTallbird nests
houndsHound attack frequency
rabbitsRabbit holes
beefaloBeefalo herds
frogsFrog ponds
beesBee hives

Special Settings

SettingValuesDescription
petrificationnone, few, default, many, maxPetrified trees
boonsnever, rare, default, often, mostly, alwaysSpecial set-piece structures
cavelightveryslow, slow, default, fast, veryfast(Caves) light cycle speed

Recipes

Boosted Resource Server

return {
  override_enabled = true,
  preset = "SURVIVAL_TOGETHER",
  overrides = {
    flint = "often",
    grass = "often",
    sapling = "often",
    trees = "often",
    rock = "often",
    berrybush = "often",
    flowers = "often",
    season = "longseason",
    season_start = "autumn",
  }
}

Hardcore Survival

return {
  override_enabled = true,
  preset = "SURVIVAL_TOGETHER",
  overrides = {
    flint = "rare",
    grass = "rare",
    trees = "rare",
    season = "veryshortseason",
    season_start = "winter",
    hounds = "often",
    spiders = "often",
    day = "longnight",
  }
}

Endless Summer

return {
  override_enabled = true,
  preset = "SURVIVAL_TOGETHER",
  overrides = {
    season_start = "summer",
    autumn = "noseason",
    winter = "noseason",
    spring = "noseason",
    summer = "verylongseason",
  }
}

Apply Your Changes

Stop your server from Console.

Edit Master/worldgenoverride.lua (and/or Caves/worldgenoverride.lua) with your overrides.

Crucial: worldgenoverride only applies on first world generation. To force regeneration, delete the existing save/ folder inside that shard's directory:

DoNotStarveTogether/Cluster_1/Master/save/
DoNotStarveTogether/Cluster_1/Caves/save/

This wipes the existing world for that shard. Back up first if you want to preserve it.

Start the server. The new world generates with your overrides applied.

Why Aren't My Changes Applying?

CauseFix
override_enabled = falseSet to true
Edited only Master, expected caves to changeEach shard has its own file — edit both
Lua syntax errorThe file must be valid Lua. A trailing comma after the last entry is fine, but missing commas or quotes break it. Use a Lua linter if unsure.
World already generatedOverrides only apply on first gen — delete the save/ folder to regenerate
Wrong preset namePreset names are case-sensitive

How is this guide?

40% Off — Limited TimeGet your Dont Starve Together server todayInstant setup, DDoS protection, and 24/7 support included.
Get a Server

On this page