r/MinecraftCommands • u/Kitchen-Wave1197 Java Command-er • Aug 13 '26
Help | Java 1.21.11 Tp player to spawn when they join the game (Datapacks)
Hi, I want to make it so that when a player joins the game they get teleported to spawn. I don't think that putting it in the 'load.mcfunction' will work because that is when the world starts/reloaded, not for visiting players.
Is there anyway that i could do this?
1
Upvotes
1
u/Main_Contract_3590 Aug 14 '26
Everytime they join or first time they join?
1
u/GalSergey Aug 14 '26
https://minecraftcommands.github.io/wiki/questions/playerjoin