Beds were added to Minecraft in February 2011, in beta version 1.3, alongside redstone repeaters and sandstone slabs. Originally, a creepy-sounding block called "crying obsidian", made of obsidian and lapis, was going to be put into the game to let the user change their spawn point. But then beds came along instead. Beds have changed in functionality a little over the years. Originally, sleeping in an area where monsters could get to you would sometimes cause you to wake up early, under attack from a skeleton or a zombie. This functionality was removed in version 1.0, and today instead it's impossible to sleep if you’re in an area with monsters around.

White beds generate in some plains and snowy tundra village houses. Yellow beds generate in some plains and savanna village houses. Orange beds generate in some savanna village houses. Blue beds can generate in some snowy tundra, taiga, and snowy taiga village houses. Red beds generate in some snowy tundra and savanna villager houses. Purple beds generate in some taiga and snowy taiga village houses. Cyan, green, and lime beds generate in some desert village houses.[verify]

Beds require two blocks of floor space. Placement requires at least 2 blocks from the player's facing direction. When placed, the foot of the bed is placed on the block selected and the head of the bed on the block farther away from the player. In Bedrock and Legacy Console editions, beds require solid blocks below them when placed. However, the bed will remain in place if its supporting blocks are later removed. In Java Edition, beds do not require supporting blocks and can be placed anywhere, provided there is enough room.

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

A player sleeps by use a bed during a thunderstorm,‌[JE & BE only] or at night (between 12541 and 23458 ticks, when stars appear in the sky). Attempting to use a bed at any other time results in the message "You can sleep only at night and during thunderstorms"‌[JE only] or "You can sleep only at night".‌[BE only] A player sleeps in a bed for 101 in-game ticks, or 5.05 seconds before the time skips to the next day. Sleeping in a bed with the gamerule doDaylightCycle set to false results in the player being kicked out of the bed after the 101 ticks, but does not change time of the world to day.

Sleeping in a bed is possible only in the Overworld. Attempting to use a bed in the Nether and the End causes it to explode and set fire to surrounding blocks, the bed also explode if used at nether biome in overworld. The explosion has power 5, which is stronger than TNT (4), but not as strong as a charged creeper or end crystal (6).

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"‌[JE only]/"The bed is too far away"‌[BE only] appears.

If a "monster" is within 8 blocks of the bed horizontally (in the X- and Z-axis), and 5 blocks vertically (in the Y-axis), the message "You may not rest now, there are monsters nearby" will appear and the player will be prevented from sleeping (including in Creative mode‌[Legacy Console Edition only]) until the monsters leave or are killed. Most hostile mobs, as well as some neutral mobs prevent players from sleeping, as shown in the table below.

↑ abZombie pigmen (either on foot or riding a chicken) prevent sleeping only while they are hostile.

The player also cannot sleep in a bed occupied by another player, resulting in the message, "This bed is occupied".

In Bedrock and Java editions,[untilJE 1.15 & BE 1.13.0] a player also cannot sleep in a bed being used by a villager. The player may first wake the villager (pressing use on the villager) and then quickly enter the bed before the villager can lie down again. The villager reclaims the bed after the player wakes. In Java and Bedrock editions,‌[upcoming:JE 1.15 & BE 1.13.0] the villager simply gets up from its bed when a player attempts to sleep there.

A player also cannot sleep while on fire or while poisoned.

If all sleeping requirements are met and the player enters a bed, the player is positioned in the bed. The player falls asleep as the screen fades to black. In Bedrock Edition and Legacy Console Edition, the sleeping animation slowly lowers the player into bed.

Once all players in a world are asleep, after 5 seconds (101 ticks) the time of day changes to sunrise.

During this time, the chat window is focused, and the player can leave the bed by clicking the Leave Bed button.

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

In Java and Bedrock editions,‌[upcoming:JE 1.15]using a bed in the daytime will likewise set the spawn point, without actually entering the bed.

The bed is in no way tied to a player's spawn point - the game checks only for the presence of a bed at a player's spawn point when the respawned. The bed may be destroyed, replaced, reoriented, etc. and still serve as a spawn point for players so long as there is a bed in that location 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 respawns 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.

Sleeping in a bed now resets your spawn position, though does not work for most users. Apparently, at the moment the spawn point unintentionally changes only if Leave Bed is clicked and the function is limited to multiplayer.

The messages "You can only sleep at night", "You may not rest now, there are monsters nearby", and "This bed is occupied" now appears on top of the hotbar, the place that the message "Press <whatever your sneak key is> to dismount" also appears when you're riding a mob.

In other languages

Content is available under CC BY-NC-SA 3.0 unless otherwise noted.Minecraft content and materials are trademarks and copyrights of Mojang and its licensors. All rights reserved.
This site is a part of Wikia, Inc. and is not affiliated with Mojang.