Skip to content

Key Pressed Ticks

Provides how long a keybinding has been pressed/held (in ticks.)

Type ID: kaya:key/pressed/ticks

Format

Field Type Default Description
id String Provider The ID of the keybinding.
entity Entity Provider The entity to get the state of the keybinding from.

Example

{
    "type": "kaya:key/pressed/ticks",
    "id": "key.use",
    "entity": "this"
}

This example will provide how long the key.use keybinding has been pressed/held for by the entity provided by the kaya:this_entity context parameter.

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.