Script API - v1.19.70
    Preparing search index...

    When present on an item, this item has a cooldown effect when used by entities.

    Index

    Constructors

    Properties

    cooldownCategory: string

    Represents the cooldown category that this item is associated with.

    This property can throw when used.

    cooldownTicks: number

    Amount of time, in ticks, that remain for this item cooldown.

    This property can throw when used.

    componentId: "minecraft:cooldown" = 'minecraft:cooldown'

    Identifier of this component. Should always be 'minecraft:cooldown'.

    Methods

    • Beta

      Parameters

      Returns void

      Starts a new cooldown period for this item.

      This function can throw errors.