EnchantSpell - TheComputerGeek2/MagicSpells GitHub Wiki

Source Code

spell-class: ".instant.EnchantSpell"

Description:

This spell allows the caster to enchant an item with the provided enchantments.

Configuration:

Option Description Type Default
enchantments List of enchantment lines in the format: (enchantment) (level). String List
safe-enchants Whether to respect max levels and item types for an enchantment. Since 4.0 Beta 13 this option supports dynamic values through string expressions. Boolean true

NOTE:

This spell has no debugging on whether the enchantment is correct or not, so test it before using it in "production".

Example:

Holy_Sword:
    spell-class: ".instant.EnchantSpell"
    enchantments:
        - unbreaking 1
        - knockback 1
        - fire_aspect 1
⚠️ **GitHub.com Fallback** ⚠️