Bed: Difference between revisions

148 bytes added ,  5 April
no edit summary
No edit summary
(3 intermediate revisions by 3 users not shown)
Line 163:
[[File:Sleep Animation.gif|380px|thumb|Player falling asleep {{in|je}}.]]
 
[[File:Ore UI - Sleep Screen MenuAnimation (Bedrock).pnggif|380px|thumb|Player falling asleep {{in|be}}.]]
 
Beds are used by pressing the {{control|use item}} button while looking at the bed.
Line 169:
A player sleeps by {{control|using|using}} a bed during a [[thunderstorm]], or at [[night]] (between 12542 and 23459 ticks in clear weather, when stars appear in the sky, or between 12010 and 23991 ticks in rainy weather). Players can sleep during a thunderstorm even if they are in a biome where it does not rain (i.e. desert). Attempting to use a bed at any other time results in the message "You can sleep only at night or during thunderstorms" {{in|Java}} or "You can only sleep at night and during thunderstorms" {{in|Bedrock}}. A player sleeps in a bed for 101 in-game [[tick]]s, or 5.05 seconds before the time skips to the next day. Sleeping in a bed with the {{cmd|gamerule doDaylightCycle}} set to <code>false</code> 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 [[Overworld]]. Attempting to sleep in a bed in [[the Nether]], [[the End]], and [[custom dimension]]s in which they are disabled causes it to [[explode]] and set [[fire]] to surrounding blocks.<ref>{{bug|mcpe-28723||Exploding bed in the Nether!?|WAI}} This is referenced {{in|Java}} when a player is killed by "Intentional Game Design".</ref> The explosion has power 5, which is stronger than [[TNT]] (4), but not as strong as a charged [[creeper]] or [[end crystal]] (6). The explosion centers on the head part of the bed. [[Villager]]s can sleep normally in any dimension without the bed being blown up.<ref name="villager">{{bug|MC-146515||Villagers can sleep in all dimensions|WAI}}</ref> Upon death from a bed explosion, the [[Death messages|message]] "'''(Player) was killed by <span class="minetip" title=MCPE-28723>{{bug|MCPE-28723|[Intentional Game Design]}}</span>'''" appears. {{IN|Bedrock}}, bed explosions can be disabled by setting {{cmd|gamerule respawnBlocksExplode}} to <code>false</code>; 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" {{in|Java}} or "Bed is too far away" {{in|Bedrock}} appears. To use a bed, a player must be within a distance of 3 blocks {{in|Java}} or 2 blocks {{in|Bedrock}} from the bed.
Line 566:
== Advancements ==
{{load advancements|Sweet Dreams}}
 
== Video ==
{{yt|2VLd3hKi_uQ}}
 
== History ==
Line 644 ⟶ 641:
|{{HistoryLine||1.19.4|exp=Update 1.20|dev=23w07a|[[Planks#Cherry|Cherry planks]] can now be used to craft beds.}}
|{{HistoryLine||1.20|dev=Pre-release 1|Beds of any color can now be dyed into any other color.}}
|{{HistoryLine||1.20.3|exp=Update 1.21|dev=23w45a|Beds now generate in [[trial chambers]].}}
|{{HistoryLine||1.21.2|dev=24w33a|Beds in trial chambers intersections now have randomized colors.}}
 
|{{HistoryLine|pocket alpha}}
|{{HistoryLine||v0.4.0|[[File:Red Bed JE1 BE1.png|32px]] [[File:Red Bed (item) JE1 BE1.png|32px]] Added beds.}}
Line 730:
* If the player places a bed on [[ice]], running over the bed acts like running over ice, similar to slabs.
* When placed using the {{cmd|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.
* Villagers can sleep in the Nether and the End without causing the bed to explode.<ref>{{bug|MC-146515}} Resolved as Works As Intended<name="villager"/ref>
* While the block state used to determine the half of a two-block block such as [[door]]s and double-tall [[flower]]s is called ''half'', in the case of beds this is called ''part''.
* The red bed was the original default bed color. In [[Java Edition 1.12]] and [[Pocket Edition 1.1.0]] version of the game, the default color was changed to white.