1. Wiki
  2. /Items
  3. /minecraft:cooldown

minecraft:cooldown

Don't want to write this by hand? GodCraft sets minecraft:cooldown for you with a switch.Get GodCraft

Overview

minecraft:cooldown is an item component: it goes in the components object of a custom item. Adds a wait time after the item is used or swung. Every item that shares the same category goes on cooldown together, like how all ender pearls wait at once.

Fields

FieldTypeDefaultDescription
categorystringnoneA name shared by items that should go on cooldown together.
durationnumbernoneHow many seconds the wait lasts.
typeItemCooldownType"use"Which action starts and is blocked by the cooldown: "use" or "attack". The two types are tracked separately.

Example

Inside the components object of BP/items/<name>.json (values are the defaults or placeholders):

BP/items/<name>.json
{
  "minecraft:cooldown": {
    "category": "",
    "duration": 1,
    "type": "use"
  }
}

Items: Behavior pack

We use cookies to improve your experience and analyse site traffic. Learn more