Categories: Calculations | Control Flow | GUI | Input | Mod related | Settings | Variables | World

Calculations

Name Description
CALCYAWTO(<xpos>,<zpos>,[#yaw],[#distance])

Calculates the absolute yaw angle and optionally the distance to the specified coordinates

DECODE(<input>,[&output])

Converts an string from base64 back to an normal string

ENCODE(<input>,[&output])

Converts an string to base 64

GETID(<x>,<y>,<z>,[&idvar],[#datavar])

Gets the ID and optionally the data value of the block at the specified coordinates in the world

GETIDREL(<xoffset>,<yoffset>,<zoffset>,[&idvar],[#datavar])

Gets the ID and optionally the data value of the block at the specified coordinates relative to the player

GETITEMINFO(<item[:damage]>,[&namevar],[#maxstacksize],[&type],[&dropid])

Gets the name and other info for the specified item id

ITEMID(<item>)

Gets the legacy (numeric) ID for the specified item

ITEMNAME(<id>)

Get the item descriptor for a legacy (numeric) item ID

LCASE(<input>,[&output])

Converts the input string to lower case and stores it in output

MATCH(<subject>,<pattern>,[&target],[group],[default])

Runs a regular expression match on the <subject> and puts the result in <&target>

RANDOM(<#target>,[max],[min])

Assigns a random number between min and max to target

REGEXREPLACE(<&subject>,<pattern>,[replace])

Replace all matches of <pattern> with [replace] in <&subject>

REPLACE(<&subject>,<search>,[replace])

Replace all occurrences of <search> with [replace] in <&subject>

SQRT(<value>,[#outvar])

Calculate the rounded square root of <value> and store it in <#outvar>

STRIP(<&target>,<text>)

Strips all formatting codes from the specified <text> and assigns the result to <&target>

TIME(<&target>,[format])

Stores the current time and date into &target, optionally using format specified

TRACE(<distance>,[entities])

Performs a ray trace operation which sets the raytrace variables in the local scope

UCASE(<input>,[&output])

Converts the input string to upper case and stores it in output

Control Flow

Name Description
BREAK

Interrupts exection of the innermost loop

DO([count])

Begins a loop

ELSE

The actions following this action will only be executed if no if-clause before evaluated to true

ELSEIF(<condition>)

The actions following this action will only be executed when the <condition> evaluates to true and no if-clause before evaluated to true

FOR(<#var>,<start>,<end>)

Begins a for loop using the specified <#var> as a loop counter

FOREACH(<iterator>)

Runs a loop over the specified iterator

IF(<condition>)

The actions following this action will only be executed when the <condition> evaluates to true

IFBEGINSWITH(<haystack>,<needle>)

The actions following this action will only be executed when the <haystack> starts with <needle>

IFCONTAINS(<haystack>,<needle>)

The actions following this action will only be executed when the <haystack> contains the <needle>

IFENDSWITH(<haystack>,<needle>)

The actions following this action will only be executed when the <haystack> ends with <needle>

IFMATCHES(<subject>,<pattern>,[&target],[group])

The actions following this action will only be executed when the <subject> matches the <pattern>

IIF(<condition>,<truetext>,[falsetext])

Inline IF statement

STOP([id])

Stops the current macro, or macros matching the specified ID

UNSAFE(<executions>)

Begins an UNSAFE block with maximum executions set to <executions>

UNTIL(<condition>)

Completes a loop started with DO but exits the loop if <condition> is met

WAIT(<time>)

Pauses the script for the time (in seconds) specified, suffix ms for a wait in milliseconds or t to wait in ticks

WHILE(<condition>)

Completes a loop started with DO but exits the loop if <condition> is not met

GUI

Name Description
CLEARCHAT()

Clears all messages from the chat window

CLEARCRAFTING()

Cancels any queued crafting jobs

CRAFT(<item[:damage]>,[amount],[throw],[verbose])

Queues an auto-crafting request

CRAFTANDWAIT(<item[:id]>,[amount],[throw],[verbose])

Queues an auto-crafting request and waits for it to complete

GETSLOT(<item[:damage]>,<#slotid>,[startfromslotid])

Gets the id of the slot containing an item matching the specified item id

GETSLOTITEM(<slotid>,<&idvar>,[#stacksizevar],[#datavar])

Gets information about the item in the specified slot

GUI([name])

Opens the specified gui screen

INVENTORYDOWN([amount])

Scrolls the specified number of slots down through the hotbar

INVENTORYUP([amount])

Scrolls the specified number of slots up through the hotbar

PICK(<item[:damage]>,[item[:damage]],...)

Selects the specified item id if it is on the hotbar, specify multiple items to pick in order of preference

POPUPMESSAGE(<message>,[animate])

Display a message in the area above the hotbar

SETSLOTITEM([item[:damage]],[slot],[amount])

Creative mode only, set the contents of a hot bar slot

SLOT(<slot>)

Selects the specified slot on the hot bar

SLOTCLICK(<slot>,[button],[shift])

Simulates clicking on the specified slot in the current GUI

TITLE([title],[subtitle],[inticks],[showticks],[outticks])

Displays the specified custom title, call with no arguments to hide current titles

TOAST([type],[icon],[text1],[text2],[ticks])

Displays an user-defined toast

Input

Name Description
ECHO(<text>)

Sends the specified message to the server

KEY(<bind>)

Activates the specified key binding for 1 tick

KEYDOWN(<bind>)

Sets the specified key binding state to pressed, only works with pressable bindings

KEYUP(<bind>)

Sets the specified key binding state to unpressed, only works with pressable bindings

LOG(<text>)

Shows the specified text only on the client-side in the chat window

LOGRAW(<json>)

Similar to minecraft tellraw command, parses and outputs JSON chat into the client-side chat window

PRESS(<lwjgl_name>,[deep])

Injects the specified key event directly into the keyboard buffer for 1 tick

SPRINT()

Sets the player state to sprinting if sufficient stamina (food)

TOGGLEKEY(<bind>)

Toggles the pressed state of the specified key binding, only works with pressable bindings

TYPE(<text>)

Injects the specified key sequence directly into the keyboard buffer at a rate of 1 key per tick

UNSPRINT()

Sets the player state to not sprinting

Mod related

Name Description
BINDGUI(<slot>,<screen>)

Binds the specified custom screen to the slot specified

CHATFILTER(<enabled>)

Enable or disable the chat filter

CONFIG(<configname>)

Switch to the specified configuration

EXEC(<file.txt>,[taskname],[params],...)

Creates a task by running the specified script file

FILTER

Indicate that this chat message should be filtered and terminate

GETPROPERTY(<control>,<property>)

Returns the value of the specified property from the specified GUI control

IMPORT(<configname>)

Overlay the specified configuration

ISRUNNING(<macro>)

Returns whether the specified macro is currently running

LOGTO(<target>,<text>)

Outputs the specified text into the specified target, target can be a text file name or the name of a textarea

MODIFY(<newmessage>)

Set new content for this chat message

PASS

Indicate that this chat message should PASS the filter and terminate

PROMPT(<&target>,<paramstring>,[prompt],[override],[default])

Displays a prompt (or prompts) by parsing the params in paramstring

REPL

Access the REPL interface

SETLABEL(<labelname>,<text>,[binding])

Sets the text (and optionally binding) of the specified label

SETPROPERTY(<control>,<property>,<value>)

Sets the value of the specified property on the specified GUI control

SHOWGUI(<screen>,[esc_screen],[macro_keys])

Show a custom gui screen, creates it if it doesn't exist

STORE(<type>,[name])

Stores a value into one of the predefined parameter lists

STOREOVER(<type>,[name])

Stores a value into one of the predefined parameter lists and overwrites an entry if it already exists

UNIMPORT()

Remove the specified configuration overlay if active

Settings

Name Description
BIND(<bind>,<keycode>)

Set the specified key binding to the specified key code

CAMERA([mode])

Set the current camera mode, call with no arguments to toggle modes

CHATHEIGHT(<value>,[time])

Set height of the Minecraft chat whilst ingame

CHATHEIGHTFOCUSED(<value>,[time])

Set height of the Minecraft chat whilst in the chat GUI

CHATOPACITY(<value>,[time])

Set opacity of the Minecraft chat

CHATSCALE(<value>,[time])

Set scale of the Minecraft chat

CHATVISIBLE(<value>)

Set visibility of minecraft chat

CHATWIDTH(<value>,[time])

Set width of the Minecraft chat

FOG([value])

Toggles render distance, or optionally specify render distance

FOV(<value>,[time])

Sets the FOV angle in degrees, specifying time causes the value to change smoothly

GAMMA(<value>,[time])

Sets the brightness value (percent), specifying time causes the value to change smoothly

LOOK(<yaw>,[pitch],[time])

Faces the player in the specified direction, prefix angles with + or - for relative moves

LOOKS(<yaw>,[pitch],[time])

Smoothly turnes the player to the specified direction, prefix angles with + or - for relative moves

MUSIC(<value>,[time])

Sets the music volume, specifying time causes the value to change smoothly

RELOADRESOURCES

Reloads resource packs, same as pressing F3 + T

RESOURCEPACKS([pattern],[pattern...])

Sets the resource pack stack to the order matching the specified patterns

SENSITIVITY(<value>,[time])

Sets the mouse sensitivity, specifying time causes the value to change smoothly

SETRES(<width>,<height>)

Sets the size of the minecraft game window

SHADERGROUP([path])

Sets the active shader group to the shader matching path

VOLUME(<value>,[category])

Sets the sound volume for the specified category

Variables

Name Description
ARRAYSIZE(<array[]>,[#outvar])

Stores the size of the specified <array[]> in [#outvar]

DEC(<#var>,[amount])

Decrements the specified counter by 1 or by the specified amount

INC(<#var>,[amount])

Increments the specified counter by 1 or by the specified amount

INDEXOF(<array[]>,<#outvar>,<searchfor>,[casesensitiv])

Gets the first index of <searchfor> in <array[]> and stores it in <#outvar>

JOIN(<glue>,<array[]>,[&output])

Combines all values inside <array[]> with <glue> and stores it optionally in [&output]

POP(<array[]>,<outvar>)

Removes the last entry from the end of <array[]> and stores it in <outvar>

PUSH(<array[]>,<value>)

Appends <value> to the end of <array[]>

PUT(<array[]>,<value>)

Inserts <value> at the first empty point in <array[]>

SET(<target>,[value])

Sets the value of <target> to [value]

SPLIT(<delimiter>,<source>,[output[]])

Splits the supplied <source> string on every <delimiter> into <output[]>

TOGGLE([flag])

Toggles the specified boolean [flag] value

UNSET(<flag>)

Un-sets the specified <flag> variable

World

Name Description
DISCONNECT()

Disconnects from the current game or server

PLACESIGN([line1],[line2],[line3],[line4],[showgui])

Places a sign in the world with the specified text (if you have one)

PLAYSOUND(<sound>,[volume])

Plays the specified sound

RESPAWN()

Respawns the player if you are dead