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.

For a bed to function properly and allow you to set your spawn point, certain criteria must be met similar to room requirements for spawning NPCs.:
 * The bed must have enough space. 12 block wide and 6 blocks high is enough.
 * The room must contain at least one light source (for example, a Torch or Candle ).
 * The room's exterior walls must be crafted from material other than dirt such as wood, stone, or bricks.
 * The background wall must also be crafted from a material other than dirt.
 * If the requirements are met, right clicking the bed should set your spawn and show the message "Spawn point set!".