Currently, any commands scheduled with /schedule are executed as the server, not as the person who ran the command. This makes it difficult to schedule something that you want to happen to a specific entity; you have to somehow keep track of which entity scheduled what. It would be much easier if the game remembers this for you.
For example, if I run this command:
execute as SomePlayer positioned 20 64 20 run schedule function example:myfunction 1s
All commands in the function example:myfunction will be executed as the player SomePlayer at the position (20, 64, 20).
Please sign in to leave a comment.
1 Comments