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 in the Overworld. If the bed is obstructed, the player spawns at the default world spawning location.

Obtaining [ edit ]

Natural generation [ edit ]

A red bed naturally generates in each igloo.

Beds of various colors generate in village houses, depending on the specific structure and biome:

Desert village houses have cyan, green, or lime beds.

Plains village houses have white or yellow beds.

Savanna village houses have orange, red, or yellow beds.

Snowy taiga‌ [ BE only ] and taiga village houses have blue or purple beds.

and taiga village houses have blue or purple beds. Snowy tundra village houses have blue, red, or white beds.

The red bed was the original default bed color. In later versions of the game, the default color was changed to white; however, using red dye on a white bed results in the classic red colored one.

Breaking [ edit ]

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

Block Bed Hardness 0.2 Breaking time Default 0.35

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

Crafting [ edit ]

Trading [ edit ]

Journeyman-level shepherd villagers sell 1 of 16 beds for 3 emeralds as part of their trades.

Placement [ edit ]

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 Edition, beds require solid blocks below them when placed. However, the bed remains 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.

Usage [ edit ]

Sleeping [ edit ]

The animation when falling asleep.

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

A player sleeps by using a bed during a thunderstorm, 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 only sleep 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.

A player sleeping in a bed is possible only in the Overworld. Attempting to use a bed in the Nether, the End and customized dimensions causes it to explode and set fire to surrounding blocks;[1] The explosion has power 5, which is stronger than TNT (4), but not as strong as a charged creeper or end crystal (6). Villagers can sleep normally in any dimension.[2]

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" appears and the player is prevented from sleeping 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.

If the player has not entered a bed (or died) for 3 in-game days, phantoms can spawn unless /gamerule doInsomnia is set to false .



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

A player can, however, 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. The villager is kicked out of its bed when a player attempts to sleep there.

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

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, the sleeping animation slowly lowers the player into bed.

Once all players in a world are asleep, after 5 seconds (100 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.

Waterlogged beds‌[Bedrock Edition only] cannot be slept in unless the player or villager has the Water Breathing or Conduit Power status effects. Attempting to use a waterlogged bed otherwise does not display any message.[3]

Beds displaying an error above the hotbar is a feature exclusive to beds; other blocks that cannot be used do not display such a message.[4]

Passing the night [ edit ]

Sleeping changes the time of day to sunrise and resets the weather to clear weather. The player wakes up next to the bed, facing west.

Sleeping does not accelerate processes that take place over time such as the growth of crops or smelting. If /gamerule doDaylightCycle is false , the player instead wakes 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, due to for example an explosion or by another player, the player wakes prematurely and the night does not pass.

Setting the spawn point [ edit ]

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

Using a bed in the daytime likewise sets the spawn point, without actually entering the bed.

The message "Respawn point set" is displayed in chat when the respawn point is successfully changed.

The check for a bed is only made when the player respawns. This means that the bed can be destroyed and replaced or even reoriented, but as long as there is an bed present in the same location, the player can respawn there. If a player's bed is absent, or if the area around the bed is made unsuitable for respawning (see below), a message is displayed saying You have no home bed or respawn anchor, or it was obstructed, and the player respawns at the world spawn point.

When choosing where the respawn the player, the northwesternmost (lowest X- and Z-coordinates) location of the seven adjacent to the head of the bed is chosen first. If this location is obstructed, the next choice is to its south (+Z), rather than the east (+X). Only when all seven locations around the head are obstructed are the three remaining ones adjacent to the foot then to be considered.

For a location to be unobstructed, the block at the level of the bed must be air or non-solid (e.g. torches, but not glass) and there must be a space with a solid block below it and two non-colliding blocks for the player to stand in 0-2 blocks below the bed. It does not matter if the bed itself has blocks above it. The bed never spawns the player on or directly below itself even if all other locations are obstructed. If a bed is obstructed, the player's spawnpoint is cleared after they respawn. That is, even if the bed is subsequently made usable again, the player continues to respawn at the world spawn until interacting with the bed again.

Specifically, when interacting with it, the location of the head of the bed is saved as the spawnpoint, and if a bed is in that space (whether it is the foot or the head) then the respawn works. This can be observed by reorienting the bed with its head in the same location. Interacting with it does not produce a "Respawn point set" message as the game doesn't change the saved spawnpoint. If a bed is reoriented so that its foot is in this space, it still functions on the next death, but it can also be interacted with to update the spawnpoint to the new head of the bed and cause a "Respawn point set" message. Attempting the reverse, reorienting the bed so that it overlaps the original location of the foot, results in a respawn at world spawn. However, the location of the foot of the bed is also saved. If the bed is moved so that part of it overlaps the original location of the head, it can be observed that the same locations need to be obstructed to stop spawning. It is possible to respawn 2 blocks away from the bed this way.

Bouncing [ edit ]

Falling onto a bed bounces the player with 66% strength – the bouncing-up velocity is 66% of the impact velocity. The player also takes 50% of normal fall damage.

Baby villagers bounce on beds during the day.

If the player is falling while sleeping requirements are met, and presses use on a bed within reach before hitting the ground, the fall damage is delayed until the player wakes.

Housing [ edit ]

Beds are used to count the number of houses in a village, with one bed equating to one house.

Curing [ edit ]

Beds speed up the curing process of zombie villagers.

Sounds [ edit ]

Java Edition:

Bedrock Edition: [needs in-game testing]

Sound Description Namespaced ID Volume Pitch Sound parameters Volume Pitch Stream Load

on low

memory ? Breaking the block dig.wood ? 0.8 ? ? ? ? ? Falling on the block with fall damage fall.wood ? ? ? ? ? ? ? Mining the block hit.wood ? 0.5 ? ? ? ? ? Jumping from the block jump.wood ? ? ? ? ? ? ? Falling on the block without fall damage land.wood ? ? ? ? ? ? ? Walking on the block step.wood ? ? ? ? ? ? ? Placing the block use.wood ? 0.8 ? ? ? ?

Data values [ edit ]

ID [ edit ]

Java Edition:

Name Namespaced ID Block tags (JE) Item tags (JE) Translation key White Bed white_bed beds beds block.minecraft.white_bed Orange Bed orange_bed beds beds block.minecraft.orange_bed Magenta Bed magenta_bed beds beds block.minecraft.magenta_bed Light Blue Bed light_blue_bed beds beds block.minecraft.light_blue_bed Yellow Bed yellow_bed beds beds block.minecraft.yellow_bed Lime Bed lime_bed beds beds block.minecraft.lime_bed Pink Bed pink_bed beds beds block.minecraft.pink_bed Gray Bed gray_bed beds beds block.minecraft.gray_bed Light Gray Bed light_gray_bed beds beds block.minecraft.light_gray_bed Cyan Bed cyan_bed beds beds block.minecraft.cyan_bed Purple Bed purple_bed beds beds block.minecraft.purple_bed Blue Bed blue_bed beds beds block.minecraft.blue_bed Brown Bed brown_bed beds beds block.minecraft.brown_bed Green Bed green_bed beds beds block.minecraft.green_bed Red Bed red_bed beds beds block.minecraft.red_bed Black Bed black_bed beds beds block.minecraft.black_bed

Name Namespaced ID Block entity bed

Bedrock Edition:

Bed Namespaced ID Numeric ID Translation key Standing bed 26 tile.bed.name Item bed 355 item.bed.black.name

item.bed.red.name

item.bed.green.name

item.bed.brown.name

item.bed.blue.name

item.bed.cyan.name

item.bed.silver.name

item.bed.gray.name

item.bed.pink.name

item.bed.lime.name

item.bed.yellow.name

item.bed.lightBlue.name

item.bed.magenta.name

item.bed.orange.name

item.bed.white.name

Name Savegame ID Block entity ?

Block data [ edit ]

In Bedrock Edition, beds use the following data values:

Block

Lowest two bits value Facing 0 Head facing South 1 Head facing West 2 Head facing North 3 Head facing East Bit flag Meaning 0x4 When 0, the bed is empty

When 1, the bed is occupied 0x8 When 0, the foot of the bed

When 1, the head of the bed

Item

DV Description 0 White Bed 1 Orange Bed 2 Magenta Bed 3 Light Blue Bed 4 Yellow Bed 5 Lime Bed 6 Pink Bed 7 Gray Bed 8 Light Gray Bed 9 Cyan Bed 10 Purple Bed 11 Blue Bed 12 Brown Bed 13 Green Bed 14 Red Bed 15 Black Bed

Block entity [ edit ]

A bed has a block entity associated with it that holds additional data about the block.

Block entity data Tags common to all block entities see Template:Nbt inherit/blockentity/template color :‌ [ Bedrock Edition only ] 0–15: The data value that determines the color of the half-bed block. When a bed is broken, the color of the block entity of the bed's head becomes the color of the bed item when it drops.

Block entity data

Color tag values Data value Description Dec Hex 0 0x0 White bed 1 0x1 Orange bed 2 0x2 Magenta bed 3 0x3 Light blue bed 4 0x4 Yellow bed 5 0x5 Lime bed 6 0x6 Pink bed 7 0x7 Gray bed 8 0x8 Light gray bed 9 0x9 Cyan bed 10 0xA Purple bed 11 0xB Blue bed 12 0xC Brown bed 13 0xD Green bed 14 0xE Red bed 15 0xF Black bed

Block states [ edit ]

Java Edition:

Name Default value Allowed values Description facing north east

north

south

west The direction the head of the bed is pointing.

The same direction the player faces when placing the bed. occupied false false

true True when a player is using the bed. part foot foot

head The half of the bed in the current block.

Bedrock Edition:

Name Default value Allowed values Description facing_bit 0 0

1

2

3 The direction the head of the bed is pointing.

The same direction the player faces when placing the bed. head_bit false false

true If the current block is the head part. occupied_bit false false

true True when a player is using the bed.





Advancements [ edit ]

Icon Advancement In-game description Parent Actual requirements (if different) Namespaced ID Sweet Dreams

Sleep in a bed to change your respawn point Adventure Lie down in a bed. The advancement is granted as soon as the player is in the bed, even if the player does not successfully sleep. adventure/sleep_in_bed

History [ edit ]

The bottom of a bed. Note the invisible leg farthest from the player (before 1.12).

A stack of beds in Beta 1.3_01.

Player being awakened by a zombie.

The message that can be seen when any players attempt to sleep during daytime (before 1.11).

Issues [ edit ]

Issues relating to "Bed" are maintained on the bug tracker. Report issues there.

Trivia [ edit ]

The reason beds explode in the Nether and the End is because Notch found it was the easiest solution to dimension-unique respawning. [8]

If the player quits the game while sleeping, upon return the player wakes 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 /teleport command while another player is sleeping still teleports the sleeping player, but the player wakes immediately.‌ [ Java Edition only ]

command while another player is sleeping still teleports the sleeping player, but the player wakes immediately.‌ If the player places a bed on ice, running over the bed acts like running over ice, similar to slabs.

Before differently colored beds were added, using all 6 planks and all 16 wool combinations, there were 3,456 different ways to craft a bed.

When placed using the /setblock command, only one half of a bed is placed, because beds are two blocks long. A single half can be slept in like a whole bed.

command, only one half of a bed is placed, because beds are two blocks long. A single half can be slept in like a whole bed. Villagers can sleep in the Nether and the End without causing the bed to explode. [9]

If the player crouches while attempting to sleep the player gets inside the sheets.

While the block state used to determine the half of a two-block block such as doors and double-tall flowers is called half , in the case of beds this is called part .

, in the case of beds this is called . Due to how beds work in the Nether, players can exploit the method to clear out large chunks of blocks in the dimension, especially when finding ancient debris.

With the same exploding method in the End, player need approximately 4 beds to defeat an Ender Dragon, if healing is enabled, a 5th bed is required.

Players and villagers do not drown or take damage from lava while in a bed, even if the bed is covered in lava.

Gallery [ edit ]

A sleeping player in multiplayer.

The message that can be seen after a failed attempt to respawn at the spawn point set by a bed.

A crater created by attempting to sleep in the Nether.

A crater created by attempting to sleep in the End.

The bottom of the bed with the 3D legs.

All the different color variants.

An unemployed villager and a butcher villager goes to sleep, unaware of the zombies outside.