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: Categoria: "Calculations"

CALCYAWTO
Action

Calculates the absolute yaw angle and optionally the distance to the specified coordinates. Returns the calculated yaw value.

Category: Calculations
DECODE
Action

Converts an string from base64 back to an normal string. Returns the decoded string.

Category: Calculations
ENCODE
Action

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

Category: Calculations
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
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
LCASE
Action

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

Category: Calculations
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
RANDOM
Action

Assigns a random number between min and max to target. Returns the value.

Category: Calculations
REGEXREPLACE
Action

Replace all matches of `<pattern>` with `[replace]` in `<&subject>`. Returns the new string.

Category: Calculations
REPLACE
Action

Replace all occurrences of `<search>` with `[replace]` in `<&subject>`. Returns the new string.

Category: Calculations
SQRT
Action

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

Category: Calculations
STRIP
Action

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

Category: Calculations
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
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
UCASE
Action

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

Category: Calculations