Beds

The Bed is a piece of Furniture you can set your spawn to, which can be useful if your house isn't near your spawn. Once a bed has been placed you can right-click it to set its location as your new spawn point. If the bed is removed, or if the criteria for the bed to function properly are no longer met, your spawn point will revert to the world default.

For a bed to function properly and allow you to set your spawn point, the following criteria must be met: If the requirements are met, right clicking the bed should set your spawn and show the message "Spawn point set!".
 * The bed must have enough space. The interior must be at least 8 blocks wide and 4 block high. The room doesnt have to be any specific shape but area of the room (including the walls, ceiling and floor) must equal 60 or more.
 * Enemies must not be able to spawn in the room, i.e connected area which allows spawns(Dirt wall, Dungeon Brick Wall or no walls) must not be larger than 4 wide or 4 high, a room that is 9 wide and 4 high split with a background wall down the center is usable as a bedroom
 * The room's exterior walls may be crafted from dirt. Only the background needs to be another material. It may be interesting to note that wooden platforms can be used as the room's exterior walls and the bed will work.
 * A bed may be placed in a non-rectangular room, so long as the blocks immediately above it are left clear.