Skip to content

EnchantSpell

MomoPewpew edited this page Jul 28, 2023 · 8 revisions

Source Code

spell-class: ".instant.EnchantSpell"

Description:

This spell allows the caster to enchant an item with the provided enchantments. You can find a list of enchantment names here.

Configuration:

Option Description Default Value
enchantments Which enchantments to use for the spell, and what level they are. null
safe-enchants Whether to use safe enchants true

Spell Example:

Holy_Sword:
    spell-class: ".instant.EnchantSpell"
    enchantments:
        - unbreaking 1
        - knockback 1
        - fire_aspect 1

Notes:

The formatting for the enchantment list is unlike most other spells, which may have you do something like:

enchantments:
     - "DAMAGE_ALL 5"

It even differs from how enchantments are done on predefined items. Because of this, it may end up confusing even skilled users of the plugin, based on their assumptions of how it should work.

Clone this wiki locally