Skip to content
JasperLorelai edited this page Jun 28, 2026 · 12 revisions

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
require-supported-item Since 4.0 Beta 19. When disabled, this allows items which are normally not supported by an enchantment to be enchanted on the item. This will always pass for book. Boolean true

Example:

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

Clone this wiki locally