We are currently performing an upgrade to our software. This upgrade will bring MediaWiki from version 1.31 to 1.33. While the upgrade is being performed on your wiki it will be in read-only mode. For more information check here.
Bed
Transparent |
Yes |
---|---|
Luminance |
0 |
Blast resistance |
1 |
Hardness |
0.2 |
Tool |
Any tool |
Renewable |
Yes |
Stackable |
No |
Flammable |
No |
Catches fire from lava | |
Drops |
Itself |
Block entity ID |
bed |
Data values |
|
Namespaced ID |
See § Data values |
Tags |
#beds
|
![]() |
“ |
|
„ |
— Duncan Geere[1] |
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. If the bed is obstructed, the player spawns at the default world spawning location.
Contents
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 can have cyan, green, or lime beds.
- Plains village houses can have white or yellow beds.
- Savanna village houses can have orange, red, or yellow beds.
- Snowy taiga[BE only] and taiga village houses can have blue or purple beds.
- Snowy tundra village houses can have blue, red, or white beds.
Obtaining[edit]
Beds can be mined with any tool, or without a tool.
Block | Bed | |
---|---|---|
Hardness | 0.2 | |
Breaking time | ||
Hand | 0.35 |
A bed also drops itself as an item when pushed by a piston.
Crafting[edit]
Ingredients | Crafting recipe | Description |
---|---|---|
Matching Wool + Any Planks |
Wool color must match. Planks do not need to match. | |
White Bed + Matching Colored Dye |
White beds can be re-dyed using dyes. | |
Any Bed + Matching Dye |
A bed of any color can be re-dyed using dyes.[Bedrock and Education editions only] | |
Any Dyed Bed + Bleach |
Removes the color from the bed.[Bedrock Edition only] |
Trading[edit]
Journeyman-level shepherd villagers sell 1 of 16 beds for 3 emeralds as part of their trades.
Usage[edit]
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 and Legacy Console editions, 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.
Sleeping[edit]
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 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 and the End causes it to explode and set fire to surrounding blocks; a bed will also explode if used in a nether biome in the overworld. 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 (including in Creative mode[LCE 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.
Mob | Prevent the player from sleeping |
---|---|
Blaze | Yes |
Chicken Jockey | When hostile |
Creeper | Yes |
Drowned | Yes |
Endermite | Yes |
Enderman | Yes |
Ender Dragon | No |
Evoker | Yes |
Ghast | No |
Giant | Yes |
Guardian Elder Guardian | Yes |
Illusioner | Yes |
Killer Bunny | No |
Magma Cube | No |
Pillager | Yes |
Phantom | Yes |
Ravager | Yes |
Shulker | No |
Silverfish | Yes |
Skeleton Stray Wither Skeleton | Yes |
Spider Cave Spider Spider Jockey | Yes |
Slime | No |
Vex | Yes |
Vindicator | Yes |
Witch | Yes |
Wither | Yes |
Zombie Zombie Villager Husk | Yes |
Zombie Pigman | When hostile |
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. In Java and Bedrock editions the villager is kicked out of 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.
Waterlogged beds[Bedrock and Legacy Console editions 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 will not display any message.[3]
Beds displaying an error above the hotbar is a feature exclusive to beds; other blocks which 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.
In Java and Bedrock editions, using a bed in the daytime likewise sets the spawn point, without actually entering the bed.
In Java and Bedrock editions, the message "Respawn point set" is displayed in chat when the respawn point is successfully changed.
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 at the time the player respawns. 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 at the moment 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 does not matter if the bed itself has blocks above it.
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]
Sound | Subtitle | Namespaced ID | Subtitle ID | Source | Pitch | Volume | Attenuation distance |
---|---|---|---|---|---|---|---|
Block breaking | block.wood.hit
|
subtitles.block.generic.hit
|
Blocks | 0.5 | 0.25 | 16 | |
Block broken | block.wood.break
|
subtitles.block.generic.break
|
Blocks | 0.8 | 1.0 | 16 | |
Block placed | block.wood.place
|
subtitles.block.generic.place
|
Blocks | 0.8 | 1.0 | 16 | |
Footsteps | block.wood.step
|
subtitles.block.generic.footsteps
|
Blocks | 1.0 | 0.15 | 16 | |
No subtitle | block.wood.fall
|
(Plays when fallen on from a height) | Blocks | 0.75 | 0.5 | 16 |
Data values[edit]
ID[edit]
Bed | Namespaced ID |
---|---|
White | white_bed
|
Orange | orange_bed
|
Magenta | magenta_bed
|
Light Blue | light_blue_bed
|
Yellow | yellow_bed
|
Lime | lime_bed
|
Pink | pink_bed
|
Gray | gray_bed
|
Light Gray | light_gray_bed
|
Cyan | cyan_bed
|
Purple | purple_bed
|
Blue | blue_bed
|
Brown | brown_bed
|
Green | green_bed
|
Red | red_bed
|
Black | black_bed
|
Block entity | bed
|
Bed | Namespaced ID | Numeric ID |
---|---|---|
Block | bed
|
26 |
Item | 355 |
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.
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]
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. |
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. |
Achievements[edit]
Icon | Achievement | In-game description | Actual requirements (if different) | Availability | Xbox points earned | Trophy type (PS) | |||
---|---|---|---|---|---|---|---|---|---|
Xbox | PS | Bedrock | Nintendo | ||||||
Change of Sheets | Dye your bed a different color | Yes | Yes | No | Wii U, Switch | 20G | Bronze |
Advancements[edit]
Icon | Advancement | In-game description | Parent | Actual requirements (if different) | Namespaced ID |
---|---|---|---|---|---|
![]() | Sweet Dreams | 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]
Java Edition Beta | |||||
---|---|---|---|---|---|
November 26, 2011 | Originally, crying obsidian was intended to act as a block to reset spawn points, until beds were introduced. | ||||
1.3 | ![]() ![]() | ||||
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 changes only if Leave Bed is clicked and the function is limited to multiplayer. | ||||
1.4_01 | Beds now act as a respawn point as intended. | ||||
1.6 | Test Build 3 | Trying to sleep in a bed in the Nether causes it to explode. | |||
1.7 | The bed side texture has been moved in the texture pack file. | ||||
Java Edition | |||||
1.0.0 | Beta 1.9 Prerelease 6 | Beds no longer spawn monsters, instead, trying to sleep when monsters are around displays a message saying You may not rest now, there are monsters nearby. | |||
1.2.4 | Cats in standing position now purposely go and sit on beds. | ||||
1.5 | ? | Beds check their biome for detonation rather than just their dimension. | |||
1.7.2 | 13w37a | The item form of block ID ![]() | |||
1.8 | 14w29a | Now displays the cracking animation on top and bottom. | |||
14w33a | Makes sounds when placed, and plays logical sounds when stepped on and broken.[5] | ||||
1.9 | 15w43a | A bed generates inside igloos. | |||
1.11 | 16w32a | 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. | |||
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" is now displayed. | ||||
1.12 | 17w06a | Neutral zombie pigmen no longer prevent the player from sleeping in a bed. | |||
13 March 2017 | Jeb mentions colored beds for 1.12. | ||||
17w15a | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | ||||
Beds now appear 3D in the inventory. | |||||
Beds now have 3D legs from ![]() ![]() | |||||
Beds are made bouncy, though they do not completely reduce all fall damage. | |||||
Beds are now a block entity. | |||||
17w17a | The four legs of a bed are now each textured separately, and their model is different. The texture is also slightly changed. | ||||
1.13 | 17w47a | The different block states for the bed ID have been split up into their own IDs. | |||
Beds now require solid blocks below them, or they break into an item. Previously, a bed needed to be placed on solid blocks, but the blocks could later be removed. | |||||
Prior to The Flattening, this block's numeral ID was 26, and the item's 355. | |||||
18w07a | Sleeping is now important to keep Phantoms from spawning. | ||||
18w20a | Players in creative mode can now sleep even if monsters are nearby. | ||||
18w22a | Beds no longer require supporting blocks below them; they do not break into an item if said blocks are removed, and can be directly placed on top of non-solid blocks. | ||||
pre2 | Changed the "You can only sleep at night" message to "You can sleep only at night and during thunderstorms." | ||||
1.14 | 18w43a | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | |||
![]() | |||||
18w44a | Cats can now sleep in empty beds or sit on their owner when their owner is sleeping. | ||||
18w50a | ![]() | ||||
19w08a | All mobs can now sleep in beds using commands. | ||||
19w11a | Villagers will now claim beds and sleep in them during the night. | ||||
1.15 | 19w35a | If a player tries to sleep in a bed that is occupied by a villager, that villager is now kicked out of the bed. | |||
19w36a | Trying to sleep in a bed during the daytime now sets the player's spawn location to that bed. | ||||
pre2 | Successfully changing a spawn point using a bed now displays a message in chat. | ||||
Pocket Edition Alpha | |||||
0.4.0 | ![]() | ||||
0.9.0 | build 1 | Beds no longer restore health in normal difficulty, making food a more reliable survival-needed resource. | |||
Added smooth lighting to beds. | |||||
0.11.0 | build 8 | Improved lighting on beds. | |||
0.12.1 | build 1 | Tamed ocelots while standing now purposely go and sit on beds. | |||
0.16.0 | build 1 | Beds now make a sound when placed, identical to blocks like stone.[7] | |||
Pocket Edition | |||||
1.0.0 | ? | Sleeping now ends weather. | |||
Beds are now generated in igloos. | |||||
alpha 0.17.0.2 | ![]() | ||||
1.1.0 | alpha 1.1.0.0 | Added the other 15 colors of beds. The former bed is now renamed to red bed. | |||
Added a new animation when sleeping. | |||||
Beds in igloos are now white in ice plains and brown in cold taiga. | |||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | |||||
Placement, stepping and breaking sounds are now correctly wooden.[7] | |||||
Bedrock Edition | |||||
1.4.0 | beta 1.2.14.2 | Beds can now be waterlogged and require water breathing to sleep in. | |||
beta 1.2.20.1 | Colored beds can now be turned into white beds by adding bleach. Works only if Education Edition features are turned on. | ||||
1.6.0 | beta 1.6.0.1 | Sleeping is now important to keep Phantoms from spawning. | |||
1.8.0 | beta 1.8.0.8 | Cats can now sleep in empty beds or sit on their owner when their owner is sleeping. | |||
1.10.0 | beta 1.10.0.3 | Various beds now generate in new villages. | |||
Villagers can now sleep by occupying a bed, which prevent players from using it. | |||||
Igloos now generate with red beds. | |||||
Beds are now used to count the number of available houses in villages. | |||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | |||||
1.11.0 | beta 1.11.0.4 | Beds can now be bought from shepherd villagers. | |||
1.13.0 | ? | Players now succeed in attempting to sleep on villager-occupied beds, kicking the villager off. | |||
Legacy Console Edition | |||||
TU1 | CU1 | 1.00 | Patch 1 | 1.0.1 | ![]() |
TU12 | Cats in standing position now purposely go and sit on beds, preventing players from using them. | ||||
TU43 | CU33 | 1.36 | Patch 13 | Changed the sleeping animation. | |
TU54 | CU44 | 1.52 | Patch 24 | 1.0.4 | Added the other 15 colors of beds. 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. |
TU60 | CU51 | 1.64 | Patch 30 | 1.0.11 | Changed the sleeping animation again. |
TU69 | 1.76 | Patch 38 | Sleeping is now important to keep phantoms from spawning. | ||
Beds can now be waterlogged and require Water Breathing to sleep in. | |||||
PlayStation 4 Edition | |||||
1.83 | Reverted the sleeping animation to how it was before 1.64. | ||||
1.90 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | ||||
1.91 | Various beds now generate in new villages. | ||||
Villagers can now sleep by occupying a bed, which prevents players from using it. | |||||
Beds are now used to count the number of available houses in villages. | |||||
Beds can now be bought from shepherd villagers. | |||||
New Nintendo 3DS Edition | |||||
0.1.0 | ![]() | ||||
1.9.19 | Added the other 15 colors of beds. The former bed is now renamed to red bed. | ||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | |||||
Education Edition | |||||
1.0 | ![]() | ||||
1.0.1 | Added the other 15 colors of beds. The former bed is now renamed to red bed. | ||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | |||||
1.0.27 | Colored beds can now be turned into white beds by adding bleach. | ||||
1.12 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Issues[edit]
Issues relating to "Bed" are maintained on the bug tracker. Report issues there.
Trivia[edit]
- 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] - If the player places a bed on ice, running over the bed acts like running over ice, similar to slabs.
- Before differently coloured 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, since beds are two blocks wide. 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.[8]
- 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 inconsistently called part.
Gallery[edit]
References[edit]
- ↑ "Taking Inventory: Bed" – Minecraft.net
- ↑ MC-146515
- ↑ MCPE-35802
- ↑ MC-160479
- ↑ MC-66347 – "Beds make incorrect sounds" resolved as "Fixed".
- ↑ MC-11963 – "bed hind legs not rendered" resolved as "Fixed".
- ↑ a b MCPE-10077 – "Incorrect sounds on beds" resolved as "Fixed".
- ↑ MCPE-43221