White Bed sets a respawn point and skips night with a neutral wool color.
Java Edition Guide
Combine three white wool and three matching planks in two horizontal rows.
Place the bed in the Overworld with room around it, then use it at night or during thunder.
Do not sleep in the Nether or End unless you intentionally want the explosion.
Check the target dimension before using this item; behavior can change outside the Overworld.
Use three white wool and three planks in two horizontal rows on a crafting table.
It must be night or thunder, and hostile mobs cannot be too close.
Yes. Beds explode when used in the Nether or the End.