@bedrock-oss/bedrock-boost
    Preparing search index...

    Function consumeDurability

    • Consumes durability from the player's selected item.

      Parameters

      • player: Player

        The player whose item durability will be consumed.

      • Optionalvalue: number

        The amount of durability to consume. Defaults to 1.

      • Optionalslot: EquipmentSlot

        The slot to consume durability from. Defaults to the player's selected slot.

      Returns boolean

      True if the durability was successfully consumed, false otherwise.

      Use ItemUtils.consumeDurability instead.