Skip to content

Key Pressed

Entity Condition Type.

Checks if the entity is actively using a keybind on their client.

Type ID: apugli:key_pressed

Fields

Field Type Default Description
key Key The key to check.

Example

"condition": {
    "type": "apugli:key_pressed",
    "key": {
        "key": "key.use",
        "continuous": true
    }
}
This example checks if the entity is continually holding the key.use keybind.