/respawn: sets current location to the world spawn. Applies to everyone without a bed/respawn anchor.
https://www.youtube.com/watch?v=n8NM9BUBmF8
https://minecraft.fandom.com/wiki/Tutorials/Installing_a_data_pack
Step 2: Before starting the server, select the datapack,
Now click on "Extract all"
If a prompt comes up, just click on "next"
You should now have a second folder

Now we can delete the datapack.zip file
Open it
Open the "data" folder
Then "sive"
"functions"
and open tick.json in notepad. It should show
Except for 1 thing. In the Minecraft world, run the /respawn command as an admin. This will set your current location as the world spawn point. Everyone without a bed or a Respawn anchor will spawn here. And now You're done!
Let me know if you use this~!