Bed

A Bed is a block (actually two blocks per bed) that has two functions: They allow the player to sleep through the night and skip to the next dawn, and they reset the player's spawn point to within a few blocks of the bed. In multiplayer, all present players in the Overworld must be in a bed for the world to skip to dawn.

If a player's bed is destroyed or the bed is surrounded by solid blocks and the player dies, a message is displayed saying "Your home bed was missing or obstructed", and the player will respawn at the original spawn point. Keeping this in mind, the player should keep their "base" near the original spawn or know how to navigate to that base from the original spawn. CHICKEN!!!!

Crafting
Note: Neither the color of the wool nor the type of wood used has any effect on the bed's appearance. The only way to change the colors is with a resource pack or a mod.

Placement
Beds, unlike typical blocks, take up two blocks of space. Placement requires at least this much space away from the player's facing direction. When placed, the foot will be placed on the block selected and will face toward the user. Two or more beds can be placed next to each other, effectively allowing double beds. Like certain other blocks, beds can not be placed on snow, ice, glowstone, glass, carpet or (as of version 1.0) leaves. If you remove the blocks underneath the bed, the bed will not be removed, but will remain floating. The floating bed method allows bunk beds and placement on blocks you can't normally place them on.

Beds are 9/16 of a block high, one more pixel than half a block. This prevents you from walking onto the bed from one level below the bed without jumping, but allows you to walk up onto other blocks while on top of the bed.

Obstruction occurs unless there's a solid block (the same restrictions apply as the bed itself) at the 'floor level' with 2 air blocks or transparent blocks above it in one of the ten blocks that surround the bed. It doesn't matter if the bed itself has blocks above it. In other words: in order to work the player must be able to stand next to the bed at the same level as it, on a type of block that a bed could be placed on.

Sleep interruption
In old versions of Minecraft, sleeping in a "vulnerable" bed would cause the player to wake up early with a skeleton or zombie spawned next to them (referred to as a "nightmare"). A bed was considered vulnerable if it was placed in an area that passing monsters could access, with a generous definition—merely placing beds next to external walls would also cause this.

In recent and current versions of Minecraft, nightmares are gone, but you cannot sleep if a hostile mob is within 8 blocks of the bed horizontally (along each axis) and 5 blocks vertically. If a monster is nearby, even through a wall, the message "You may not rest now, there are monsters nearby" will be displayed and the player will not be able to sleep until the monsters go away or are killed.

Behavior
Beds are used by pressing the use item button looking at the bed during the night. They can also be used during thunderstorms but not during rain or snow. Attempting to use a bed at any other time will result in a "You can only sleep at night" message. The exact tick time span during which a bed may be used at night is between 12541 and 23458, inclusive.

If all sleeping requirements are met and the player enters a bed, the player will be positioned in the bed and the screen will slowly fade to black. During this time, the player can leave the bed by clicking the "Leave Bed" button. Once the player has entered the bed, the spawn point is set near the bed.



Sleeping only changes the time of day to sunrise; it does not speed up processes which take place over time such as the decay of dropped items, plant growth, and smelting. However, if it were raining or snowing, the weather is likely to end overnight. If the player went to bed late in the night (after monsters have spawned), they will be able to collect the drops from sunburnt undead, and easily kill off a few stragglers. Of course, there may also be creepers about, but those despawn faster than the items do. Sleeping during a thunderstorm can unleash a forest fire, by ending the rain that would have put out the flames from a lightning strike.

Beds placed in the Nether or the End will explode when the player tries to sleep, and set fire to surrounding blocks. The bed will drop as an item, and may be picked up and placed again. Some have suggested that this could be used for mining in the Nether, but this would be excessively hazardous: The explosion is more powerful than TNT, and at point-blank range, it may well kill even an heavily-armored player.

Multiplayer

 * To skip the night, all survival-mode players in the Overworld must be in bed at the same time. However, players in The Nether or The End don't have to sleep for this to happen (there is no day/night cycle in either of these dimensions), nor do players in creative mode.
 * Players can also chat while in bed, and can leave the bed before the time-skip (thus blocking it for everyone).
 * Destroying a bed while another player is sleeping would cause the player to wake up, even when it was not caused by a player who broke it (when an explosion destroys it).
 * If you try to sleep in a bed occupied by another player, you will get the message "This bed is occupied".

Trivia

 * When walked on, beds make the sound of stone.
 * Although they are taller than slabs, they can be walked off when sneaking.
 * Beds cannot be destroyed by fire.
 * If the player falls from high enough to take damage, but right click on a bed before they hit the ground, they won't take fall damage.
 * This also happens with minecarts and boats.
 * If there is a solid block above a bed, the surface of the bed will become black, much as with slabs.
 * Beds have the widest varieties of different blocks that can be use to craft them. Any type of wool or wooden plank can be used to craft it.
 * If the language is set to Canadian English and the player tries to sleep during the day, you get a message that says "Sorry, you can only sleep at night." On every other English setting, it will simply say "You can only sleep at night". This is a joke on stereotypical Canadian politeness and constant apologizing.
 * The command can be used to get the foot of the bed. The command is . If you place a pressure plate next to this foot of the bed, and step on the pressure plate, the block will break but you will get a full bed back. Also, if you place two of these blocks together, they will act like a full bed, but appear like the bed has two feet.
 * You can put water on top of a bed and sleep as if you're floating or swimming.
 * The bed's explosion in the End and Nether is more powerful than that of TNT.
 * If the world is quit while sleeping, on returning the player shall be awake beside the bed.
 * The player avatar clips just slightly into the bed if they have something in their hand and their feet protrude off the edge.
 * Using the /tp command while another player is sleeping will still teleport the sleeping player.
 * If you place a half bed on ice, the bed acts like the ice.
 * You cannot place a bed on top of glass, even if you place it on a valid block (with the head rest side to be above glass).
 * Beds aren't destroyable in adventure mode.
 * Beds will blow up in any dimension except the overworld even in mods by default.
 * When sleeping in the presence of villagers, the villagers will look at the spot where the player's head would be if they were standing on the bed.
 * Other mobs will do this too. For example,if you have a dog or cat on the foot of your bed while you sleep, you will see them look up.
 * If a player sleeps when a Jukebox is playing, the sound's direction will not adjust to the player's change in orientation until they wake up.
 * In Pocket Edition, sleeping restores health.
 * In Xbox 360 Edition, there is a glitch where you can push a player off a bed, and the player will still be sleeping, unaware of what happened.
 * There is also a glitch where you can move your head up and down. Other players can see this, but in 1st-person view, it's still.
 * If you sleep when the DayLightCycle is turned off, you will fall asleep, but wake up at night.