We have begun migration of most wikis to our new host, Amazon Web Services. All but the top 100 wikis are in read-only mode until the migration is complete. Estimated completion: End of Week.

Bed

From Minecraft Wiki
(Redirected from Gray Bed)
Jump to: navigation, search
Bed
White Bed.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

PC: No, but catches fire from lava
PE: No

First appearances

See History

Drops

Itself

Block entity id

bed

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

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

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

Block
Bed
Hardness 0.2
Breaking time[note 1]
Hand 0.35
  1. Times are for unenchanted tools in seconds.

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

Crafting[edit | edit source]

Ingredients Crafting recipe Description
Matching Wool +
Any Wood Planks






















































































Wool color must match. Wood planks do not need to match.
White Bed +
Matching Dye









































White bed can be re-dyed using dyes.[Java Edition only]
Any Bed +
Matching Dye
























































A bed of any color can be re-dyed using dyes.[Bedrock and Legacy Console editions only]

Natural generation[edit | edit source]

One bed naturally generates in an igloo. The bed is red[Java and Legacy Console editions only]/white if generated in ice plains, light blue if generated in frozen or not river and brown if generated in a cold taiga.[Bedrock Edition only]

Usage[edit | edit source]

Beds are 9/16th of a block high, one more pixel than half a block, so it allows the player to walk up onto other blocks while on top of the bed, but not to walk onto the bed from a level below.

Placement[edit | edit source]

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

Beds placed in the Nether or the End will explode when the player tries to sleep, 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 ender crystal (6).

Sleeping[edit | edit source]

The animation when falling asleep.

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

It must be nighttime – between 12541 and 23458 ticks inclusive, to be exact. Beds can also be used regardless of time during a thunderstorm. Attempting to use a bed at any other time will result in the message You can only sleep at night.

The player must be close to the bed. 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.

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 until the monsters leave or are killed. "Monsters" include the majority of hostile mobs, except killer rabbits, slimes, magma cubes, ghasts, shulkers and ender dragons. It also includes endermen, aggravated zombie pigmen and spiders, which are neutral mobs.

The player also cannot sleep in a bed occupied by another player, which will result in the message, This bed is occupied.

The player also cannot sleep while on fire or poisoned.

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

Passing the night[edit | edit source]

Pressing the Leave Bed button changes the time of day to sunrise, and resets the weather to clear weather. It does not speed up processes which take place over time such as the growth of crops or smelting.

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

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 clicked 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 | edit source]

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 clicks on the bed before hitting the ground, the fall damage will be delayed until the player wakes up.

Data values[edit | edit source]

ID[edit | edit source]

Bed ID Name Numerical ID
Block bed 26
Item bed 355

Block data[edit | edit source]

See also: Data values
Bits Values
0x0 Head facing South
0x1 Head facing West
0x2 Head facing North
0x3 Head facing East
0x4 (bit flag) When 0, the bed is empty
When 1, the bed is occupied
0x8 (bit flag) When 0, the foot of the bed
When 1, the head of the bed


Block entity[edit | edit source]

See also: Block entity format

  • Block entity data
    • Tags common to all block entities see Template:Nbt inherit/blockentity/template

    •  color: 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.
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 state[edit | edit source]

See also: Block states
Name Value Description

 facing
north
south
east
west
The direction the head of the bed is pointing.
The same direction the player faces when placing the bed.

 occupied
true
false
True when a player is using the bed.

 part
head
foot
The half of the bed in the current block.

Achievements[edit | edit source]

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 Yes 20G Bronze

Advancements[edit | edit source]

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

Video[edit | edit source]

History[edit | edit source]

Beta
? Originally, crying obsidian was intended to act as a block to reset spawn points, until beds were introduced.[1]
1.3
Player being awakened by a zombie.

Added beds. 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.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.
1.4_01 Beds now act as a respawn point as intended.
1.6 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.
Official release
1.0.0 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.
1.2.4 Cats 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.2 13w37a Block ID 26 (bed) was removed from the /give command.
1.8 14w29a Now displays the cracking animation on top and bottom.
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" 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.
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.
1.12 17w06a Neutral zombie pigmen no longer prevent the player from sleeping in a bed.
13 March 2017 Jeb mentions coloured beds for 1.12.
17w15a














Dyed beds added. The former bed is now renamed to red bed.


Beds now appear 3D in the inventory.
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.
17w17a The four legs of a bed are now each textured separately, and their model is different. The texture is also slightly changed.
Pocket Edition Alpha
0.4.0
Added beds.
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.16.0 build 1 Now have a placement sound, although incorrect.[2]
Pocket Edition
1.0 Sleeping now ends weather.
Beds are now generated in igloos.
Leave Bed 1.0.jpg The Leave Bed button has a new texture.
1.1 build 1














Added the other 15 colors of bed. The former bed is now renamed to red bed.

Added new animation when sleeping.
Beds in igloos are now white in ice plains and brown in cold taiga.
Beds now bounce the player two blocks up, and have a 3D legs.
Legacy Console Edition
TU1 CU1 1.00 Patch 1 Patch 1
Added beds.
TU12 Cats in standing position will now purposely go and sit on beds, preventing players from using them.
TU54 CU44 1.52 Patch 24 Patch 4














Added the other 15 colors of bed. The former bed is now renamed to red bed. Beds are now dyeable and bounce the player two blocks up, and have a 3D legs.

Issues[edit | edit source]

Issues relating to “Bed” are maintained on the issue tracker. Report issues there.

Trivia[edit | edit source]

  • 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 /tp 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.
  • If you sleep when the /gamerule doDaylightCycle is turned off, you will fall asleep, but wake up at night.
  • Using all 6 wood and all 16 wool combinations, there are 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.

Gallery[edit | edit source]

References[edit | edit source]