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"

IMPORT
Action

Overlay the specified configuration

Category: Mod related
INC
Action

Increments the specified counter by 1 or by the specified amount

Category: Variables
INDEXOF
Action

Gets the first index of `<searchfor>` in `<array[]>` and stores it in `<#outvar>`. `[casesensitiv]` can be set to `true` which will cause the check to be case-sensitiv. (By default the search is case-insensitiv.) Returns the found index.

Category: Variables
INVENTORYDOWN
Action

Scrolls the specified number of slots down through the hotbar

Category: GUI
INVENTORYUP
Action

Scrolls the specified number of slots up through the hotbar

Category: GUI
ISRUNNING
Action

Returns whether the specified macro is currently running. 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: Mod related
ITEMID
Action

Gets the legacy (numeric) ID for the specified item

Category: Calculations
ITEMNAME
Action

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

Category: Calculations
JOIN
Action

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

Category: Variables
KEY
Action

Activates the specified key binding for 1 tick Can be one of the following values: * `"inventory"` * `"drop"` * `"chat"` * `"attack"` * `"use"` * `"pick"` * `"screenshot"` * `"smoothcamera"` * `"swaphands"`

Category: Input
KEYDOWN
Action

Sets the specified key binding state to pressed, 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
KEYUP
Action

Sets the specified key binding state to unpressed, 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
LCASE
Action

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

Category: Calculations
LOG
Action

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

Category: Input
LOGRAW
Action

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

Category: Input
LOGTO
Action

Outputs the specified text into the specified target, target can be a text file name or the name of a textarea. If you specify a file as a target is has to end with the `.txt` file extension. The files will always end up in `.minecraft\liteconfig\common\macros\logs`. It is not possible to change that location.

Category: Mod related
LOOK
Action

Faces the player in the specified direction, prefix angles with + or - for relative moves. If you want to look at a `<yaw>` value as seen in the F3 debug screen, you will have to add 180 to it. The `[time]` is parsed as a float value and then used as seconds. Alternative syntax: `LOOK(<direction>,[time])` `<direction>` can be one of the following values: * `"north"` * `"east"` * `"south"` * `"west"` * `"near"`

Category: Settings
LOOKS
Action

Smoothly turnes the player to the specified direction, prefix angles with + or - for relative moves If you want to look at a `<yaw>` value as seen in the F3 debug screen, you will have to add 180 to it. The `[time]` is parsed as a float value and then used as seconds. Alternative syntax: `LOOKS(<direction>,[time])` `<direction>` can be one of the following values: * `"north"` * `"east"` * `"south"` * `"west"` * `"near"`

Category: Settings
LOOP
Action

Ends a loop that was started with DO

Category: Control Flow
MATCH
Action

Runs a regular expression match on the `<subject>` and puts the result in `<&target>`. Returns the matched groups as an array. Alternative Syntax; ``` MATCH(<subject>,<pattern>,{&target1,&target2,&target3}) MATCH(<subject>,<pattern>,&target[]) ```

Category: Calculations
MODIFY
Action

Set new content for this chat message

Category: Mod related
MUSIC
Action

Sets the music volume, specifying time causes the value to change smoothly. `<value>` has to be between `0` and `100`.

Category: Settings
NEXT
Action

Completes a for or foreach loop

Category: Control Flow
PASS
Action

Indicate that this chat message should PASS the filter and terminate

Category: Mod related
PICK
Action

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

Category: GUI