Similar to the vanilla /execute command, but for Meteor Client.
Terminal Operations
-
run <command>: The Meteor Client command to execute -
send <command>: The regular command to executeModifiers
-
if <script>: Only proceeds with execution if the Starscript script is evaluated astrue. -
unless <script>: Only proceeds with execution if the Starscript script is not evaluated astrue. -
delayed (ticks|millis|seconds) <delay>: Suspends execution for the given delay. Subcommands followingdelayedwill also be evaluated after the delay. Using a delay withmillisorsecondswill cause the following subcommands and command to be executed offthread, so take care to use only thread safe commands. -
repeat <times> instant: Immediately forks command execution X times. -
repeat <times> (ticks|millis|seconds) <delay>: Do command execution X times with the given delay between executions. Using a delay withmillisorsecondswill cause the following subcommands and command to be executed offthread, so take care to use only thread safe commands. Usedelayedto add an initial delay. -
store (result|success) <variable>: Stores either theintresult orbooleansuccess of the command specified in therunsubcommand to the Starscript variable specified invariable
.schedule (ticks|millis|seconds) <delay> <command>
See .execute delayed documentation for more information
.starscript eval <expression>evaluates the expression and outputs the result.starscript get <variable>gets the given variable from Starscript globals and outputs the value
Executed commands have 2 return values that can be accessed after execution:
- success, either
trueorfalsedepending on whether the command executed successfully (failures cause a red chat error) - result, the meaning of which is different for every command.
Both of these can be accessed through either .execute store result or .execute store success and stored in a
Starscript variable, either for use in an expression or to conditionally execute another command through .execute if &
.execute unless.
If a command execution is forked, for example as part of .execute repeat instant, the result will be the sum of all
forked results.
If a command execution is delayed, for example as part of .execute delayed and.execute repeat (ticks|millis|seconds)
, the result will
be 1 immediately, and then the expected value after the delay has passed.
Due to clientside limitations, the send terminal operation will always have a result of 1 on success.
.starscript: If the output can be parsed as an integer, return that as a result. Otherwise, return1.
Licensed All Rights Reserved.