Interface EnchantData

Object containing some of the enchants that are used to calculate block destroy time.

interface EnchantData {
    all: {
        [id: number]: number;
    };
    efficiency: number;
    experience: number;
    fortune: number;
    silk: boolean;
    unbreaking: number;
}

Properties

all: {
    [id: number]: number;
}

2.2.1b106

efficiency: number

Specifies the level of Efficiency enchantment, or 0 if the item doesn't have this enchant.

experience: number

Specifies the amount of additional experience that is dropped when player breaks block with specified item.

fortune: number

Specifies the level of Fortune enchantment, or 0 if the item doesn't have this enchant.

silk: boolean

If true, the item has Silk Touch enchantment.

unbreaking: number

Specifies the level of Unbreaking enchantment, or 0 if the item doesn't have this enchant.

Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.