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"

SHOWGUI
Action

Show a custom gui screen, creates it if it doesn't exist. Set `[macro_keys]` to `true` when macro keys should still work.

Category: Mod related
SLOT
Action

Selects the specified slot on the hot bar

Category: GUI
SLOTCLICK
Action

Simulates clicking on the specified slot in the current GUI `<slot>` can be `-999` to drop the previously selected item. `[button]` can be either `"left"` for left-click or `"right"` for right-click `[shift]` should be `true` if you want to shift-click

Category: GUI
SPLIT
Action

Splits the supplied `<source>` string on every `<delimiter>` into `<output[]>`. Returns the output array.

Category: Variables
SPRINT
Action

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

Category: Input
SQRT
Action

Calculate the rounded square root of `<value>` and store it in `<#outvar>`. Returns the result.

Category: Calculations
STOP
Action

Stops the current macro, or macros matching the specified ID For stopping all macros you can use either `"all"` or `"*"`. The ID of a script is displayed in the "Macro Activate" screen, and will be always the task name, when it was started through [EXEC](/docs/actions/exec), or the name of the key/button, if it was started with file includes ($$<file.txt>) or ran directly from a key/button.

Category: Control Flow
STORE
Action

Stores a value into one of the predefined parameter lists Currently only `"place"` is allowed for `<type>` Your current location will be saved into the `$$p` list

Category: Mod related
STOREOVER
Action

Stores a value into one of the predefined parameter lists and overwrites an entry if it already exists Currently only `"place"` is allowed for `<type>` Your current location will be saved into the `$$p` list

Category: Mod related
STRIP
Action

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

Category: Calculations
TEXTUREPACK
Action

No description.

Category: N/A
TILEID
Action

Gets the legacy (numeric) ID for the specified tile

Category: Calculations
TILENAME
Action

Get the descriptor for a legacy (numeric) tile ID

Category: Calculations
TIME
Action

Stores the current time and date into &target, optionally using format specified. Returns the formatted time string.

Category: Calculations
TITLE
Action

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

Category: GUI
TOAST
Action

Displays an user-defined toast. The following toasts are possible: * __Advancement Toast__ ("Advancement made!") * `[type]` should be `"advancement"` * `[icon]` can be any item name * `[text1]` will be displayed * __Challenge Toast__ ("Challenge complete!") * `[type]` should be `"challenge"` * `[icon]` can be any item name * `[text1]` will be displayed * __Goal Toast__ ("Goal reached!") * `[type]` should be `"goal"` * `[icon]` can be any item name * `[text1]` will be displayed * __Recipe Toast__ ("New Recipes Unlocked!") * `[type]` should be `"recipe"` * `[icon]` can be any item name * No text will be displayed * __Tutorial Toast__ * `[type]` should be `"tutorial"` * `[icon]` can be one of the following values * `"keys"` * `"mouse"` * `"tree"` * `"recipe_block"` * `"planks"` * `[text1]` and `[text2]` will be displayed * `[ticks]` specifies how long the toast will be displayed * __System Hint Toast__ * `[type]` should be `"hint"` * `[icon]` should be empty * `[text1]` and `[text2]` will be displayed * __System Narrator Toast__ * `[type]` should be `"narrator"` * `[icon]` should be empty * `[text1]` and `[text2]` will be displayed * __Remove user-defined tutorial toasts__ * `[type]` should be `"clear"` * if `[icon]` is `"all"` vanilla toast will also be removed

Category: GUI
TOGGLE
Action

Toggles the specified boolean `[flag]` value

Category: Variables
TOGGLEKEY
Action

Toggles the pressed state of the specified key binding, only works with pressable bindings Can be one of the following values: * `"forward"` * `"back"` * `"left"` * `"right"` * `"jump"` * `"sneak"` * `"playerlist"` * `"sprint"` Can also be a key code value between 0 and 255

Category: Input
TRACE
Action

Performs a ray trace operation which sets the raytrace variables in the local scope. `<distance>` can be between `3` and `256` `[entities]` can be true, if you want to include entities in your trace. Returns the type of the result, which can be one of the following values: * `TILE` * `PLAYER` * `ENTITY` * `NONE`

Category: Calculations
TYPE
Action

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

Category: Input
UCASE
Action

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

Category: Calculations
UNIMPORT
Action

Remove the specified configuration overlay if active

Category: Mod related
UNSAFE
Action

Begins an `UNSAFE` block with maximum executions set to `<executions>`. `<executions>` has to be between `0` and `10000`. Default is `100`.

Category: Control Flow
UNSET
Action

Un-sets the specified `<flag>` variable.

Category: Variables
UNSPRINT
Action

Sets the player state to not sprinting

Category: Input