Town
A town is a player-created mini-biome which is created when three or more NPCs are in close proximity (including the Old Man, Traveling Merchant, and town pets, but excluding the Skeleton Merchant). Towns have the greatest effect on reducing the spawn of enemies[1], and have unique music tracks for both day and night[2]. However, the enemy spawn reduction effect is weaker in the Underworld, and will not have effect when some events are occurring. See Notes for a detailed list.
The Shadow Candle(Desktop, Console and Mobile versions), when placed and activated or when held, prevents the creation of a town mini-biome, even if enough NPCs are present.
Contents
- Town Day(Desktop, Console and Mobile versions)
- Town Night(Desktop, Console and Mobile versions)
Notes
- Only NPCs that are within a 240×135-tile rectangle centered on the player are considered inhabitants of the town.[3]
- The enemy spawn reduction effect a town provides will not have effect in any of the following circumstances[4]:
- Any of the following events is occurring: Blood Moon, Pumpkin Moon, Frost Moon, and Solar Eclipse.
- Any of the following events is occurring while the player is on or above surface: Goblin Army, Pirate Invasion, Frost Legion, and Martian Madness(Desktop, Console and Mobile versions).
- The player is in range of the Old One's Army event.
- The player is in the Corruption, Crimson, Dungeon, or Meteorite biome.
- The player is in range of any Celestial Pillars.
- (Desktop, Console and Mobile versions) A Shadow Candle is active.
- Despite a town having to include at least 3 NPCs, pylons only require two NPCs (including the Old Man and town pets, but excluding the Skeleton Merchant and the Traveling Merchant) to function.
- Due to NPCs being present while in a town, critters have increased spawn rates.
Gallery
A town in the Jungle with 3 NPCs living in it: the Witch Doctor, the Dryad, and the Painter.
History
- Desktop 1.4.4: Overall spawn rate of Jungle critters in Jungle towns reduced.
- Desktop 1.4.0.1: Introduced.
- Console 1.4.0.5.4.1: Introduced.
- Switch 1.4.0.5.5: Introduced.
- Mobile 1.4.0.5.0: Introduced.
References
- ↑ Information taken from the Desktop 1.4.3.6 source code, method
SpawnNPC()
inTerraria.NPC.cs
. There may be inaccuracies, as the current Desktop version is 1.4.4.9. - ↑ Information taken from the Desktop 1.4.3.6 source code, method
UpdateAudio_DecideOnNewMusic()
inTerraria.Main.cs
. There may be inaccuracies, as the current Desktop version is 1.4.4.9. - ↑ Information taken from the Desktop 1.4.3.6 source code, method
AddIntoPlayersTownNPCSlots()
inTerraria.NPC.cs
. There may be inaccuracies, as the current Desktop version is 1.4.4.9. - ↑ Information taken from the Desktop 1.4.3.6 source code, method
SpawnNPC()
inTerraria.NPC.cs
. There may be inaccuracies, as the current Desktop version is 1.4.4.9.