ItemComponent - Use Cooldown (Section) — SkBee
Addon: SkBee · Category: Section · Since: 3.8.0
Syntax
apply use cooldown [component] to %itemstacks/itemtypes/slots%Description
Apply a cooldown to all items of the same type when it has been used. See [**Use Cooldown Component**](https://minecraft.wiki/w/Data_component_format#use_cooldown) on McWiki for more details.
**Entries**: - `seconds` = The cooldown duration (timespan, must be >= 1 tick). - `group` = The unique key to identify this cooldown group. If present, the item is included in a cooldown group and no longer shares cooldowns with its base item type, but instead with any other items that are part of the same cooldown group. [Optional]
Examples
apply use cooldown to {_item}:
seconds: 5 seconds
group: "blah:special_apple"