Item Cooldown (Expression) — Skript

Addon: Skript · Category: Expression · Since: 2.8.0, 2.12 (cooldown group)

Syntax

[the] [item] cooldown of %itemtypes% for %players%

Description

Gets the current cooldown of a provided item for a player. If the provided item has a cooldown group component specified the cooldown of the group will be prioritized. Otherwise the cooldown of the item material will be used.

Examples

on right click using stick:
	set item cooldown of player's tool for player to 1 minute
	set item cooldown of stone and grass for all players to 20 seconds
	reset item cooldown of cobblestone and dirt for all players

View source