NPC Town

The NPC Town is a naturally-spawning Town consisting of lots of houses (with additional decorations) that are fit for NPCs to move in. The Town also spawns with enough houses for every NPC to move in, along with street light-like structures and other decorations.

### Spawning

The Town has a 1% chance to spawn in a random location (except close to the spawn area) each night. The Town also only will spawn after at least 5 housed NPCs are available and Hard Mode is entered. Upon spawning, the Town will clear/flatten out a large area for it to spawn. If it spawns in the area of any player-made structures, any items used to make it will be teleported into the players inventory (dropped right in front of the player if it is full). Also, the Town will not spawn if if there is any blocks/structures blocking the way.

#### Biome

The Town will only spawn in the Forest. If there is no Forest left, it will not spawn until there is enough forest for all the houses to spawn.

#### Underground

There is still a bug, where, there is a very small chance that the Town will spawn underground instead of the surface. This can be fixed by re-installing Terraria.

### Houses

The houses in the Town meet the requirements for every NPC to move in to each one. The houses will consist of additional decorations, along with proper roofs, fancy lighting and windows. The list of different varieties of houses below:

Normal House:

* 9 x 7 area of Wood Blocks
* Wood Walls
* 1 - 3 Torches
* 1 Table
* 1 - 2 Chairs
* Chandelier (5% chance)
* Stone Blocks placed in pyramid-style fashion for a roof
* 0 - 3 Banners (Decorative)
* 2 Doors (on each side)

Blacksmith House:

* 9 x 7 - 12 x 10 area made of stone
* Stone Walls
* 2 - 4 Torches
* 1 Table
* 1 Chair
* Chandelier (4% chance)
* 1 Furnace
* 1 Anvil
* 1 - 2 Banners (Decorative)
* 2 Doors (each side)

Bigger House:

* 1 12 x 12 size room in the middle
* 2 15 x 15 size rooms on the sides
* 6 Torches (per room)
* 15 Glass (for windows, 5 per room)
* 1 - 2 Tables (per room)
* 2 - 4 Chairs (per room)
* Chandelier (10% chance per room)
* Stone Blocks placed in pyramid-style fashion for a roof (on each house)
* 1 - 4 Banners (per room)
* 1 Furnace (50% chance per room)
* 1 Loom (50% chance per room)
* 4 Doors (2 on the inside on each side of the middle house, and 1 door at the entrance of each side house)

Clock Tower

* 4 - 6 10 x 7 size rooms stacked on each other to make a clock tower
* 2 Torches (per room)
* 3 - 5 Glass (per room)
* 1 Table (per room)
* 1 - 2 chairs (per room)
* Chandelier (2.5% chance per room)
* Smooth Marble Blocks placed in a 2D circle fashion at the outside front of the highest room to give the appearance of a giant white clock background
* 4 - 5 bricks painted black descending off the Smooth Marble Blocks in a row as to look like the small hand or big hand on the clock.
* 0 - 1 Banners (per room)
* 1 Workbench (per room)
* 1 Door (left side of the Clock Tower)

### Times

The Clock Tower is very important, as at a certain time in the day, the clock will make a bell-ringing sound for 10 seconds that can be heard when near/in the Town and alerts NPCs and Players that (depending on what in-game time it is) there is an event in the town, including the Raid. (Note: The dash between the times below do not mean when the events starts and ends, instead meaning that the time the events start are varied by up to 2 hours)

#### 9:00 - 10:00 pm

Bedtime. The clock will ring, the message "Bedtime for the NPCs" will appear in the chat and the NPCs will sleep on either the Table or Chair (and any bed available in/near their house) in their respective homes. The NPCs will get the effect "Sleepy" until 7:00 - 8:00 (Morning). If the player is in a house, they will also get the effect "Sleepy". This event lasts until Morning.

#### 7:00 - 8:00 am

Morning. The clock will ring, the message "Up and at em'!" will appear and the NPCs will wake up from sleeping. There is also a chance that a random NPC can get the effect "Insomnia" during Bedtime. This event lasts until 12:00.

#### 12:00 - 12:30 pm

Lunchtime. The clock will ring, the message "Lunchtime!" will appear and the NPCs will be given 1 Sandwich in their hand. The player will also be given 1 Sandwich. The NPCs will occasionally munch on the sandwich that lasts for 15 bites, or until Tea Time. This event also lasts until Teatime.

#### 2:00 - 3:00 pm

Teatime. The clock will ring with the message "Teatime!" and all the NPCs will be given 1 Teacup (filled) in their hand. The player will also be given 1 Teacup (filled). The NPCs will occasionally sip the tea that lasts for 20 sips, or until Dinner. This event also lasts until Dinner.

#### 6:00 pm

Dinner. The clock will ring with the message "Dinnertime!" and all the NPCs will teleport onto a chair in their respective homes. There will be several background food items on the table/workbench of the NPC houses, consisting of beef, corn, chicken, soup, water/milk, potatoes, cheese and bread. These items cannot be collected or mined. The NPCs will randomly eat one of the spawned food items on the table. The food does not disappear until 8:00 pm.

#### 1:00 pm

Raid. The Raid will only start at 1:00 if the Raid is triggered.

### Notes

* There is also a chance that an NPC will not go to Dinner, miss Teatime or miss Lunchtime. If so, the NPC will get the debuff "Curfew" and will not be able to tell what time it is for 1 - 2 day(s), and may miss another event by accident. This can also happen to players, although differently: If the player misses Lunchtime, Teatime or Dinner, there is a small chance that the player will get the Debuff. However, the player is always told the event that is happening in the Town in the chat bar, and can easily Magic Mirror back to the Town of spawn point is set there with a bed.
* There is also a chance that an NPC will stay in a house all day, with the Debuff "Housed". During this, the NPC will not go outside whatsoever, even during the Raid, and even miss events. This may also cause Curfew. (This effect does not apply to Players)
* During the Raid, all NPCs will enter their houses to stay safe (also missing events but cannot get Housed or Curfew). However, there is a bug, that very rarely an NPC will walk out of its house and act normal like any non-threatened NPC would and be targeted and massacred by the Raid enemies.
* The Town does not spawn if a player is in the selected spawn area. However, there is another bug where it will spawn on top of the player and they would instantly die with the death message "Crushed".