List of Resources
See MKB through human eyesFilter by Category:
All Calculations Control Flow Equipped Armor Equipped Tool GUI Input Looking at Mod related Player Position Server Settings Time and Date Variables WorldFiltros ativos: Tipo: "Action"
ELSE
ActionThe 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 FlowELSEIF
ActionThe 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 FlowENCODE
ActionConverts an string to base 64. Returns the encoded value.
Category: CalculationsENDIF
ActionEnds an if-clause.
Category: Control FlowENDUNSAFE
ActionEnds an active UNSAFE block
Category: Control FlowEXEC
ActionCreates 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 relatedFILTER
ActionIndicate that this chat message should be filtered and terminate
Category: Mod relatedFOG
ActionToggles 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: SettingsFOR
ActionBegins 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 FlowFOREACH
ActionRuns 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 FlowFOV
ActionSets the FOV angle in degrees, specifying time causes the value to change smoothly. `<value>` has to be between `70` and `110`.
Category: SettingsGAMMA
ActionSets the brightness value (percent), specifying time causes the value to change smoothly. `<value>` has to be between `0` and `200`.
Category: SettingsGETID
ActionGets the ID and optionally the data value of the block at the specified coordinates in the world. Returns the name of the block.
Category: CalculationsGETIDREL
ActionGets 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: CalculationsGETITEMINFO
ActionGets the name and other info for the specified item id Returns the item name
Category: CalculationsGETPROPERTY
ActionReturns 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 relatedGETSLOT
ActionGets the id of the slot containing an item matching the specified item id Returns the slot number
Category: GUIGETSLOTITEM
ActionGets information about the item in the specified slot Returns the item name
Category: GUIGUI
ActionOpens 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: GUIIF
ActionThe actions following this action will only be executed when the `<condition>` evaluates to `true`. Needs to be closed with an `ENDIF`.
Category: Control FlowIFBEGINSWITH
ActionThe actions following this action will only be executed when the `<haystack>` starts with `<needle>`.
Category: Control FlowIFCONTAINS
ActionThe actions following this action will only be executed when the `<haystack>` contains the `<needle>`.
Category: Control FlowIFENDSWITH
ActionThe actions following this action will only be executed when the `<haystack>` ends with `<needle>`.
Category: Control FlowIFMATCHES
ActionThe 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 FlowIIF
ActionInline IF statement. Sends `<truetext>` as a chat message if condition succeeds, or sends `<falsetext>` if not.
Category: Control Flow