Key Pressed Time
Provides the time the key was pressed (in ticks.)
Type ID: kaya:key/pressed/time
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
This example will provide the game ticks the key.forward keybinding was pressed by the entity provided by the kaya:this_entity context parameter.
History
| Minecraft | Mod | Changelog |
| 1.21.5 | 0.1.0 | Added the type. |