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 is planned 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. Also, they expand outwards, so you need to place a bed with at least one block behind them. Like some other blocks, beds can not be placed on glass or snow but can be placed on leaves. 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, but trying to use one will result in the "You can only sleep at night" message being displayed. In order for the bed to be useful, it must have enough light on and around it to prevent hostile mob attacks during sleep.

Beds are 9/16 of a block high, one more pixel than half; Beds, Cake, Soul Sand and Redstone Repeaters are the only blocks that are neither one block or half of a block high.

Behavior
Beds are used by right-clicking on the part with a pillow 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.

To ensure that you are not awakened unnecessarily during the night, the bed must not be placed along a 1 block thick wall, unless the area on the other side of the wall is also safe. If a hostile mob can get within 2 blocks of the bed, even if the blocks are separated by a wall, you will be awakened with the hostile 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.

In SMP, to skip the night, all players on the server must be in bed at the same time.

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

Crafting
Note: You can use any colored wool, you can even use multiple colors of wool, however, the bed will remain red.