Minecraft - How to set spawnpoint to a player standing on a gold block
Run on a clock:
execute @a ~ ~ ~ detect ~ ~-1 ~ gold_block 0 spawnpoint @p ~ ~ ~
Run on a clock:
execute @a ~ ~ ~ detect ~ ~-1 ~ gold_block 0 spawnpoint @p ~ ~ ~