Creating Enchantments
Detailed Guide on Creating Enchantments
You can now use our in-game enchantments creator using /ae editor command! It features everything, from explanations to tab completing for triggers, effects, auto saving and more!
But, if you prefer editing enchantments in text format, you can read the guide below.
The enchantment creation process may seem difficult at first, but once you get the hang of it, it becomes much easier. Start by practicing with simple enchants before moving on to more complex creations.
Starting Out
To begin creating enchantments, you need a basic understanding of the enchantment template. Here's a rundown of the simple formatting:
enchantment_system_name must be in latin alphabet (a-z), and in lower-case.
Example Enchantment:
This is the basic template for creating enchantments. Let's go over each setting:
<enchantment_name>
<enchantment_name>
This is the "backend" enchantment name, used in all commands and admin processes. The enchantment name must be written in lowercase.
display
display
This is the enchantment display, which appears in item lore, chat messages, and book formats. Color codes can be used with the display. Special placeholders include:
%group-color%
: Use the group's global color code.
description
description
This is the enchantment's description, used in various menus and book formats. It supports the "\n" character for splitting to a new line, and requires double-quotes (") instead of single ('). Color codes can also be used with the display.
applies-to
applies-to
This is used in menus, book formats, and chat messages. It tells users which item category the enchantment can be applied to (e.g., 'Armour', 'Weapons', etc.). Note that applies-to
is visual only and does not affect which items the enchantment can actually be added to.
type
type
This defines what triggers the enchantment. Enchantment triggers can be found here
group
group
This sorts enchantments into specified groups from the groups.yml
file. It also hints at which global color should be used for display. Group names should be in UPPER-CASE.
applies
applies
This sets a specified list of items that the enchantment can be added to. It supports plugin shortcuts such as:
ALL_[material]
: Sets all specified material items (e.g.,ALL_SWORD
allows all types of swords).[material]_ARMOR
: Supports all types of specified armor (can be used with the previous shortcut to createALL_ARMOR
, allowing all possible armor pieces).
effects
Effects are the abilities which enchantment has. You can read more about effects and see effects list here
Other Options
There are a few other options for further customization when creating enchantments. These options are not required for basic enchantments:
Example Enchantment:
settings
settings
This is used to dictate special settings for specific enchantments. A full list of settings can be found here.
cooldown
cooldown
This is the length of time (in seconds) between enchantment activations. The default value is 0 seconds if no cooldown is specified.
chance
chance
This is the chance (0-100) of the enchantment activating when the trigger is activated. The default value is 100
conditions
Require a certain placeholder to be parsed for enchant to activate
Supports PAPI placeholders
Have as many conditions as you want
In depth guide on conditions can be found here
Last updated