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

    Provides a list of enchantment types.

    Index

    Methods

    Methods

    • Beta

      Parameters

      • enchantmentId: string

        Identifier of the enchantment. For example, "minecraft:flame".

      Returns EnchantmentType

      If available, returns an EnchantmentType object that represents the specified enchantment.

      Retrieves an enchantment with the specified identifier.