#Item Cooldown check

1 messages · Page 1 of 1 (latest)

viral briar
#

Is it possible to check if an item is on cooldown through scripting, or trigger the script in another way from the item being clicked while not on cooldown? I can't edit vanilla files and it's stable scripting release, so I can't use animation controllers on the player or the ItemCooldownComponent class.

thin silo
#

maybe with:

<item>.getComponent("minecraft:cooldown")
// properties / methods at: https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/minecraft/server/itemcooldowncomponent?view=minecraft-bedrock-experimental&viewFallbackFrom=minecraft-bedrock-stable
viral briar
thin silo
#

hmm okay , then i can't help sorry