Bed

Beds allow the player to skip to the next dawn. In SMP, this will only happen when all players sleep. Beds were added in Beta 1.3. In a future update, the last bed the player slept in will serve as the player's respawn point the next time they die. Beds cannot be destroyed by fire.

Placement
Beds, unlike typical blocks, take up two blocks of space. Basic placement requires at least this much space away from the player's facing direction. Like some other blocks, beds can not be placed on glass or snow but can be placed on leaves if graphics are set to "Fast". It is also possible to create a "floating bed" if the blocks underneath the bed are destroyed. This allows beds placed over each other like with fences. When placed, the foot will face toward the user. Two or more beds can be placed next to each other, effectively allowing double beds.

Beds cannot be placed underwater. They can be placed in a dry area and then flooded, however using them will result in the "You can only sleep at night" message. Chests next to the bed will render it unusable unless it is at the foot or head of the bed. In order for the bed to be useful, it must have enough light on and around it to prevent hostile mob attacks during sleep.

Behavior
Beds are used by right-clicking on them during night time. Attempting to use it during the day will result in a "You can only sleep at night." message, which also appears when attempting to use beds in the Nether. When used, the player is positioned in the bed and their view slowly fades to gray. After this transition, the player wakes up at dawn. However, if a mob is within proximity of the bed and has access to it, you will be awakened with the mob standing next to you. There appears to be a slight delay before the mob attacks you giving you time to get the first blow.

Sleeping, while skipping night time, does not accelerate other events such as the decay of dropped items or smelting.

Crafting
Note: You can use any colored wool, however the bed will remain red.

Trivia

 * When 1.3 was first released, every world generated started with a full stack of torches, a diamond pick, axe and shovel and 64 beds, separated into 1 and a stack of 63. This was later confirmed to be due to the debug item spawning code still being in place and was removed.
 * If the bed is surrounded on all sides by blocks, the player will not be able to sleep as a message appears saying "You can only sleep at night", denying the player access to the bed.
 * When walked on, beds make a sound like stone, suggesting that they are uncomfortable.
 * In SMP, the player is given the option to "Leave Bed" or use chat to continue communicating.
 * Technically your player is bigger than the bed.
 * "Half beds" can be created by placing a cactus on the ground, and then placing a bed next to it. This method is similar to the technique used when creating half doors.