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

    Interface ConsumeDurabilityOptions

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

    Properties

    breakSound?: string

    Whether to suppress playing a sound when item breaks. Defaults to "random.break". If set to an empty string, no sound will be played.

    ignoreEnchantments?: boolean

    Whether to ignore enchantments when consuming durability.

    slot?: EquipmentSlot

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

    value?: number

    The amount of durability to consume. Defaults to 1.