on_use_cooldown
Passes when the player has a use cooldown running, from the use_cooldown item component.
Categories: player
Optional arguments
| Key(s) | Description | Type | Default |
|---|---|---|---|
group | The cooldown group to check, as namespace:id. Defaults to the cooldown of the held item. | STRING | |
above | Only passes when the time left is at or above this value. Supports expressions. | EXPRESSION | |
below | Only passes when the time left is at or below this value. Supports expressions. | EXPRESSION | |
percent | If above and below are a percentage of the full cooldown instead of seconds. | BOOLEAN | false |
Example
conditions:
- id: on_use_cooldown
args:
group: myserver:dash # ← Optional
above: 2 # ← Optional
below: 5 # ← Optional
percent: true # ← Optional