Minecraft wiki entry for Creating_a_challenge_map, associated text: Make a BUD switch next to a bed that detects when a player is in that bed. Hook it up to a command block that teleports the player to a bedrock room that you made!