Bed

A bed is a block that allows a player to sleep and to reset their spawn point to within a few blocks of the bed.

Obtaining
Beds can be mined with any tool, or without a tool.

A bed will also drop itself as an item when pushed by a piston.

Natural generation
One bed naturally generates in an igloo. In the Java and Legacy Console editions, the bed is red. In Bedrock Edition, it will be white if generated in Snowy Tundra, light blue if generated in a River or Frozen River biome, and brown if generated in a Snowy Taiga. A white or yellow bed can generate in some plains village houses as well.

Placement
Beds take up two blocks of space. Placement requires at least 2 blocks from the player's facing direction. When placed, the foot will be placed on the block selected and will face away from the player. Like certain other blocks, beds cannot be placed on non-solid blocks. The bed will remain in place if its supporting blocks are removed.

Explosions
Beds placed in the Nether and the End will explode when the player presses while looking at the bed, and set fire to surrounding blocks. The explosion has power 5, which is stronger than TNT (4), but not as strong as a charged creeper or end crystal (6).

Sleeping


Beds are used by pressing the button while looking at the bed.

In order for a player to sleep, it must be nighttime – between 12541 and 23458 ticks inclusive, to be exact. The start of this period is indicated by stars appearing in the sky. During a thunderstorm, beds can also be used regardless of time. Attempting to use a bed at any other time will result in the message "You can sleep only at night and during thunderstorms".

The player must be close to the bed to sleep. If the player is close enough to click on the bed, but not close enough to sleep in it, the message "You may not rest now, the bed is too far away" will be displayed. In Bedrock Edition, the message "Bed is too far away" will be displayed.

The player cannot sleep if a "monster" 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 (even in Creative mode) until the monsters leave or are killed. Most hostile mobs, with the exception of some, as well as some neutral mobs, will prevent players from sleeping. The table below shows if the mob prevents or does not prevent the player from sleeping. , the player will instead wake up in the night.

To skip the night in multiplayer, all players in the Overworld must be in bed at the same time. Pressing the Leave Bed button is not necessary in this case.

If the bed is destroyed while the player is in it, by for example an explosion or by another player, it will cause the player to wake up prematurely, and the night will not pass.

If the player is in a bed and the night passes without sleep, the player will be dealt half a heart of damage.

Setting the spawn point
Once a player has entered a bed, their spawn point is set to the location of that bed.

The bed is in no way tied to a player's spawn point - the game only checks for the presence of a bed at a player's spawn point when the respawn button is selected from the death screen. The bed may be destroyed, replaced, reoriented, etc. and will still serve as a spawn point for players so long as it exists when the player tries to respawn. If a player's bed is destroyed, or if the area around the bed is made unsuitable for respawning, a message is displayed saying Your home bed was missing or obstructed, and the player will respawn at the world spawn point.

For a bed to be usable as a spawn point, the player must be able to stand next to the bed at the same level as it. There must be a solid block at the same 'floor' level as the bed, with 2 transparent blocks of space (for example, air) for the player to stand in, in one of the ten blocks that surround the bed. It doesn't matter if the bed itself has blocks above it.

Bouncing
Falling onto a bed will bounce the player with 66% strength – the bouncing-up velocity will be 66% of the impact velocity. The player will also take only 50% of normal fall damage.

If the player is falling, but presses on the bed before hitting the ground, the fall damage will be delayed until the player wakes up. This will only be the case if the sleeping requirements are met.

Block data
In Bedrock Edition, beds use the following data values:

History
{{History||1.2|| Beds are added to the game files, but are unobtainable. {{History||1.3| Added beds. At the time, the only color was red. Sleeping in an area potentially exposed to monsters could cause players to wake up early, with a skeleton or zombie spawned next to them.}} {{History||1.4|Sleeping in a bed now resets your spawn position, though does not work for most users. Apparently, at the moment the spawn point unintentionally only changes if Leave Bed is clicked and the function is limited to multiplayer.}} {{History||1.4_01|Beds now act as a respawn point as intended.}} {{History||1.6|snap=Test Build 3|Trying to sleep in a bed in the Nether causes it to explode.}} {{History||1.7|The bed side texture has been moved in the texture pack file.}} {{History|java}} {{History||1.0.0|snap=?|Beds no longer spawn monsters, instead, trying to sleep when monsters are around will display a message saying You may not rest now, there are monsters nearby.}} {{History||1.2.4|Cats in standing position will now purposely go and sit on beds, preventing players from using them.}} {{History||1.5|snap=?|Beds check their biome for detonation rather than just their dimension.}} {{History||1.7.2|snap=13w37a|The item form of block ID {{InvSprite|Bed Block}} 26 (bed) was removed from the game. It can no longer exist in inventories, only as a placed block.}} {{History||1.8|snap=14w29a|Now displays the cracking animation on top and bottom.}} {{History||1.8|snap=14w33a|Makes sounds when placed, and plays logical sounds when stepped on and broken. }} {{History||1.9|snap=15w43a|A bed generates inside igloos.}} {{History||1.11|snap=16w32a|The messages "You can only sleep at night", "You may not rest now, there are monsters nearby", and "This bed is occupied" will now appear on top of the hotbar, the place that the message "Press to dismount" will also appear when you're riding a mob.}} {{History|||snap=16w33a|If the player is close enough to click on the bed, but not close enough to sleep in it, the message "You may not rest now, the bed is too far away" will now be displayed.}} {{History||1.12|snap=17w06a|Neutral zombie pigmen no longer prevent the player from sleeping in a bed.}} {{History|||snap=13 March 2017|slink={{tweet|jeb_|841311279784591361}}|Jeb mentions colored beds for 1.12.}} {{History|||snap=17w15a|{{InvSprite|White Bed}}{{InvSprite|Orange Bed}}{{InvSprite|Magenta Bed}}{{InvSprite|Light Blue Bed}}{{InvSprite|Yellow Bed}}{{InvSprite|Lime Bed}}{{InvSprite|Pink Bed}}{{InvSprite|Gray Bed}}{{InvSprite|Light Gray Bed}}{{InvSprite|Cyan Bed}}{{InvSprite|Purple Bed}}{{InvSprite|Blue Bed}}{{InvSprite|Brown Bed}}{{InvSprite|Green Bed}}{{InvSprite|Black Bed}} Dyed beds added. The former bed is now renamed to red bed. {{History|||snap=17w17a|The four legs of a bed are now each textured separately, and their model is different. The texture is also slightly changed.}} {{History||1.13|snap=17w47a|The different block states for the  ID have been split up into their own IDs.|Beds now require a block below them, or they will break into an item. Previously, a bed needed to be placed on a block, but the block could later be removed. {{History|||snap=18w07a|Sleeping is now important to keep Phantoms from spawning.}} {{History|||snap=18w20a|Players in creative mode can now sleep even if monsters are nearby.}} {{History|||snap=pre2|Changed the "You can only sleep at night" message to "You can sleep only at night and during thunderstorms."}} {{History|pocket alpha}} {{History||0.4.0| Added beds.}} {{History||0.9.0|snap= build 1|Beds no longer restore health in normal difficulty, making food a more reliable survival-needed resource. {{History||0.11.0|snap=build 8|Improved lighting on beds.}} {{History||0.16.0|snap=build 1|Now make a sound when placed, identical to blocks like stone. }} {{History|pocket}} {{History||1.0|snap=?|Sleeping now ends weather. {{History||1.1|snap=build 1|{{InvSprite|White Bed BE}}{{InvSprite|Orange Bed BE}}{{InvSprite|Magenta Bed BE}}{{InvSprite|Light Blue Bed BE}}{{InvSprite|Yellow Bed BE}}{{InvSprite|Lime Bed BE}}{{InvSprite|Pink Bed BE}}{{InvSprite|Gray Bed BE}}{{InvSprite|Light Gray Bed BE}}{{InvSprite|Cyan Bed BE}}{{InvSprite|Purple Bed BE}}{{InvSprite|Blue Bed BE}}{{InvSprite|Brown Bed BE}}{{InvSprite|Green Bed BE}}{{InvSprite|Black Bed BE}}{{InvSprite|Red Bed BE}} Added the other 15 colors of bed. The former bed is now renamed to red bed. {{History|bedrock}} {{History||1.4|snap=beta 1.2.20.1|Colored Bed can be turned into White bed by adding Bleach. Only works if you have education edition features turned on.}} {{History|console}} {{History||xbox=TU1|xbone=CU1|ps=1.00|wiiu=Patch 1|switch=Patch 1| Added beds.}} {{History||xbox=TU12|xbone=CU1|ps=1.00|wiiu= Patch 1|Cats in standing position will now purposely go and sit on beds, preventing players from using them.}} {{History||xbox=TU54|xbone=CU44|ps=1.52|wiiu=Patch 24|switch=Patch 4|{{InvSprite|White Bed BE}}{{InvSprite|Orange Bed BE}}{{InvSprite|Magenta Bed BE}}{{InvSprite|Light Blue Bed BE}}{{InvSprite|Yellow Bed BE}}{{InvSprite|Lime Bed BE}}{{InvSprite|Pink Bed BE}}{{InvSprite|Gray Bed BE}}{{InvSprite|Light Gray Bed BE}}{{InvSprite|Cyan Bed BE}}{{InvSprite|Purple Bed BE}}{{InvSprite|Blue Bed BE}}{{InvSprite|Brown Bed BE}}{{InvSprite|Green Bed BE}}{{InvSprite|Black Bed BE}}{{invSprite|Red Bed BE}} Added the other 15 colors of bed. The former bed is now renamed to red bed and has had a slight color change. Beds are now dyeable and bounce the player two blocks up, and have a single 3D legs.}} {{History|New 3DS}} {{History||0.1.0|Added Beds.}} {{History|foot}}
 * {{InvSprite|Red Bed}} Beds now appear 3D in the inventory.
 * Red Bed.png Beds now have 3D legs, and the top of the beds are no longer mirrored.
 * Beds are made bouncy, though they do not completely reduce all fall damage.
 * Beds are now a block entity.}}
 * Prior to The Flattening, this block's numeral ID was 26, and the item's 355.}}
 * Added smooth lighting to beds.}}
 * Beds are now generated in igloos.
 * Leave Bed 1.0.jpg The Leave Bed button has a new texture.}}
 * Added new animation when sleeping.
 * Beds in igloos are now white in ice plains and brown in cold taiga.
 * Red Bed.png Beds now bounce the player two blocks up, and have a 3D legs.
 * Placement, stepping and breaking sounds are now correctly wooden. }}

Trivia

 * If the world is quit while sleeping, upon return the player will be awake beside the bed.
 * The player's avatar clips just slightly into the bed if they have something in their hand and their feet protrude off the edge.
 * Using the command while another player is sleeping will still teleport the sleeping player.
 * If you place a bed on ice, running over the bed acts like running over ice, similar to slabs.
 * Using all 6 wood and all 16 wool combinations, there are 3,456 different ways to craft a bed.
 * When placed using the command, only one half of a bed will be placed, since beds are two blocks wide. A single half can be slept in like a whole bed.
 * Though bottom of a bed has a transparent space, it is not possible to target anything through this space.