List of Resources

See MKB through human eyes
Filter by Type:
All Action Event Iterator Parameter REPL Command Variable
Filter by Category:
All Calculations Control Flow Equipped Armor Equipped Tool GUI Input Looking at Mod related Player Position Server Settings Time and Date Variables World

Filtros ativos: Tipo: "Action"

ELSE
Action

The actions following this action will only be executed if no if-clause before evaluated to `true`. Can be used with: * `IF` * `IFBEGINSWITH` * `IFCONTAINS` * `IFENDSWITH` * `IFMATCHES` * `ELSEIF`

Category: Control Flow
ELSEIF
Action

The actions following this action will only be executed when the `<condition>` evaluates to `true` and no if-clause before evaluated to true. Can be used with: * `IF` * `IFBEGINSWITH` * `IFCONTAINS` * `IFENDSWITH` * `IFMATCHES`

Category: Control Flow
ENCODE
Action

Converts an string to base 64. Returns the encoded value.

Category: Calculations
ENDIF
Action

Ends an if-clause.

Category: Control Flow
ENDUNSAFE
Action

Ends an active UNSAFE block

Category: Control Flow
EXEC
Action

Creates a task by running the specified script file. The task name can be used by [STOP](/docs/actions/stop) to stop this script, or by [ISRUNNING](/docs/actions/isrunning) to check if it is active. The params will be provided to the script as either variables (`&var1`, `&var2`, `&var3`, ...) or parameters (`$$[1]`, `$$[2]`, `$$[3]`, ...).

Category: Mod related
FILTER
Action

Indicate that this chat message should be filtered and terminate

Category: Mod related
FOG
Action

Toggles render distance, or optionally specify render distance Can be one of the following values: * `"far"` for 16 chunks * `"normal"` for 8 chunks * `"short"` for 4 chunks * `"tiny"` for 2 chunks Alternatively the amount of chunks (up to 16) can also be specified directly

Category: Settings
FOR
Action

Begins a for loop using the specified `<#var>` as a loop counter. Needs to be closed with `NEXT`. The loop can be exited early by using `BREAK`. Alternative syntax: ``` FOR(<#var> = <start> to <end>) FOR(<#var> = <start> to <end> step <step>) ```

Category: Control Flow
FOREACH
Action

Runs a loop over the specified iterator. Needs to be closed with `NEXT`. The iterator can either be [one of the these](/docs/iterators/) or an array. The loop can be exited early by using `BREAK`. Alternative Syntax: ``` FOREACH(<&array[]>,<&content>,[#index]) FOREACH(<&array[]> as <&content>) FOREACH(<&array[]> as <#index> => <&content>) ```

Category: Control Flow
FOV
Action

Sets the FOV angle in degrees, specifying time causes the value to change smoothly. `<value>` has to be between `70` and `110`.

Category: Settings
GAMMA
Action

Sets the brightness value (percent), specifying time causes the value to change smoothly. `<value>` has to be between `0` and `200`.

Category: Settings
GETID
Action

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

Category: Calculations
GETIDREL
Action

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

Category: Calculations
GETITEMINFO
Action

Gets the name and other info for the specified item id Returns the item name

Category: Calculations
GETPROPERTY
Action

Returns the value of the specified property from the specified GUI control The following properties are available for each control: * __Button__ * `"name"` * `"visible"` * `"hotkey"` * `"text"` * `"hide"` * `"sticky"` * `"colour"` * `"background"` * __Icon__ * `"name"` * `"visible"` * `"align"` * `"scale"` * `"damage"` * `"background"` * __Label__ * `"name"` * `"visible"` * `"align"` * `"text"` * `"binding"` * `"shadow"` * `"colour"` * `"background"` * __Custom Gui__ * `"name"` * `"visible"` * `"layout"` * `"width"` * `"heigth"` * __Playback Status__ * `"name"` * `"visible"` * __Progress Bar__ * `"name"` * `"visible"` * `"expression"` * `"style"` * `"min"` * `"max"` * `"calcmin"` * `"calcmax"` * `"colour"` * `"background"` * __Slider__ * `"name"` * `"visible"` * `"binding"` * `"hotkeydec"` * `"hotkeyinc"` * `"min"` * `"max"` * `"calcmin"` * `"calcmax"` * `"colour"` * `"background"` * __Textarea__ * `"name"` * `"visible"` * `"lifespan"` * `"colour"`

Category: Mod related
GETSLOT
Action

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

Category: GUI
GETSLOTITEM
Action

Gets information about the item in the specified slot Returns the item name

Category: GUI
GUI
Action

Opens the specified gui screen. If no `[name]` is specified it will close the currently open gui. Possible values: * `"chat"` * `"filterablechat"` * `"menu"` * `"inventory"` * `"options"` * `"video"` * `"controls"` * `"macrobind"` * `"macroplayback"` * `"macroconfig"` * `"texteditor"` * `"repl"`

Category: GUI
IF
Action

The actions following this action will only be executed when the `<condition>` evaluates to `true`. Needs to be closed with an `ENDIF`.

Category: Control Flow
IFBEGINSWITH
Action

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

Category: Control Flow
IFCONTAINS
Action

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

Category: Control Flow
IFENDSWITH
Action

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

Category: Control Flow
IFMATCHES
Action

The actions following this action will only be executed when the `<subject>` matches the `<pattern>`. Optionally the whole match (or only a group specified by `[group]`) can be saved into `[&target]`.

Category: Control Flow
IIF
Action

Inline IF statement. Sends `<truetext>` as a chat message if condition succeeds, or sends `<falsetext>` if not.

Category: Control Flow