House

A House is a structure that meets the following criteria:
 * Has side and back walls, a floor, and a roof.
 * Has a table, a chair and a door.
 * Has a light source.
 * Is at least 7x5 blocks in size.

For setting the player spawn point by using a bed, the size, and back wall requirements must be met.

An NPC requires a house to spawn. For an NPC to move in, the house must also be unoccupied.