What beds do in Minecraft
A bed has two jobs. It lets you skip the night (and thunderstorms), and it sets the point where you respawn after you die. Both happen when you sleep, so a bed is usually the first thing players build a base around.
You sleep by right-clicking a placed bed at the right time. If the conditions are met, the screen fades, time jumps to morning, and any rain or thunder clears. If they aren’t met, you get a short message telling you why, and nothing happens.
Beds are cheap, stackable in 16 colors, and craftable within your first day of a new world. They also keep the dangerous flying mob called the phantom away, which is reason enough to sleep most nights.
How to craft a bed
You need three wool and three wooden planks. Place the three wool across the top row of a crafting table and the three planks across the middle row. The wool color decides the bed color. Three white wool gives a white bed, three red wool gives a red bed, and so on.
The planks can be any wood type and can even be mixed, since they don’t affect the result. Wool comes from shearing or killing sheep, or from crafting four string into one white wool if you have no sheep nearby.
You can recolor a finished bed instead of crafting a new one. Put any bed plus one dye anywhere in the crafting grid and you get that bed in the new color. This is handy when you find a bed in a village and want it to match your build.
Bed colors
There are 16 bed colors, one for each dye. The color is purely decorative and has no effect on sleep, spawn setting, or anything else. A lime green bed works exactly like a black one.
How sleeping works
To sleep, you have to meet a few conditions at once:
- It has to be night or a thunderstorm. During a clear day, right-clicking a bed only gives the message “You can only sleep at night.”
- No hostile mobs can be within about eight blocks of the bed. If a zombie or creeper is close, you’ll see “You may not rest now, there are monsters nearby.”
- You have to be standing next to the bed, not several blocks away, or you’ll get “You can only sleep at night, or during thunderstorms” or a “too far away” prompt depending on version.
- The space above the bed has to be clear. A bed buried under a solid block counts as obstructed.
Night runs from roughly the time the sun fully sets to just before dawn. In game-time terms that’s about tick 12,542 to 23,460 out of a 24,000-tick day. You don’t need to track the exact number; if the sky is dark and stars are out, you can usually sleep.
Thunderstorms are the exception to the night rule. During a thunderstorm you can climb into bed even in the middle of the day, because the sky is dark enough to count. Sleeping then ends the storm and skips to morning.
What happens when you sleep
Once you lie down and the required players are asleep, three things happen. Time advances to sunrise, the weather resets so rain and thunder stop, and your respawn point is set to that bed. You wake up in the morning standing next to where you slept.
Beds and your spawn point
Sleeping in a bed sets your personal spawn point. When you die, you reappear at that bed instead of the world spawn. The game confirms this with the message “Respawn point set” the first time you sleep in a new bed.
There’s a catch. If the bed is destroyed or blocked when you die, the spawn link breaks and you respawn at the world spawn point instead, with the message “Your home bed was missing or obstructed.” Keep the area around your bed clear and don’t mine the bed by accident.
You can also set your spawn during a thunderstorm in the daytime, since you’re allowed to sleep then. The spawn point updates every time you successfully sleep in a different bed, so your last bed used is always your active respawn location.
Sleeping in multiplayer
On a server or in a shared world, sleeping through the night used to require every player to be in bed at the same time. That changed in Java Edition with the playersSleepingPercentage game rule.
This rule sets the share of online players who must sleep before the night skips. The default is 100, meaning everyone has to sleep. Set it to 50 and only half the players need to be in bed. Set it to 0 and a single sleeping player skips the night for the whole server. You change it with /gamerule playersSleepingPercentage 50 if you have operator permissions.
When enough players are asleep but not all, the game shows a message like “3/5 players sleeping” so everyone can see how many more are needed. Bedrock Edition handles shared sleep differently and does not expose this exact game rule, so behavior there depends on your world settings.
Beds, phantoms, and insomnia
Phantoms are the gray flying mobs that swoop down and attack at night. They don’t spawn at random. They appear only after a player has gone three or more in-game days without sleeping, a state the game tracks as insomnia.
Once you pass roughly three days awake, phantoms can spawn at night when you’re outdoors with open sky above you. Sleeping resets that counter to zero, so a player who sleeps regularly almost never sees a phantom. If you’re getting harassed by them, the fix is simple: get into a bed.
Dying also resets the insomnia counter, but sleeping is the cheaper option. Phantom membrane, dropped by phantoms, is the only way to repair an elytra without an anvil and mending, so some players intentionally skip sleep to farm them.
Why beds explode in the Nether and the End
This trips up a lot of new players. Beds only work as beds in the Overworld. If you try to use one in the Nether or the End, it explodes with roughly the force of a charged creeper and sets the area on fire.
The explosion isn’t a bug. It’s a deliberate design choice to stop easy resting in those dimensions. The blast is strong enough to kill an unarmored player instantly and to break nearby blocks.
Players turn this into a tactic. Because the explosion does heavy damage, a stack of beds is a common weapon against the ender dragon and especially the wither, both of which can survive ordinary attacks for a long time. The trick is to place a bed, stand around a corner or behind an obsidian pillar, and right-click it to set off the blast while shielding yourself from the damage. It takes practice and it’s risky, but it’s faster than chipping away with a sword.
Other bed behavior worth knowing
Beds are slightly bouncy. Fall onto one and you bounce a little, and the bed cuts your fall damage by about two thirds, so a bed at the bottom of a drop can save your life.
A bed takes up two blocks of space, the head and the foot, so you need a flat two-block-long spot to place one. You can’t place a bed in a one-block gap.
Villagers use beds too. A village counts its population partly by how many beds are claimed, and villagers need a bed each to breed. If you’re building up a village, every extra bed you place raises the cap on how many villagers can live there.
Frequently asked questions
Can you sleep during the day in Minecraft?
Only during a thunderstorm. On a clear or rainy day, the game refuses and tells you that you can only sleep at night. A thunderstorm darkens the sky enough to count as sleepable time.
Why can’t I sleep when monsters are nearby?
If a hostile mob is within about eight blocks of your bed, the game blocks sleep with the “monsters nearby” message. Light up the area, wall off your bedroom, or kill the mob, then try again.
Does sleeping heal you?
No. Sleeping skips the night and sets your spawn, but it does not restore health or hunger. Healing comes from a full hunger bar over time or from effects like Regeneration.
What happens if my bed is destroyed?
Your spawn link breaks. The next time you die you respawn at the world spawn point instead of your bed, and you’ll see a message saying your home bed was missing or obstructed. Sleep in a new bed to set a fresh spawn point.
Can you pick a bed back up?
Yes. Break a placed bed with any tool or your hand and it drops as an item you can pick up and place elsewhere. Beds are not lost when you mine them, unlike some other crafted blocks.
How many beds do villagers need?
One per villager. A villager needs an unclaimed bed to sleep and to breed, so the number of valid beds in a village sets the ceiling on its population.
The short version
Make a bed early, place it somewhere walled off and well lit, and sleep through most nights. You’ll skip the dark hours, keep a reliable respawn point, and never deal with phantoms. Just remember to leave the bed in the Overworld, because lying down in the Nether or the End ends very differently.