Перейти к основному содержанию

CustomEnchant

since: 2.2.1b105

Module to create custom enchantments.

Index

Functions

newEnchant

  • Registers new custom enchantment from given name ID and displayed name.


    Parameters

    • nameID: string

      internal string ID of the enchantment

    • displayedName: string

      enchantment name that will be displayed in the tooltips of the items having this enchant. Use Translation module to make localization of the displayed name

    Returns EnchantSetupInterface

    Object to work with different enchantment behaviors.