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

    Class EnchantmentTypes

    Contains a catalog of Minecraft Enchantment Types that are available in this world.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • 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.

      This function can't be called in early-execution mode.

    • Returns EnchantmentType[]

      Returns a collection of all available enchantment types.

      This function can't be called in early-execution mode.