Minecraft wiki entry for Command_blocks_and_functions, associated text: It's true that the /spawnpoint command can be useful because you don't have to wait for the night to create a checkpoint, but sometimes you may want to have a BUD switch connected to the bed or something similar, so that you don't have to type the command in every time. To do this, you just need to have a discreet pressure plate connected to a block with the /time set 18000 command, and it will set the time to night so the player can sleep.