I have a realm that i'm trying to make a welcome message appear only for the player who joined, each time they join. I've looked at some old videos and tried to update the code, but to no success. The best I could come up with is: /execute if score @p[scores={JoinGame=1}] JoinGame Ive already created a scoreboard that uses the score "minecraft.custom:minecraft.leave_game"
I'm pretty new to the new command block system, so a lot of this doesn't make much sense to me. Any help will be greatly appreciated!
execute as @a[scores={leave_game=1}] run title @s title "Welcome Back!"
. Then, chained to that block putexecute as @a[scores={leave_game=1}] run scoreboard players set @s leave_game 0
. When a player rejoins, they have aleave_game
score of one, so the message is shown and their score is set back to 0. This won't work the first time someone joins. For that use an ID system. – Nik3141 Aug 2 '19 at 17:50