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

    When present on an item, this item has applied enchantment effects. Note that this component only applies to data-driven items.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    enchantments: EnchantmentList

    Returns a collection of the enchantments applied to this item stack.

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

    typeId: string
    componentId: "minecraft:enchantments" = 'minecraft:enchantments'

    Identifier of this component.

    Methods

    • Beta

      Returns void

      Removes all enchantments applied to this item stack.

      This function can't be called in read-only mode.

      This function can throw errors.