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

    Interface ConsumeDurabilityOptions

    interface ConsumeDurabilityOptions {
        ignoreEnchantments?: boolean;
        slot?: EquipmentSlot;
        suppressSound?: boolean;
        value?: number;
    }
    Index

    Properties

    ignoreEnchantments?: boolean

    Whether to ignore enchantments when consuming durability.

    slot?: EquipmentSlot

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

    suppressSound?: boolean

    Whether to suppress playing a sound when item breaks.

    value?: number

    The amount of durability to consume. Defaults to 1.