Recently I've been trying to repair a parkour course that I built from a minecraft server so that it will function with working checkpoints, timers etc. in a vanilla world. I haven't worked on commands for years and it's a hell of a lot more advanced than it used to be and there's a few things I wanted to try to make it easier. So far I have working checkpoints, timing system and a way for fall damage to be prevented, however I was hoping there was a way to add a few more things to it.
I know I've seen it in YouTube videos of maps before where you are given a held item (whether it be a book, fishing rod or whatever) and when you right clicked it, it would then teleport you to a certain location. I want something like this for the parkour, so that if the player falls, they can just use it to be instantly teleported back to the checkpoint.
I also wanted to know if there's a way to make the player face in a particular direction when using the checkpoint (at the moment I'm just using pressure plates and a command block that does /spawnpoint) and for most of them it spawns me facing in the wrong direction. Is there anyway to fix this?
Thanks for the help.