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

    This class represents a specific leveled enchantment that is applied to an item.

    Index

    Constructors

    Properties

    Constructors

    • Beta

      Parameters

      • enchantmentType: string | EnchantmentType

        Type of the enchantment.

      • Optionallevel: number

        Level of the enchantment.

      Returns Enchantment

      Creates a new particular type of enchantment configuration.

      This function can throw errors.

    Properties

    level: number

    The level of this enchantment instance.

    This property can't be edited in read-only mode.

    The enchantment type of this instance.