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

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

    Index

    Constructors

    Properties

    enchantments: EnchantmentList

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

    componentId: "minecraft:enchantments" = 'minecraft:enchantments'

    Identifier of this component.

    Methods

    • Beta

      Returns void

      Removes all enchantments applied to this item stack.

      This function can throw errors.