On Player First Join
Introduction
Sourced by the Bedrock Commands Community (BCC) Discord
This system will run your desired commands on the event that a player joins the world for the first time.
System
## Your Commands Here (Examples)
### Give stone pickaxe ×1
give @a[tag=!wiki:joined] stone_pickaxe
### Give bread ×16
give @a[tag=!wiki:joined] bread 16
## Mark as Joined
tag @a[tag=!wiki:joined] add wiki:joined
Here, we have used 2 /give commands as examples, but you can use any command you prefer and as many as you need.
Just make sure to follow the given order and properly apply the tag=!wiki:joined selector argument 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 unless we remove their tag with:
/tag <player> remove wiki:joined
Folder Structure
If using functions, your pack folder structure will be as follows:
- main.mcfunction
- on_first_join.mcfunction
- tick.json
- pack_icon.png
- manifest.json
In this setup, the on_first_join function is called by main.mcfunction, which is executed every tick via tick.json.


