Bed

Beds are a block allowing the player to skip to the next dawn. Beds set the re-spawn point to the location of the bed. If the bed is destroyed, the re-spawn point resets to original spawn point. Compasses continue to point to the original spawn point. Formerly, beds randomly spawned enemies when placed next to a wall or in the open, but since a 1.9 pre-release, they will not work if monsters are nearby.

In SMP, the server will only skip to dawn when all players in The Overworld are sleeping, or when only one person is online; otherwise, it shows a first-person view of the player lying down, and a "Leave Bed" button. It will still change the player's spawn point as long as they stay in the bed until the screen stops getting darker (the point when time would normally skip to day, about 5 seconds). Beds are very important to most players because they can reset your spawnpoint. If the player is far from their spawn, and they make a base, it is almost required to have a bed so they can return to their base after dying.

Crafting
''Note: The color of the wools does not affect the resulting bed color, which in the default texture pack is always red. The only way to change the bed color is to change the bed's texture.''

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 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 or glass. In 1.0, beds cannot be placed on leaves. If you remove the blocks underneath the bed, the bed will not be removed, but will remain floating. The floating bed method allows beds to be placed over each other like with fences, or for beds to be placed on blocks that they cannot be directly placed upon.

Beds cannot be placed underwater. They can be placed in a dry area and then flooded, but they cannot be slept in (unless your head "is in" water).

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 onto other blocks at the bed's level.

Sleep interruption


In Beta, sleeping in a bed placed in an area that is exposed to monsters would cause the player to wake up with a zombie or skeleton next to them. As the chart to the right shows, placing beds next to external walls would also cause this.

The system is much simpler since the full release — sleep is not allowed within 10 blocks of a hostile mob. If a hostile mob is within 10 blocks of the bed when the player tries to sleep, the player is not allowed to sleep, and the message, "You may not rest now, there are monsters nearby," will be displayed. There is no longer any chance of an interruption.

Behavior
Beds are used by right clicking the bed during the night. They can also be used during bad thunderstorms, when the sky turns very dark, but not during light rain. Attempting to use a bed at any other time will result in a "You can only sleep at night." message, which also appears when attempting to use beds underwater. When used, the player is positioned in the bed and their view slowly fades to black. After this transition, the player wakes up at dawn. If the player were to die, the bed last used will serve as the new spawn point. However, if the bed is removed or there isn't a 1x2x1 empty space next to the bed, the message "Your home bed was missing or obstructed." will display and the spawn point will be reset to the default. Compasses never change their orientation, remaining pointed towards the original spawn. In Minecraft versions 1.2 and later, if an enemy mob is nearby, the message "You may not rest now, there are monsters nearby." will be displayed.



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.

Beds placed in the Nether will explode when the player tries to sleep. The bed will drop as a resource, and may be picked up and placed again. It has been suggested that this could be used for mining in the Nether. However, it is not recommended since the explosion may very likely be enough to kill you, even with armor on. Placing a bed in The End and sleeping in it will explode as well, including setting the surrounding area on fire.

Multiplayer
To skip the night, all players on the Overworld map must be in bed at the same time. Other players in The Nether or The End don't have to sleep for this to happen, since there is no day/night cycle in either of these dimensions. Players can also chat while in bed, and have the option to leave the bed before the skip happens.

If you try to sleep in a bed occupied by another player, you will get the message "This bed is occupied".

If you sleep in a bed it will become your spawn point.

If some players are in creative mode, only survival mode players need to sleep for time to fast forward to day.

Safe outdoors bed: in case of emergency
If you ever get lost in the woods when it turns dark, you can safely sleep in a bed without needing to build a complex shelter. You do not need any tools to make this shelter, although a shovel could shorten the time to build even more. Torches are highly recommended, but are not absolutely necessary.

1. Dig straight down 3 meters. Collect the dirt as you go down. See below for a diagram.

is dirt, empty spaces are air, and the ? is where the player is located.

2. Cover the top of your pit with a single dirt block, so your shelter is completely dark.

3. (optional) Add a torch by Steve's head.

[s] is the player (Steve), and [$], the closest thing to a combination of a [T] and an [s] available, represents both Steve's head and a torch.

4. Dig a 3x1x2 space from your current location, your current standing point being one of the vertices. You must remain underground: if you see outside, then you have to close the hole and try a different direction.

is the torch. The ? is where the player is located.

5. Put down your bed.

is the bed. The ? is where the player is located.

6. When you wake up, dig 1 block up so you see the surface, then remove the torch, pick up your bed, and build a way to the surface.

There is a much simpler option:

Jump and place a pillar below your feet at least 3 blocks in height (the taller, the safer). Then place a total of 5 blocks around the block that you are standing on (the top block of the pillar) in all directions - one side should have two blocks; use the shift button to remain on the block when going out on the edges to place the side-along blocks, to prevent falling off (the mobs will love you if you do fall, though!). The 3 extra blocks around the pillar is an overhang to prevent spiders from climbing up.. Place your bed on the 2 blocks and go to sleep. Remember not to stand on the blocks you want to place the bed on, or it wont work.

Trivia

 * When walked on, beds make the sound of the block below.
 * On peaceful mode (in Beta), a bed can be used out in the open, as no monsters are present to interrupt your sleep.
 * Since you do not need to stand on a bed to use it, beds can be used as one way transportation. Using the bed through a 1x1 hole will transport you to the other side of the 1x1 hole upon waking up.
 * This causes the block to lose its solidity and the player is then able to walk into it/through it.
 * You can't sneak walk off beds, being slightly taller than half-steps.
 * Beds cannot be destroyed by fire.
 * Beds explode in the Nether and the End. This is likely a paradox joke, because there is no day or night cycle in the Nether and the End.
 * If you fall from high enough to take damage, but right click on a bed before you hit the ground, you won't take the fall damage until you leave the bed.
 * This also happens with minecarts.
 * If there is a solid block above a bed, the surface of the bed will become black, much as with slabs.
 * If its raining at night, when you go to sleep and wake up, the rain disappears
 * In single player, if you right click while sleeping in a bed, you will receive the message "This bed is occupied".
 * There is a glitch that can occur if there are two Stone Brick blocks above your bed. Upon sleeping in the bed, the player will appear to be lying on the ground.
 * When destroying Beds, either with a tool or with your hand, the Bed appears to glow slightly.
 * You can't place Beds on Leaves or glass.
 * However, you can place your bed on another type of block, destroy the blocks it is on then place the leaves or glass where those blocks were
 * Beds can be placed above the height limit
 * Beds have the widest varieties of different blocks that can be use to craft it. Any type of wool or wooden plank can be used to craft it.
 * When you're sleeping, your HUD will start to fade, but your level (not your experience meter) will not fade.

Sleeping SMP
 * If you exit your world while sleeping and go back in you shall be awake beside your bed,thus making it an effective way to stop sleep.
 * You can still press inventory key after entering a bed to access your inventory and 2x2 crafting slots.
 * Because of this, you can craft while asleep.
 * Sneaking while asleep will show the inside of your characters head. You will see his face from inside his head.
 * You can get pushed off the bed by a mob or another player; this won't alter the sleeping in any way.
 * You can interact with other objects when in the bed besides the bed itself, such as chests, furnaces.
 * If you right-click food while in a bed, and given that your food bar is not full, you can eat in bed.
 * When going to sleep, you can 'mine' the bed, and therefore escape sleeping if you did want to do so. But this comes at a cost, as there is a glitch. When you bump into walls of blocks, you will get hurt, but may regenerate health. This allows the player to fight Mobs endlessly. In Minecraft 1.8.1, you will not regenerate health without a near-full food bar, just like normal. With this glitch, though, you will be able to walk through water without it affecting you as it normally would. You can jump while in the water, and cannot swim. This glitch will remain until you die or go to sleep again.
 * If you right-click while lying in a bed, with the mouse in a certain position, the "This bed is occupied" message will appear.
 * In creative mode, you can fly while sleeping. You can go either up or down, but not any other direction. You will wake up next to the bed. (This is not possible in SMP because sleeping brings up the chat GUI.)
 * You can scroll through your inventory while asleep.
 * In SMP, you can view other players in bed. The player avatar clips just slightly into the bed if they have something in their hand and their feet protrude off the edge.
 * In Beta 1.4, the player could only set the spawn by pressing the Leave Bed button in SMP. This was fixed in 1.4_01.
 * Placing a bed next to cactus in SMP creates a detached headrest. This can be used to create heart shaped beds and benches.
 * You can make a "napalm" bomb by going to the end or nether and place a bed and put a piece of TNT on top of it.
 * You could only sleep at night if you click the upper part of the bed

Bugs

 * Placing a bed down underground with two glowstone blocks above it will allow you to sleep in the bed but when you wake up or leave the bed will allow you to see any nearby caves.
 * In multiplayer, you are unable to sleep unless others around you sleep too. However, if the other players are more than 500 blocks away from you, you are able to sleep. This results in created time zones in different areas.
 * If you try to use a bed with an ender pearl in your hand, you will receive the "This bed is occupied" message
 * If you try to place a bed above the height limit for the map, it will be lost from your inventory.
 * Hitting the bed will cause the top surface to brighten. This does not affect the light level, and it is probably a glitch in the breaking animation.
 * Many situations cause a “You can only sleep at night.” message, even if it is nighttime. These have been reported to include:
 * The bed being surrounded on all sides by blocks, or water.
 * Right-clicking the bed while standing on top of it or more than three blocks away.
 * The bed seems to only force the camera to be in the bed; while the screen is fading out, you can still move around, break/place blocks, fire arrows, etc., but cannot see where you are or see your arm/tool. This has been called “sleepwalking.”
 * Moving the mouse around will cause particles on the screen to face different directions. This is because they are sprites, images that attempt to face the player's eyes (which aren't actually at that location) to avoid being seen edge-on.
 * There is a glitch in SMP where, if you switch from two beds rapidly (possibly due to connection), you can enter one bed and leave to appear near a different bed.
 * Using a bed in a room with a low ceiling can result in the player waking up with their head stuck, causing them to suffocate unless they can escape, which is likely after sneaking while using a bed.
 * In SMP, if a player gets into a bed and then another player surrounds the bed with a solid material (e.g. cobblestone), the first player will be stuck in a laying down position upon attempting to get out of the bed.
 * Saving in a bed and then continuing that saved game causes the player to fall through the floor and makes the bed "occupied." This can be fixed by destroying and then replacing the bed.
 * Sometimes if you place a bed next to a wall, it will spawn you on the other side of the wall.
 * Beds can be used to sleep through thunderstorms even during the day. It's because that the condition that must be met in order to sleep is not that it is nighttime, but that the ambient light is below a certain threshold.
 * If the bed is clicked on while holding a bow with arrows in your inventory, you will fall asleep and as if an invisible copy of the player is standing where you were, arrows will fire from that spot, fall through the bed and be lost forever. The arrows will not damage you.
 * If you walk very far away from your bed and then die, you do not re-spawn at your bed and instead spawn at your original spawn point, receiving the message "Your home bed was missing or obstructed".
 * Sometimes when sleeping in a bed completely surrounded by torches (including corners) you will have fallen through the bed when you wake up and begin to suffocate.
 * When sleeping in a bed, if you look down (it won't adjust the looking angle though) and destroy the bed while sleeping in it, you will hurt your self for 1/2 of a heart. No damage will be inflicted if you are playing in peaceful mode. In addition, if you are next to a 2 or more block high wall when this happened, you will be able to walk into it to a certain extent, just enough to suffocate you. if you are in 3rd person, you will switch to first person automatically when walking into the wall. This also cancels the sleeping animation, making it still night time.
 * You cannot respawn back to a bed surrounded by half-height blocks ("Your home bed was missing or obstructed")
 * If you place a bed on a glass floor (through placing the bed on normal blocks and then replacing the normal blocks for glass blocks) then when you die you will be placed back at your spawn point with the message that says "Your home bed was missing or obstructed."
 * If there is block of air between a bed and a big chest above it, and you try to go to sleep, you appear to be pushed out of bed, then sleep on the floor next to you.
 * If you sleep in a bed over the 128-block height limit in pre-releases 12w07a and higher, you appear to be falling in The Void.
 * In SSP, you can interact with the environment when in bed.
 * This includes placing/breaking blocks and using chests, crafting tables, and furnaces.
 * Trying to use the same bed again will cause the "This bed is occupied" message to appear.
 * If you destroy your bed before you finish the sleep animation, you will stand up, but whenever you jump you will take damage, and walking into ladders will suffocate you. This can be fixed by placing your bed again and sleeping or by exiting the game and rejoining.
 * In SMP, if you sleep in a bed to set your spawn point but then break the bed and die, there is a chance you will not go to the original spawn, but rather a new spawn point will be created far from the original. There is no way to reset the spawn back to the original point without mods. (From some testing, it seems that the spawn point is reset to (0,Y,0).)
 * While using the "Quake Pro" FOV level, you can see the inside of your head while sleeping.
 * In Single Player Creative, you can sometimes move your bed while sleeping. This happens often if you sleep in a stronghold/cave with a stronghold nearby, and it is unknown why this happens.
 * At night if your hunger bar is low and you are dying, if you sleep then your health bar will stop lowering and you will not die.
 * In Creative Mode, destroying the foot of a bed will yield no item (as normal). However, hitting the head of the bed will result in the drop of a bed.
 * If a bed a player is sleeping in is broken, the player will have clipping issues and be able to partially walk into walls and take suffocation damage.
 * If you sneak while in a bed, you can see your head and body in a strange way.
 * You can sleep near a Ghast, Slime and a Magma Cube even when they are within 10 blocks of the bed, despite that they are hostile mobs.
 * Walking from a slab to a bed will cause the view to drop for a split second as if you walked off the slab to the block below.
 * If there is a wall on one side of the bed and a ladder in a 1x1 hole on the other side, you will fall down it while sleeping.
 * You can teleport to people in SMP while sleeping if the recipient is not, and you will appear to be lying down when you are teleported.
 * You cannot set beds on slabs that occupy the top half of the block.
 * All mobs can push you out of your bed, but you'll still sleep.
 * If you break the bed as you are sleeping, you will be able to walk through blocks and water as if there is nothing there.
 * When you place a bed in a 1x2 hole in your floor, when items are dropped onto the bed (if it's in a 1x2 hole in your floor), they can't be collected and to fix this, destroy the bed, collect the items and then put the bed back again (useful for SMP, so that players won't collect your items).
 * If you place a bed down and surround it by redstone wire, you will not spawn on the redstone. If you do this and there is a wall around the redstone, you will spawn within the wall and suffocate to death. If you die this way, you will spawn at your original spawn location, with the home bed being "missing or obstructed."