Minecraft - How to set spawnpoint to a player standing on a gold block

//ads -- adsterra.com -- native banner
?>
I'm making a parkour map and I wanna know how to set a player's spawnpoint who is standing on a gold block. If you could tell me that would be very helpful!
P.S. If this involves a redstone timer then could you please tell me how to make the fastest one?
Thanks in advance! :D
Pictures about "Minecraft - How to set spawnpoint to a player standing on a gold block"



How do you test for player standing on a certain block?
Next, let's explore how to reset the spawn point to a set of coordinates in the game. To reset a spawn point to a specific set of coordinates for a player, type the player name as well as the XYZ coordinates for the new spawn point. Type the command in the chat window and press the Enter key to run the command.HOW TO MAKE A SPAWNPOINT USING A COMMAND BLOCK! ( 2019 PS4 )
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Karolina Grabowska, Oliver Sjöström, Alina Blumberg, Charlotte May