Terraria Wiki
Advertisement
Valid House Door

一个简单的房屋。
7(内部宽度)x5(内部高度)

房屋(或称)是玩家建造用来生成城镇NPC的建筑,每一间房屋只能对应一个NPC。一个建筑必须符合一些“建筑学”标准才会被判定为合格的房屋(详见下文)。你也可以使用房屋菜单顶端的“?”按钮来检查房屋是否合格。NPC会在夜晚回到自己的房屋里,直到黎明(游戏内时间4:30)。他们也会在日食的时候回到自己的房屋里(从1.2.3开始)。

File:Screenshot 3.png

房屋菜单

向导将会在世界建立时首次出现。如果不幸死亡,则需要一间合格房屋来让他重生。老人骷髅商人游商不需要房屋。

渔夫哥布林工匠电工美发师魔法师首次出现时不需要房屋,一旦他们被发现(解救),那么他们需要一间合格房屋才能够重生。

房屋框架

一个房屋必须满足以下条件:

  • 房屋的侧壁(垂直墙壁)可以由任意方块平台大门构成。
  • 房屋的地板和天花板(水平墙壁)可以由任意方块、天窗平台构成。
  • NPC需要至少一个实体方块(不能是平台)站在上面来度过夜晚,而且这个实体方块不能与侧壁直接相邻。

入口

一个房屋至少需要一个入口。可以是侧壁上的大门、在地板或天花板上的天窗或是在侧壁、地板或天花板上的平台

尺寸

Npccell

一个微型的3x10房屋。

如果包含框架(包括侧壁、地板和天花板),一个房屋要包含60-750个格子。


另外,房屋的外框必须满足下列最小尺寸之一:

不包含侧壁、地板和天花板 包含侧壁、地板和天花板
宽度3格x高度10格 宽度5格x高度12格
宽度4格x高度8格 宽度6格x高度10格
宽度5格x高度7格 宽度7格x高度9格
宽度6格x高度6格 宽度8格x高度8格
宽度7格x高度5格 宽度9格x高度7格
宽度8格x高度4格 宽度10格x高度6格
宽度10格x高度3格 宽度12格x高度5格

背景墙

WindowedHouse

在1.1版本之前没有玻璃幕墙时的一个带有“窗子”的房子。

一个合格的房屋必须要有 背景墙 。任何由玩家拾取或制造出的墙均可称之为合格的背景墙。然而蓝色板墙却是个例外(由 地牢处获得)。

  • 那些由地图自动生成,且用锤子敲击之后就会消失掉而无法被拾起的“伪”墙面并不能算作背景墙。(比如初期地表下就会看到的“伪”淤泥墙。)
  • 背景墙可以有缝隙。只要这个缝隙小于4*4的大小就行。
    • 当背景墙有缝隙时,将有可能导致怪物生成在房间内部。所以若想在保留“窗户”的同时考虑安全因素,还请使用玻璃墙

家具

一个房屋必须拥有至少一个光源, 桌子, 以及椅子. 以下列出的物品均可满足该条件。

  • 并不是所有会发光的物品都可以称之为光源。仅以下列表中之发光物为合格的光源。
  • 同一类别中的任意物品均可满足房屋条件。例如任何颜色的火把,或任意主题的椅子
  • 请注意火把 摆放在家具上时并不满足房屋条件。
Light Source
火把火把 Torch
提基火把提基火把 Tiki Torch
蜡烛蜡烛 Candle
骷髅头灯笼骷髅头灯笼 Skull Lantern
烛台烛台 Candelabra
王朝灯王朝灯 Lamp
蘑菇灯笼蘑菇灯笼 Lantern
吊灯吊灯 Chandelier
壁炉壁炉 Fireplace
中式灯笼中式灯笼 Chinese Lantern
杰克南瓜灯杰克南瓜灯 Jack 'O Lantern
蓝灯蓝灯 Christmas lights
红心灯笼红心灯笼 Heart Lantern
星星瓶星星瓶 Star in a Bottle
Flat Surface Items
桌子桌子 Table
梳妆台梳妆台 Dresser
工作台工作台 Work Bench
浴缸浴缸 Bathtub
书架书架 Bookcase
钢琴钢琴 Piano
炼药桌炼药桌 Alchemy Table
施法桌施法桌 Bewitching Table
Comfort Items
椅子椅子 Chair
王座王座 Throne
长椅长椅 Bench
床 Bed
沙发沙发 Sofa

选址

当一个房间靠近 腐化或者猩红生态时,将不再适宜居住,从而不满足合格房屋的条件。当腐化或猩红生态蔓延到现有房间时,该房间NPC将搬出房间并在附近走动,直到你为他安排新的合格房屋为止。

A House is considered corrupted based on its "Corruption rating," which calculates all tiles in a 45-block "radius" around the house; a house's Corruption rating must be 250 or less. This is about half the blocks in the radius.

  • Each tile of Ebonstone, Ebonsand, and Corrupted vines/plants increases a House's Corruption rating by 1
  • Each tile of Hallowed grass, Pearlsand, and Hallowed vines/plants reduces the rating by 1.
  • Each Sunflower reduces a House's Corruption Rating by 5.

Simplest valid option

File:SimpliestHousing.PNG

Simplest and smallest valid house.

Materials required:

Summary raw materials:

  • 33 Dirt Block
  • 19 Wood (if using door) or 14 Wood (if using a single wood platform)
  • 1 Gel

This works, but if you don't want house to be occupied by vines, replace dirt with wood, stone, or mud. While this is the simplest option, it's susceptible to Corruption or Crimson.

Notes

  • Houses may be attached together and share common walls, floors, ceilings, and doors.
  • If a House with an assigned NPC is destroyed or any of its requirements are invalidated, the NPC will wander the area until a valid House becomes available again. If killed, the NPC will respawn once a valid house is restored.
  • An NPC will not spawn within its House if that House is on the visible screen at the time, and may walk around the area outside instead. Quitting and restarting in single-player mode will place the NPC in its house. At night, NPCs will be automatically placed inside their Houses if the player travels several screens away, or if the player uses a Magic Mirror or Teleporter.
  • In single-player, a total of 19 NPCs (20 during the Christmas season) will eventually become available to a player in an ordinary biome who fully advances through the game. It may be worth building a structure containing 19 rooms (or 20 if during the Christmas season) that meet the House requirements when planning a headquarters. The Truffle is an additional 20th NPC (or 21st, if during the Christmas season), but must be in a surface mushroom biome, and will likely need to be housed separately from the player's main structure.
  • The side, top, and bottom of the world do NOT count as walls.
  • If a stone wall has been converted into Pearlstone Wall, the House will become invalid.
  • If building a house at a world's original spawn point, it is best to not place any foreground objects or blocks where characters appear. This will remove the object(s) and place them in the new player's inventory.
  • You can replace doors with platforms of any kind if you have 3 where a door should be. Good if you have large rooms or hallways that you want to have NPCs in, or if you hate the sound of NPCs opening and closing doors constantly.

Tips

  • Placing a light source in a Living Tree room or Floating Island structure will cause it to become suitable housing, unless you have removed its furniture.
  • If you wish to prevent NPCs from wandering around, place a torch on the ground on each side of the door (it does not necessarily have to be on the ground since 1.2). It will not only count as a light source but also prevent the NPC from leaving. Keep in mind this will also complicate opening the door for the player, as you will need to face away from the door to open it or right-click the torch and re-place it when you want to enter. Wooden Beams and Platforms can work just as well.
  • You can also use the Green, Brown, Blue, Grey and Lihzahrd pressure plate to prevent the NPC from leaving the house, because those pressure plates activate only when players step on them.

History

  • 1.2.4.1: Opening doors will once again cause a room to be unsuitable, but only if two doors are opened into the same room. (Depends on size of room)
  • 1.2: Fixed a bug that would cause a suitable house to be unsuitable.
  • 1.1: There is now a built in interface for checking if a house is valid for being moved into and designation the specific house for the specific NPC.
  • 1.0.6: Requirements modified; may now use a bed, toilet, throne or bench instead of a chair, and may use a dresser, bathtub or bookcase instead of a table or workbench.
Advertisement