World Seed

From Terraria Wiki
(Redirected from World seed)
Jump to navigation Jump to search
Desktop versionConsole versionMobile version
Desktop/Console/Mobile-Only Content: This information applies only to the Desktop, Console, and Mobile versions of Terraria.
This article is about the feature. For the ammunition, see Seed. For seeds that can be planted, see Seeds.
A world in the world selection menu on Desktop version Desktop. Hovering over the button reveals the world's seed; clicking it copies it to the clipboard.

The World Seed is a string of numbers that determines the way a Terraria world is randomly generated. It can be entered when creating a new world and can be viewed and copied anytime thereafter in the world selection menu with the Button copy seed.png Copy Seed button. Two worlds with the same seed are almost identical.[a]

Special world seeds

Main article: Special world seeds

Special world seeds cause worlds with unusual and unique features as Easter eggs. They can be selected in the Seed Menu.

Secret world seeds

Main article: Secret world seeds

Secret world seeds generate a modified world when used. They are initially hidden, and requires the player to input certain seed to "unlock".

Seed Menu

Clicking/tapping the world seed icon in the world creation menu opens the Seed Menu. The player can toggle special world seeds (and secret world seeds, if any were found) or randomize the seed in this menu.

Option Description
(in game)
Notes
Randomize Randomize Randomize your world's seed.
Normal Normal Welcome to Terraria! Embark on your adventures with the original Terraria experience and gameplay. Deactivated if any special seed is active, and activated if no special seed is active.
Not the Bees Not the Bees Enter a land oozing with syrupy honey, where the buzzing of wings and the threat of venomous stingers awaits around every turn! (Wicker helmet not included)
Drunk Drunk Crimson & Corruption? Together? Madness. This is the land of world generation gone wild, leading to a Terraria adventure like no other! Go home worldgen, you’re drunk!
Celebration Mk 10 Celebration Mk 10 10 years of Terraria! Join the party in this colorful world of whimsy – who knows, maybe the team left some gifts behind for you to open.
The Constant The Constant Bringing the Don’t Starve Together adventure into Terraria, can you survive persistent hunger as you seek to save Terraria? Oh, and don’t forget to stay in the light!
For the Worthy For the Worthy Are you Worthy? This is a world of no mercy. Forget what you know and sharpen your skills, lest you be weighed, measured, and found wanting...
No Traps No Traps Whoa, Traps. Ya hate ‘em, right? I hate them myself! This world has definitely been stripped of any and all traps... we think. Maybe.
Remix Remix A land where up is down and down is up. Turn Terraria on its head in this inverted adventure. Will you be brave enough to explore The Up?
Zenith Zenith For the Worthy wasn’t enough? Featuring aspects of every other world seed combined with some brand new surprises, this world is here to break you. Get fixed, boi! Automatically toggles all other special seeds (except Skyblock) when toggled.
Skyblock Skyblock Enter a realm floating in the sky. With little to start with, you must build up your world from humble beginnings.
Secret Seeds Secret Seeds (A list of all activated secret world seeds) Is only shown after discovering at least one secret world seed.

Format

A World Seed consists of five numbers, separated by periods: [size].[difficulty].[evil biome].[special world seeds].[identifier].

1 Small
2 Medium
3 Large
1 Classic
2 Expert
3 Master
4 Journey
1 Corruption
2 Crimson
1 Drunk world
2 Not the Bees
4 For the Worthy
8 Celebration Mk 10
16 The Constant
32 Remix
64 No Traps
128 Zenith
256 Skyblock
A world generated with no special world seeds has value 0. For worlds with multiple world seeds, the values for the enabled world seeds are added. For example, a Celebration Mk 10 world combined with a Remix world will be given the value 32 (Remix) + 8 (Celebration Mk 10) = 40. The Zenith seed cannot be enabled without also enabling all other special world seeds (excluding Skyblock), therefore a Zenith world will always have value 255 (or 511 if Skyblock is also enabled).
  • Identifier, i.e. the actual unique random seed (possible values: 0000000000 through 2147483647)
    • If any secret world seeds were used in generating the world, they are included in front of the identifier in plain text, separated by pipes (|)

For example, a world with the seed 3.1.2.73.night of the living dead|1399440699 is a large world in Classic Mode with Crimson and its identifier is 1399440699. The Drunk, Celebration Mk 10, and No Traps special world seeds are enabled, and the Night of the Living Dead secret world seed is enabled.

Input

The field for entering the World Seed is below the name field. In this example, an identifier of 1718168399 is entered.

During world creation, the seed can be entered by the player in the "Seed:" field, with a maximum length of 40 characters.[1] The input will be used as the identifier part in the full seed. Leaving the field empty will randomize the identifier.

Alternatively, the player can enter the full seed as four parts separated by periods. The game will automatically select the settings for world size, difficulty, and evil biome based on the first three parts and will leave the fourth part in the "Seed:" field as the identifier.[2] With the correct format, this effectively limits the length of the identifier part to 34 characters.

  • If the format is correct but any of the first three parts contain inappropriate values, the respective settings will be unchanged. If the format is incorrect, the entire input will be used as the identifier. For example:
    • Inputting 1.4.1.123456 sets the settings to small world, Journey Mode, Corruption and the identifier to 123456.
    • Inputting 1.4.5.123456 sets the settings to small world, Journey Mode and the identifier to 123456, while not changing the currently selected evil biome.
    • Inputting 1.4.1. sets the settings to small world, Journey Mode, Corruption and leaves the identifier empty.
    • Inputting 1.4.1.1.23456 sets the identifier to 1.4.1.1.23456 and does not change any settings.

The identifier entered by the player (using whichever method) may contain characters other than just numbers, such as letters or symbols. In this case, the identifier is internally converted to a number using the CRC-32 algorithm.[3] Otherwise, if the identifier is a number already, it is used as-is. For example, the identifier terraria1234 is converted to 122398367. Both identifiers are equivalent, thus they result in identical worlds being created – provided the rest of the parameters (world size and evil biome) are identical.

Worlds created prior to 1.3.4

Worlds generated prior to 1.3.4 do not have a viewable seed. While they were generated with a random seed, that information was only used during world creation, and was not stored in the world file.

Worlds generated in 1.3.4 or later always have a World Seed. In 1.3.4, an experimental feature setting was added on the Desktop version Desktop version to allow players to see, copy, and input the World Seed.

Since 1.4.0.1, World Seeds can always be viewed, copied, and entered, regardless of the experimental feature setting.

Trivia

Chat tags in the World Seed. The identifier in this example is [c/FF0000:Red] [i:1] [g:2].
The same world from above, in the world selection menu.
  • Chat tags can be properly displayed when entered into the World Seed.

History

  • Desktop 1.4.5.0:
    • Added secret world seeds.
    • Reworked the mechanics of special world seeds, so that the player can enable multiple special world seeds together and generate identical worlds with special seeds active.
    • Added the Seed Menu, where the player can select special world seeds.
  • Desktop 1.4.2: Fixed an issue where seeds would not always generate identical worlds.
  • Desktop 1.4.0.1:
    • Officially implemented in the game.
    • Added special world seeds.
    • Made the world seed also contain the info on the initial settings of a world.
    • Fixed an issue where different operating systems would see slightly different world seed results.
  • Desktop 1.3.5: Fixed an issue where auto-creating a world from the server caused it to always use the same seed.
  • Switch 1.4.0.5.5: Introduced with changes from Desktop 1.3.5 to Desktop 1.4.0.3.
  • Mobile 1.4.0.5.0: Introduced with changes from Desktop 1.3.5 to Desktop 1.4.0.3.

References

  1. Information taken from the Desktop version Desktop 1.4.4.9 source code, method Click_SetSeed() in Terraria.GameContent.UI.States.UIWorldCreation.cs. There may be inaccuracies, as the current Desktop version Desktop version is 1.4.5.5.
  2. Information taken from the Desktop version Desktop 1.4.4.9 source code, method ProcessSeed() in Terraria.GameContent.UI.States.UIWorldCreation.cs. There may be inaccuracies, as the current Desktop version Desktop version is 1.4.5.5.
  3. Information taken from the Desktop version Desktop 1.4.4.9 source code, method SetSeed() in Terraria.IO.WorldFileData.cs. There may be inaccuracies, as the current Desktop version Desktop version is 1.4.5.5.
  1. Minor differences may still be present due to randomizations that are not based on the seed.