#How to run command on Player's initial spawn?

1 messages · Page 1 of 1 (latest)

rain schooner
#

I'm trying to run a command on a player when that player joins the world for the very first time. I got this far from an online example, but I'm having trouble changing it to my needs, the command isn't working, what have I done wrong?

dry swallow
#

nothing was wrong with him destructuring

marsh yoke
dry swallow
#

no.

#

he didnt retrieve the player instance.

marsh yoke
#

So mines was right?!

dry swallow
#

i didnt say yours was wrong.

#

I just noticed you got rid of the destructuring

dry swallow
#

there's scoreboard apis btw, you dont need to use commands.

marsh yoke
dry swallow
#

just note that commands can be less performant than native methods.

#

in this case I doubt it'll be that much of a problem

ivory badge
#

In some cases

#

Seems that structure manages is less performant than a run command

glossy lagoon
rain schooner
glossy lagoon
#

it...????

rain schooner
#

sorry I clicked enter too early

glossy lagoon
#

no pronlem