House

A house is a structure that meets the following criteria:
 * Has side and back walls, a floor, and a ceiling. The back walls cannot be made of dirt nor of dungeon wall tiles (e.g., Green Brick Wall) and must be uniform, as two different wall types leave a small gap. You can cover this with blocks to allow for settlement, but otherwise NPCs won't move in.
 * Has a table or a work bench and a chair.
 * Has a door in a wall or a Wood Platform in the ceiling or floor.
 * Please note that houses cannot share doors or platforms. If they do it will be considered a single house.
 * Has a light source.
 * Is at least 8 blocks wide and 4 blocks tall, not including walls, floor or ceiling.

To set the player spawn point using a bed, the size and wall requirements must be met.

An NPC requires a house to spawn. For an NPC to move in, the house must also be unoccupied. To forcefully move an NPC to another house, simply destroy any of the house requirements listed above (e.g. table) and make sure you have an unoccupied house available for the NPC to move in. When making your house you may attach 2 rooms together by making some of the materials you used to build the house attached to your house as long as there is some way to get in and all requirements still must be inside the new room. Mobs can not enter your room(s) through your doors unless it is a Blood Moon