Loading Commands

Have you ever wanted to execute command on a player who joined world for the first time? If yes, this tutorial will be useful for you.

Features:

  • Execute command on player who joined world for the first time
  • No player.json
  • No experimental gameplay needed

Concept

Idea of this tutorial is simple:

tick.json runs function that executes a command on everyone who doesn't have a special tag and then adds this tag.

tick.json

You can understand how tick.json works here:

tick.json explanation

BP/functions/tick.jsonCopy
{
    "values":[
        "load_commands"
    ]
}
1
2
3
4
5

Function

To show that it works, tellraw command were used

BP/functions/load_commands.mcfunctionCopy
tellraw @a[tag=!joined] {"rawtext":[{"text":"This is greeting message."}]}
tag @a add joined
1
2

Result

Contributors

MedicalJewel105