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
OXYGEN
Variable

Air Level (from 0 to 300)

Category: Player
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
PICKUPAMOUNT
Variable

Amount of items picked up

Category: N/A
PICKUPDATA
Variable

Metadata of the picked up item.

Category: N/A
PICKUPID
Variable

Item id of the picked up item.

Category: N/A
PICKUPITEM
Variable

Display name of the picked up item.

Category: N/A
PITCH
Variable

Pitch of the player

Category: Position
PLACESIGN
Action

Places a sign in the world with the specified text (if you have one) - `[line1]` to `[line4]` specifies the content for each sign line - `[showgui]` should be `true` if you want to continue editing the text

Category: World
PLAYER
Variable

Player's name

Category: Player
PLAYERNAME
Variable

The current player

Category: N/A
players
Iterator

Iterates over online players on your server

Category: N/A
PLAYERVOLUME
Variable

Volume level for Players

Category: Settings
PLAYSOUND
Action

Plays the specified sound. If the `<sound>` starts with `"custom."` it looks inside an folder `sounds` inside the macros config folder. `[volume]` has to be betweem `0` and `100`

Category: World
POP
Action

Removes the last entry from the end of `<array[]>` and stores it in `<outvar>`. Returns the popped element.

Category: Variables
POPUPMESSAGE
Action

Display a message in the area above the hotbar The `<message>` can contain color codes. If `[animate]` is set to true the message will animate through different colors

Category: GUI
PRESS
Action

Injects the specified key event directly into the keyboard buffer for 1 tick

Category: Input
PROMPT
Action

Displays a prompt (or prompts) by parsing the params in paramstring. Returns the result. `<paramstring>` can be any of the [parameters](/docs/parameters).

Category: Mod related
properties
Iterator

Iterates over the properties of the block you are looking at

Category: N/A
PROPNAME
Variable

The name of the current property. Can be one of the following values: * `AGE` * `ATTACHED` * `AXIS` * `BITES` * `CHECK_DECAY` * `COLOR` * `CONDITIONAL` * `CONTENTS` * `DAMAGE` * `DECAYABLE` * `DELAY` * `DISARMED` * `DOWN` * `EAST` * `ENABLED` * `EXPLODE` * `EXTENDED` * `EYE` * `FACING` * `HALF` * `HAS_BOTTLE_0` * `HAS_BOTTLE_1` * `HAS_BOTTLE_2` * `HAS_RECORD` * `HINGE` * `IN_WALL` * `LAYERS` * `LEGACY_DATA` * `LEVEL` * `LOCKED` * `MODE` * `MOISTURE` * `NODROP` * `NORTH` * `OCCUPIED` * `OPEN` * `PART` * `POWER` * `POWERED` * `ROTATION` * `SEAMLESS` * `SHAPE` * `SHORT` * `SNOWY` * `SOUTH` * `STAGE` * `TRIGGERED` * `TYPE` * `UP` * `VARIANT` * `WEST` * `WET`

Category: N/A
PROPVALUE
Variable

The value of the current property.

Category: N/A
PUSH
Action

Appends `<value>` to the end of `<array[]>`

Category: Variables
PUT
Action

Inserts `<value>` at the first empty point in `<array[]>`.

Category: Variables
RAIN
Variable

Rain level

Category: World
RANDOM
Action

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

Category: Calculations