There is no command, you just have to build a bed in the crafting bench, 3 wood along the bottom line, 3 wool along the line above, then place the bed down. Once you have done that just stand next to it and right click. There are some weird Mob glitches when trying to sleep so make sure you are away from walls.
Chat with our AI personalities
Use the command:/toggledownfallOr just sleep in a bed
The only way to get a command block in Minecraft is to have cheats on in your world.Once you generated a world like that, type in the following command:/give [your Minecraft character's name] 137 [amount up to 64]That will give you a command block.
Place a bed and right click on it to sleepIf cheats are enabled press 't' and type the command /time set day
/toggledownfall to stop or make rain in minecraft
If you die in Minecraft and have not placed a bed, you will respawn at your original spawn point. Wherever that may be...