Even when using /execute as
, a function that is run with /schedule
always runs as "Server", not as the real executioner.
MC-146603 was closed as "Invalid", but it was never mentioned that scheduled functions are supposed to be executed as the server (blog post here). This is inconsistent with every other command.
Comments 13
Out of curiosity, if schedule were called using @s within the context of an execute command, does that get resolved when calling schedule, or when the function gets run?
I think @unknown's discord comment, as shown by |~tryashtar], is WAI/WF source enough. In fact, it directly states it doesn' t keep it because it was too hard to serialize. Why is/was this not resolved as such? I also recon this would be extremely problematic if "@s" were to vanish (IE unloaded, or player left server); how'd that be handled intuitively?
I definitely remember that a dev has mentioned that commands scheduled by
/schedule
need to run as the server because of technical reasons. However, I don't remember anymore where that was.