EnchantAPI 1.0.2

Simple way to create Custom Enchants

  1. iStrafeEU
    Tested Minecraft Versions:
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    • 1.14
    • 1.15
    The EnchantAPI is a simple way of creating Custom Enchants inside your plugins! This API contains a simple method to create Enchants!

    The Enchant API contains a simple method to create a new Enchantment!
    The following is an example of the method:
    Code (Java):
    private EnchantManager newEnchant = new EnchantManager(101, "New Enchant", 1, 10);

    Break Down:
    This is the enchantment ID, each enchantment has to have a unique ID.
    "New Enchant": This is the name of the enchantment when added to an item.
    This is the minimum level of the enchantment
    10: This is the maximum level of the enchantment.

    Registering your new enchantment:
    Each enchantment has to be registered in your plugins onEnable. Using the enchantment from the previous example, your onEnable should look like:​
    Code (Java):
    public void onEnable() {
    Adding the Enchantment to an item.
    The EnchantManager has a method to be able to easily add the enchantment to an item. Here is an example of this:​
    Code (Text):
    newEnchant.Enchant(item, level);
    The level is also converted into roman numerals and is in the same style as vanilla minecraft enchantments.​

    If this API is used, the api will be one of the plugins dependencies. Not adding the API to the server will stop the plugin from working!

    Please leave a good review if you like this API! Please message me on discord (iStrafeEU#7202#) if you come across any bugs!

Recent Updates

  1. Bug Fix