Syntax¶
Syntax |
Notes |
---|---|
|
Define a new variable |
|
Define a new scoreboard objective |
|
Set the value of an objective for a given target (eg. |
|
Update the value of an existing variable |
|
Used to test variables in |
|
Define a function. Generates a new mcfunction file |
|
Define a macro. See the macros page for more information |
|
Calls a macro. See the macros page for more information |
|
Ends a macro definition. See the macros page for more information |
|
Call a function. Can infer namespace based on directory (see function calling example) |
|
Starts an if statement |
|
Runs if an if statement’s condition was not true |
|
Create a while loop. Condition should be something passable to |
|
Close a function, while loop, or if statement |
|
Shorthand for |
|
Can be used with a scoreboard operation as such: |
|
Delete a variable or objective. Can be used interchangeably |
|
Used to escape keywords (eg. |
Assignment Operators |
|
|
Add to a variable |
|
Subtract from a variable |
|
Set the value of a variable |