How to set the world spawn to a player?
I am making a minigame in minecraft, and would like to know if there is a way to set a world spawn to a player, so that the compass points to them.
3 Answers
In a repeating command block, use the command:
execute at <player identifier> setworldspawn ~ ~ ~ 1 try /execute at <player> run setworldspawn ~ ~ ~
/execute at <player> run setworldspawn ~ ~ ~