On First Join
system
Introduction
Sourced By Bedrock Commands Community Discord
This system will run your desired commands on the event that a player joins the world for the first time.
System
mcfunctionCopy
yaml
#Your Commands Here (examples)
/give @a [tag=!joined] stone_pickaxe
/give @a [tag=!joined] bread 16 1
/tag @a [tag=!joined] add joined
1
2
3
4
5
6
2
3
4
5
6
Here we have used 2 /give
commands as example but you can use any command you prefer and as many as you require.
Just make sure to follow the given order and properly add the selector argument tag=!joined
as shown for your desired commands.
Explanation
When the player joins the world for the first time, they will not have the joined tag.
Once we run our desired commands for players without the tag, they will be given the tag immediately and the commands will not repeat for them again unless we remove their tag with: /tag <player> remove joined
Contributors
We use cookies to improve your experience. By continuing to use this site, you agree to our use of cookies. See our Privacy Policy for more information.