Minecraft wiki entry for setworldspawn, associated text: This command can not be used to set the world spawn in any dimension other than the Overworld. If executed in another dimension and using relative coordinates or local coordinates, the command will act as if it succeeded, but the world spawn will not be changed.‌[Java Edition only]