Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Bed

From SAS Gaming Wiki

Template:For Template:Infobox block A bed is a Minecraft:dyeable utility Minecraft:block that allows a Minecraft:player in the Minecraft:Overworld to sleep through the Minecraft:night and reset their Minecraft:spawn point to within a few blocks of the bed, as long as it is not broken or obstructed.

Obtaining

Breaking

No tool can accelerate the breaking process of bed.<ref>Template:Bug</ref> Template:Breaking row Bed drops itself when it's destroyed.

Natural generation

Igloo

Village

Trial chambers

  • Beds can generate inside the Minecraft:trial chambers as any color inside various intersections. Each bed has its color randomized.

Crafting

Template:Crafting Template:Crafting Template:Crafting

Trading

Template:Trade sources

Usage

Sleeping

File:Sleep Animation.gif
Player falling asleep Template:In
File:Ore UI - Sleep Screen Animation (Bedrock).gif
Player falling asleep Template:In

Beds are used by pressing the Template:Control button while looking at the bed.

A player sleeps by Template:Control a bed during a Minecraft:thunderstorm, or at Minecraft:night (between 12523 and 23477 ticks in clear weather, when stars appear in the sky, or between 12002 and 23998 ticks in rainy weather). Players can sleep during a thunderstorm even if they are in a biome where it does not rain (e.g. desert). Attempting to use a bed at any other time results in the message "You can sleep only at night or during thunderstorms" Template:In or "You can only sleep at night and during thunderstorms" Template:In. A player sleeps in a bed for 101 in-game Minecraft:ticks, or 5.05 seconds before the time skips to the next day. Sleeping in a bed with the Template:Cmd 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 Minecraft:Overworld. Attempting to sleep in a bed in Minecraft:the Nether, Minecraft:the End, and Minecraft:custom dimensionsTemplate:Only in which they are disabled causes it to Minecraft:explode and set Minecraft:fire to surrounding blocks.<ref>Template:Bug This is referenced Template:In when a player is killed by "Intentional Game Design".</ref> The explosion has power 5, which is stronger than Minecraft:TNT (4), but not as strong as a charged Minecraft:creeper or Minecraft:end crystal (6). The explosion centers on the head part of the bed. Minecraft:Villagers can sleep normally in any dimension without the bed being blown up.<ref name="villager">Template:Bug</ref> Upon death from a bed explosion, the message "(Player) was killed by Template:Bug" appears. Template:IN, bed explosions can be disabled by setting Template:Cmd to false; this still prevents beds to be used in invalid dimensions.

The player must be close to the bed to sleep. If the player is close enough to interact with the bed, but not close enough to sleep in it, the message "You may not rest now, the bed is too far away" Template:In or "Bed is too far away" Template:In appears. To use a bed, a player must be within a distance of 3 blocks Template:In or 2 blocks Template:In from the bed.

If a Minecraft:monster is within 8 blocks of the bed head 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.

Mob Prevent the player from sleeping
Template:El Template:El
Template:EntityLink
Template:EntityLink
Template:EntityLink
Template:EntityLink
Template:EntityLink
Template:EntityLink
Template:EntityLink
Template:EntityLink
Template:EntityLink
Template:EntityLink
Template:EntityLink
Template:EntityLink
Template:EntityLink
Template:EntityLink
Template:EntityLink
Template:EntityLink
Template:EntityLink
Template:EntityLink
Template:EntityLink
Template:EntityLink
Template:EntityLink
Template:EntityLink
Template:EntityLink
Template:EntityLink
Template:EntityLink
Template:EntityLink
Template:EntityLink
Template:EntityLink
Template:EntityLink
Template:EntityLink
Template:EntityLink
Template:Tc Template:Tc
Template:EntityLink Template:Tc Template:Tc
Template:EntityLink
Template:EntityLink
Template:Tc Template:Tc
Template:EntityLink
Template:EntityLink
Template:Tc Template:Tc
Template:EntityLink
Template:EntityLink
Template:EntityLink
Template:EntityLink
Template:EntityLink
Template:EntityLink
Template:EntityLink
Template:Tc Template:Tc
Template:EntityLink
Template:EntityLink
Template:Tc Template:Tc

Template:Notelist

If the player has not entered a bed and didn't die for 3 in-game days, Minecraft:phantoms can spawn unless Template:Cmd is set to Template:Cd. Template:IN, this can be verified by checking if the "Time Since Last Rest" Minecraft:statistic is greater than 1.00 h.

Taking damage from any source while in a bed causes the player to wake; this means players cannot sleep while on fire, while poisoned, or while starving, because the damage wakes them before they can fully fall asleep. Attacks from other players and hostile mobs also wake the player in this way, although the latter is rarely seen due to hostile mobs typically preventing the bed from being entered in the first place.

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 Template:Control 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.

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. Template:IN, 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. (time 0)

During this time, the chat window is focused, and the player can leave the bed by clicking the Template:Btn button.

Minecraft:Waterlogged bedsTemplate:Only cannot be slept in unless the player or villager has the Minecraft:Water Breathing or Minecraft:Conduit Power status effects. Attempting to use a waterlogged bed otherwise does not display any message.<ref>Template:Bug</ref>

Template:IN, beds displaying an error above the hotbar is a feature exclusive to beds. Template:IN, the bed sends the message in the Minecraft:chat; other blocks that cannot be used do not display such a message.<ref>Template:Bug</ref>

The process for determining where to put the player after waking up is the same as for determining where to respawn the player after death (see below). The player attempting to sleep in a bed with no suitable wakeup positions (achievable by interacting with the bed from underneath it), such that the player will suffocate upon waking up, will result in the message "This bed is obstructed". The player always wakes up facing the head of the bed.

Villagers always wake up on top of the bed, meaning they can suffocate if there isn't enough room above the bed.

Passing the night

Sleeping changes the time of day to sunrise and resets the Minecraft:weather cycle, changing the weather to clear conditions. Template:IN, the weather cycle resets only during rainy or snowy weather.

Sleeping does not accelerate processes that take place over time such as the growth of Minecraft:crops or Minecraft:smelting.

To skip the night in multiplayer, all players in the Minecraft:Overworld must be in bed at the same time. Pressing the Template:Btn button is not necessary in this case. The percentage of players that need to sleep to skip the night can be customized with the game rule Template:Cd. Sleeping in a bed while Template:Cd is set to higher than 100 displays the message "No amount of rest can pass this night." and disables passing the night.

Villagers are unable to skip the night by sleeping in beds, unlike players.

Players and villagers do not drown or take damage from lava while in a bed, even if the bed is covered in lava. However, 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.

Template:IN, on Minecraft:Peaceful difficulty only, sleeping in a bed fully restores the player's Minecraft:health.

Setting the spawn point

Once a player has entered a bed (or right clicked the bed during daytime), their spawn point is set to the location of that bed. Multiple players can set their spawn point on a single bed.

Template:Ctrl a bed in the daytime likewise sets the spawn point, without actually entering the bed.

When a bed explodes, it does not set the spawn point.

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

The check for a bed is made only when the player respawns. This means that the bed can be destroyed and replaced or even reoriented, but as long as there is a 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" Template:In or "Your home bed was missing or obstructed" Template:In, and the player respawns at the Minecraft:world spawn point.

When choosing where to respawn the player, the two blocks to the immediate left and right of the head of the bed are considered first. Which block is chosen between the two corresponds to which direction the player was facing when they last interacted with the bed to set their spawn point; For example, a bed facing west will respawn the player on the south side of the bed if they are facing towards the north while setting their spawn point, and vice versa. If the player is perfectly aligned with the bed when the spawn point is set, the right side of the bed takes priority. Interacting with the bed again will still update which side of the bed is chosen for respawning, even if the location of the spawn point itself does not change.

Once a side is chosen, if the block immediately on the chosen side of the head of the bed is obstructed, the next block to be checked is chosen moving in a clockwise (right side) or counterclockwise (left side) direction around the bed. If all of the 10 blocks immediately adjacent to the bed are obstructed, the block above the head of the bed is checked, followed by the block above the foot of the bed. The player is always respawned facing the head of the bed, the same as for waking up.

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. Putting a slab one block above a bed can act as a two block tall space, as the bed is half a block tall. The bed never spawns the player directly below itself even if all other locations are obstructed. If a bed is obstructed, the player's spawn point 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 spawn point, 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 spawn point. If a bed is reoriented so that its foot is in this space, it still functions on the next respawn, but it can also be interacted with to update the spawn point 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

Falling onto a bed bounces the player with 66% strength – the bouncing-up velocity is 66% of the impact velocity. The player also takes less fall damage when bouncing on a bed. The player's fall distance is set to 50% of the actual distance fallen, which results in the player taking half of the normal fall damage.

Baby villagers bounce on beds during the day.

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

A player can bounce on a bed while another player or villager is sleeping on it without waking the player or the villager up.

Villagers can be pushed onto beds, as the bed is half a block tall.

Curing

Each bed in the vicinity of a zombie villager has a chance to speed up the process of curing the zombie villager. Minecraft:Iron bars (such as in a prison cell) also have this effect.

Placement

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. Template:IN, beds require solid blocks below them when placed. However, the bed remains in place if its supporting blocks are later removed. They also cannot be placed on transparent blocks. Template:IN, beds do not require supporting blocks and can be placed anywhere, provided there is enough room.

Explosions

Template:See also Because beds explode when a player attempts to sleep in Minecraft:the Nether or Minecraft:the End, they can be used as any other explosion, to demolish blocks or deal damage, with the advantage of being extremely cheap compared to Minecraft:TNT or Minecraft:end crystals, and being instantaneous. Explosions can be used, for example, to mine for Minecraft:ancient debris or to kill the Minecraft:ender dragon.

Template:IN, beds do not explode if Template:Cd is set to Template:Cd.

Piston interactivity

Beds are destroyed when a Minecraft:piston tries to push them. They are not pulled by Minecraft:sticky pistons.

Sounds

Generic

Template:Sound table/Block/Wood

Unique

Template:Edition Template:SoundTable

Template:Edition: Template:SoundTable

Data values

ID

Template:Edition: Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table

Template:Edition: Template:ID table Template:ID table Template:ID table

Metadata

Template:See also Template:IN, bed items use the following data values:

Template:Dvt Template:Dvt Template:Dvt Template:Dvt Template:Dvt Template:Dvt Template:Dvt Template:Dvt Template:Dvt Template:Dvt Template:Dvt Template:Dvt Template:Dvt Template:Dvt Template:Dvt Template:Dvt Template:Dvt

Block states

Template:See also

Template:El: Template:Bst Template:Bst Template:Bst

Template:El: Template:Bst Template:Bst Template:Bst

Block data

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

Template:El: Template:See also

<section begin="block data"/>

<section end="block data"/>

Template:El:

See Minecraft:Bedrock Edition level format/Block entity format.

Achievements

Template:Load achievements

Advancements

Template:Load advancements

History

Template:More sounds Template:See asset history Template:See technical block

Development

Template:HistoryTable

Java Edition

Template:HistoryTable

Bedrock Edition

Template:HistoryTable

Legacy Console Edition

Template:HistoryTable

New Nintendo 3DS Edition

Template:HistoryTable

Minecraft Education

Template:HistoryTable

Issues

Template:Issue list

Trivia

  • The reason beds explode in the Nether and the End is because Notch found it was the easiest solution to dimension-unique respawning.<ref>Template:Tweet, in response to Template:Tweet</ref>
    • Dimension-unique respawning was eventually implemented via the Minecraft:respawn anchor, and gained command support at the same time. Despite this, beds and respawn anchors still explode in invalid dimensions.
  • If the player quits the game while sleeping, upon return the player wakes up beside the bed.
  • Using the Template:Cmd command while another player is sleeping still teleports the sleeping player, but the player wakes immediately.Template:Only
  • If the player places a bed on Minecraft:ice, running over the bed acts like running over ice, similar to slabs.
  • When placed using the Template:Cmd 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.<ref name="villager"/>
  • While the block state used to determine the half of a two-block block such as Minecraft:doors and double-tall Minecraft:flowers is called half, in the case of beds this is called part.
  • The red bed was the original default bed color. In Minecraft:Java Edition 1.12 and Minecraft:Pocket Edition 1.1.0 version of the game, the default color was changed to white.
  • This is the only item to have a 3D inventory texture in Minecraft:Java Edition, but a 2D texture in Minecraft:Bedrock Edition.

Gallery

Screenshots

Bedrock Edition and Minecraft Education

Mojang images

In other media

See also

References

Template:Reflist

Navigation

Template:Navbox dyed block Template:Navbox blocks Template:Navbox combat

Minecraft:cs:Postel Minecraft:de:Bett Minecraft:es:Cama Minecraft:fr:Lit Minecraft:hu:Ágy Minecraft:it:Letto Minecraft:ja:ベッド Minecraft:ko:침대 Minecraft:lzh:床 Minecraft:nl:Bed Minecraft:pl:Łóżko Minecraft:pt:Cama Minecraft:ru:Кровать Minecraft:th:เตียง Minecraft:uk:Ліжко Minecraft:zh:床