Bed

From Minecraft Wiki
(Redirected from Lime Bed)
Jump to: navigation, search
Bed
White Bed TextureUpdate.pngOrange Bed.pngMagenta Bed.pngLight Blue Bed.pngYellow Bed.pngLime Bed.pngPink Bed.pngGray Bed.pngLight Gray Bed.pngCyan Bed.pngPurple Bed.pngBlue Bed.pngBrown Bed.pngGreen Bed.pngRed Bed.pngBlack Bed.png
Type

Block Entity

Physics

No

Transparency

Yes

Luminance

No

Blast resistance

1

Hardness

0.2

Tool

Any tool

Renewable

Yes

Stackable

No

Flammable

JE/LCE: No, but catches fire from lava
BE: No

Drops

Itself

Block Entity ID

bed

Data values
Block
dec: 26 hex: 1A bin: 11010
Item
dec: 355 hex: 163 bin: 101100011
Namespaced ID

See § Data values

Painting.png
This page would benefit from the addition of more images.
Please remove this notice once you've added suitable images to the article. The specific instructions are: Renders of the Texture Update beds

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 will spawn at the default world spawning location.

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 will also drop 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.‌[Java Edition only]
Any Bed +
Matching Dye


A bed of any color can be re-dyed using dyes.‌[BedrockEducation and Legacy Console editions only]
Any Dyed Bed +
Bleach


Removes the color from the bed.‌[Bedrock and Education editions only]

Natural generation[edit]

One bed naturally generates in an igloo. In Java and Legacy Console editions, the bed is red.

In Java Edition and Bedrock Edition, 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 village houses.[verify]

Trading[edit]

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

Usage[edit]

Placement[edit]

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[edit]

Beds placed in the Nether and the End will explode when the player presses use 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[edit]

The animation when falling asleep.

Beds are used by pressing the use item 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"‌[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 it will skip to the next day. Sleeping in a bed with the gamerule doDaylightCycle set to false will result in the player being kicked out of the bed after the 101 ticks, but will not change time of the world to day.

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‌[Legacy Console Edition only]) 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.

Mob Prevent the player from sleeping 
Blaze Yes
Chicken Jockey[1] Partial
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
Phantom 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[1] Partial
  1. a b Zombie pigmen (either on foot or riding a chicken) only prevent sleeping while they are hostile.

The player also cannot sleep in a bed occupied by another player or villager which will result in the message, This bed is occupied. The player cannot sleep while on fire or poisoned either.

If all sleeping requirements are met and the player enters a bed, the player will be positioned in the bed. The player will be seen above the sheets, and the screen will slowly fade to black. In Bedrock Edition and Legacy Console Edition, the sleeping animation will slowly lower the player into bed. If all players in a world are asleep, after 5 seconds (100 ticks) it will be turned to daytime.

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 has the Water Breathing status effect.

Passing the night[edit]

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

It does not speed up processes which take place over time such as the growth of crops or smelting. If /gamerule doDaylightCycle is false, 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.

Setting the spawn point[edit]

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[edit]

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 use 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.

Baby villagers will bounce on beds during the day.

Housing[edit]

Beds are used to count the number of houses in a village.‌[Bedrock and Java editions only]

Data values[edit]

ID[edit]

Java Edition:

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

Bedrock Edition:

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 states[edit]

Java Edition:

Name Default value Allowed values Description
facingnortheast
north
south
west
The direction the head of the bed is pointing.
The same direction the player faces when placing the bed.
occupiedfalsefalse
true
True when a player is using the bed.
partfootfoot
head
The half of the bed in the current block.

Achievements[edit]

Icon Achievement In-game description Actual requirements (if different) Availability Xbox points earned Trophy type (PS)
Xbox PS Bedrock Nintendo
Change of SheetsDye your bed a different colorYesYesNoWii U, Switch20GBronze

Advancements[edit]

Icon Advancement In-game description Parent Actual requirements (if different) Internal ID
Advancement-plain-raw.png Sweet DreamsChange your respawn pointAdventureLie down in a bed. The advancement will be granted as soon as the player is in the bed, even if the player does not successfully sleep.minecraft:adventure/sleep_in_bed

History[edit]

Java Edition Beta
November 26, 2011Originally, crying obsidian was intended to act as a block to reset spawn points, until beds were introduced.
1.2 Beds are added to the game files, but are unobtainable.
1.3Red Bed Revision 1.png 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.
1.4Sleeping 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.
1.4_01Beds now act as a respawn point as intended.
1.6Test Build 3Trying to sleep in a bed in the Nether causes it to explode.
1.7The bed side texture has been moved in the texture pack file.
Java Edition
1.0.0Beta 1.9 Prerelease 6Beds 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.
1.2.4Cats in standing position will now purposely go and sit on beds, preventing players from using them.
1.5?Beds check their biome for detonation rather than just their dimension.
1.7.213w37aThe item form of block ID 26 (bed) was removed from the game. It can no longer exist in inventories, only as a placed block.
1.814w29aNow displays the cracking animation on top and bottom.
14w33aMakes sounds when placed, and plays logical sounds when stepped on and broken.[1]
1.915w43aA bed generates inside igloos.
1.1116w32aThe 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 <whatever your sneak key is> to dismount" will also appear when you're riding a mob.
16w33aIf 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.
1.1217w06aNeutral zombie pigmen no longer prevent the player from sleeping in a bed.
13 March 2017Jeb mentions colored beds for 1.12.
17w15a Dyed beds added. The former bed is now renamed to red bed.
Beds now appear 3D in the inventory.
Red Bed.png Beds now have 3D legs,[2] 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.
17w17aThe four legs of a bed are now each textured separately, and their model is different. The texture is also slightly changed.
1.1317w47aThe different block states for the bed 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.
Prior to The Flattening, this block's numeral ID was 26, and the item's 355.
18w07aSleeping is now important to keep Phantoms from spawning.
18w20aPlayers in creative mode can now sleep even if monsters are nearby.
pre2Changed the "You can only sleep at night" message to "You can sleep only at night and during thunderstorms."
1.1418w43aChanged the texture of all beds.
18w50aChanged the texture of all beds again.
Pocket Edition Alpha
0.4.0Red Bed Revision 1.png Added beds.
0.9.0build 1Beds no longer restore health in normal difficulty, making food a more reliable survival-needed resource.
Added smooth lighting to beds.
0.11.0build 8Improved lighting on beds.
0.16.0build 1Now make a sound when placed, identical to blocks like stone.[3]
Pocket Edition
1.0.0?Sleeping now ends weather.
Beds are now generated in igloos.
alpha 0.17.0.2Leave Bed 1.0.jpg The Leave Bed button has a new texture.
1.1.0alpha 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.
Red Bed.png Beds now bounce the player two blocks up, and have 3D legs.
Placement, stepping and breaking sounds are now correctly wooden.[3]
Bedrock Edition
1.4.0beta 1.2.14.2Beds can now be waterlogged and require water breathing to sleep in.
beta 1.2.20.1Colored beds can now be turned into white beds by adding bleach. Only works if Education Edition features are turned on.
1.10.0beta 1.10.0.3Various 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.
Changed the texture of all beds.
1.11.0beta 1.11.0.4Beds can now be bought from shepherd villagers.
Legacy Console Edition
TU1CU11.00Patch 1Patch 1Red Bed Revision 1.png Added beds.
TU12Cats in standing position will now purposely go and sit on beds, preventing players from using them.
TU54CU441.52Patch 24Patch 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.
New Nintendo 3DS Edition
0.1.0Added beds.

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 will 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 /teleport command while another player is sleeping will still teleport the sleeping player, but the player will wake up immediately.‌[Java Edition only]
  • If the player place 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 will be 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.[4]

Gallery[edit]

References[edit]

  1. MC-66347 – "Beds make incorrect sounds" resolved as "Fixed".
  2. MC-11963 – "bed hind legs not rendered" resolved as "Fixed".
  3. a b MCPE-10077 – "Incorrect sounds on beds" resolved as "Fixed".
  4. MCPE-43221