on_use_cooldown

Passes when the player has a use cooldown running, from the use_cooldown item component.

Categories: player

Optional arguments

Key(s)DescriptionTypeDefault
groupThe cooldown group to check, as namespace:id. Defaults to the cooldown of the held item.STRING
aboveOnly passes when the time left is at or above this value. Supports expressions.EXPRESSION
belowOnly passes when the time left is at or below this value. Supports expressions.EXPRESSION
percentIf above and below are a percentage of the full cooldown instead of seconds.BOOLEANfalse

Example

conditions:
  - id: on_use_cooldown
    args:
      group: myserver:dash # ← Optional
      above: 2 # ← Optional
      below: 5 # ← Optional
      percent: true # ← Optional