|
|
Custom Enchantments
|
|
|
-------------
|
|
|
MythicEnchantments allows you to create fully functional enchants using the [Mythic Skill System](https://git.lumine.io/mythiccraft/MythicMobs/-/wikis/Skills/Skills). Details of this system can be found on the [Mythic Manual](https://git.lumine.io/mythiccraft/MythicMobs/-/wikis/home).
|
|
|
|
|
|
Getting started creating a new enchantment in MythicEnchants is fairly straight-forward! All custom enchantments are located in the `plugins/MythicEnchants/CustomEnchantments` folder, and to add a new one you just create a new file named after your enchant (or add it to an existing file).
|
... | ... | @@ -21,21 +19,9 @@ BURNING: |
|
|
```
|
|
|
This enchantment would set whatever you hit on fire, just like Fire Aspect! Why did we remake Fire Aspect? Nobody knows! But in this case, it will set things on fire for 100 ticks per level.
|
|
|
|
|
|
If you have Mythic Premium, you can also simplify things with math:
|
|
|
```yaml
|
|
|
Skills:
|
|
|
- ignite{ticks="100 * <skill.var.enchant-level>"} @trigger ~onAttack
|
|
|
```
|
|
|
|
|
|
Most mechanics, conditions, and triggers from Mythic can be used in enchantments - almost anything that makes sense will work how you'd expect. MythicEnchants also adds a bunch of new tools you can use that are specific to enchantments!
|
|
|
|
|
|
You can read more about the new toys added for skills in the manual:
|
|
|
|
|
|
### New Mechanics
|
|
|
* [Enchant Mechanics](Skills/Mechanics)
|
|
|
* [Enchant Targeters](Skills/Targeters)
|
|
|
* [Enchant Triggers](Skills/Triggers)
|
|
|
* [Enchant Conditions](Skills/Conditions)
|
|
|
[[_TOC_]]
|
|
|
|
|
|
## Enchantment Config
|
|
|
When creating an enchantment these are the settings you can use.
|
... | ... | @@ -54,7 +40,8 @@ EXAMPLE_NAME: |
|
|
```
|
|
|
|
|
|
### MinLevel
|
|
|
The minimum level your enchantment can be.
|
|
|
The minimum level your enchantment can be.
|
|
|
Defaults to `1`.
|
|
|
```yaml
|
|
|
EXAMPLE_NAME:
|
|
|
Display: '&7Custom Enchant'
|
... | ... | @@ -63,6 +50,7 @@ EXAMPLE_NAME: |
|
|
|
|
|
### MaxLevel
|
|
|
The maximum level your enchantment can be.
|
|
|
Defaults to `5`.
|
|
|
```yaml
|
|
|
EXAMPLE_NAME:
|
|
|
Display: '&7Custom Enchant'
|
... | ... | @@ -153,7 +141,7 @@ EXAMPLE_NAME: |
|
|
- ignite{ticks=100} @trigger ~onAttack
|
|
|
```
|
|
|
|
|
|
### Example Enchantment
|
|
|
## Examples
|
|
|
A replica of Fire Aspect which sets your target on fire when you attack it.
|
|
|
```yaml
|
|
|
BURNING:
|
... | ... | @@ -181,4 +169,9 @@ BURNING: |
|
|
- ignite{ticks=100} @target ~onAttack ?enchantleve{level=1}
|
|
|
- ignite{ticks=200} @target ~onAttack ?enchantleve{level=2}
|
|
|
- ignite{ticks=300} @target ~onAttack ?enchantleve{level=3}
|
|
|
```
|
|
|
If you have Mythic Premium, you can also simplify things with math:
|
|
|
```yaml
|
|
|
Skills:
|
|
|
- ignite{ticks="100 * <skill.var.enchant-level>"} @trigger ~onAttack
|
|
|
``` |
|
|
\ No newline at end of file |