Lifesteal Enchantment


The plugin is made primarily for developer usage as it doesn't do much on its own. It does however provide very easy access into creating custom enchantments that look like normal enchantments and can be added through both the enchanting table and programmatically! Now developers can make new enchantments such as life steal even with very little code!

Don't want to code your own enchantments? Visit EnchantmentPack for a large collection of enchantments!


Silly Enchantment
(a lv5190 enchantment)

  • An extendable class for plugins for simple setting up of enchantments
  • An abstract CustomEnchantment class for quick enchantment creation
  • Automatic effect activation when the enchanted item hits something
  • Automatic enchanting table integration
  • Enchantments are easily added onto any item
  • The max level of enchantments is that of an integer variable
  • Large enchantment levels should probably be avoided though (above is a good reason why)
  • Any item can use the enchantments (torches, signs, you name it)
  • Enchantment effects can be for attacking, defending, breaking blocks, equipping, unequipping, or mix of them all!
  • Any enchantment can be completely disabled by editing the config
  • Configurable weights, max levels, conflict groups, and item sets for all enchantments
  • All items can be used in enchanting tables if they have an enchantment bound to them as of v3.0!
  • Anvils can now handle custom enchantments very similar to any vanilla enchantment (v4.0)
  • Randomly generated names can be applied to enchanted items! (You can turn this off)
  • Permissions per enchantment (with v4.10)


New Enchantment Table Mechanics

For an in-depth explanation on the new mechanics for the enchantment table (because it needed some to get every item to work), go here
Thanks to Diemex for coming up with this idea :)


A config file is generated as new enchantments are added. Adding more enchantments later will simply automatically add onto the config with its default values the next time you reload your server. All changes you make will override the enchantment values. You can edit them while the server is running and reloading the server will apply them.

The config allows you to change the following things:

  • weight: chance of getting the enchantment from a table
  • items: the items that can receive the enchantment from a table
  • enabled: whether or not the enchantment can be obtained and used
  • table: whether or not the enchantment can be obtained in the enchantment table
  • group: the conflict group of the enchant - items in the same group will conflict unless its the default group
  • max: the maximum level for the enchantment
  • base: the minimum modified enchantment level that can get the enchantment
  • interval: the amount of modified enchantment levels above the base it takes to get the next tier

    Vanilla enchantments cannot be completely disabled, although you can stop them from being received in the enchantment table.

    Disabled custom enchantments will no longer work on items that had received it before disabling it.


  • /enchantapi list [page] - Providing the page gives a detailed list while no page just shows you the complete list
  • /enchantapi reload - Reloads the plugin data
  • /enchantapi book - gives you a book with descriptions for every enchantment
  • /enchantapi add <enchantName> [enchantLevel] - Supports vanilla names such as "sharpness" as of v4.0!
  • /enchantapi stats <item> <level> - Displays probabilities for every possible enchantment for the item at the given level (item name or item ID)
  • /enchantapi graph <item> <enchant> - Displays a graph for probabilities of the enchantment on the item over all 30 levels (item name or item ID)
    Yes, you do have to include spaces for the addenchant command with the enchantment name!
    Note: the graph takes 3-5 seconds to generate because it generates 3,000,000 samples in order to get reliable results!

    graph command


  • EnchantmentAPI.list - access to the list command
  • EnchantmentAPI.book - access to giving yourself a description book
  • EnchantmentAPI.admin - access to adding enchants to items, reloading the plugin, and viewing statistics
  • EnchantmentAPI.table - access to custom enchantments from the table
  • EnchantmentAPI.names - access to random names from enchanting (needs table as well)

    Version 4.10 permissions
  • EnchantmentAPI.enchant - access to all enchantments in the table (default is true)
  • EnchantmentAPI.enchant.enchantName - access to the enchantment in the table (replace 'enchantName' with the name of the enchantment with all lowercase letters and no spaces)

    Version 4.11 permissions
  • EnchantmentAPI.enchant.vanilla - access to all vanilla enchantments (default is true)
    Note, with this permission added, removing the permission EnchantmentAPI.enchant will still leave players with access to vanilla enchantments. You must remove both for them not to have the access!

Javadocs, Source Code, and Tutorials


Javadocs are found here
Thanks to JefferiesTube for the space for the javadocs!

Source Code




  • Losing items in the enchanting table? Try deleting your config files as they are probably outdated
  • If the you start getting loading problems that point to EnchantPlugin saying that the class cannot be loaded, try adding this line to your plugin.yml:
depend: [EnchantmentAPI]

Example Enchantments


I have created a forum for this that you can submit ideas, projects you are working on, and bugs to. Its completely optional but it might help organize what's going on with this project :)

Special Thanks

  • zag09 for finding several bugs and making suggestions
  • JefferiesTube for the Javadocs space and the bountiful suggestions
  • Diemex for cleaning up my sloppy code

Like the project?

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of bsdp123 bsdp123 May 21, 2016 at 09:34 UTC - 0 likes

    So I tried to post a comment here a while ago but I do not see it on here now. In v4.28 (For 1.9) the applyEquipEffect and applyUnequipEffect triggers do not work - they are never called. I have tested this with enchantments from the enchantmentPack and with my own code and with both, no trigger is ever called.

    Also, it seems that for some reason some of my enchantments throw exceptions when trying to use the graph or get them through enchanting tables.

    Honestly I really want this API to work but at the moment it is not usable because of these bugs, the enchantment tables not giving or applying enchantments is incredibly annoying. I will not change one of the enchantments, but adding a new enchantment will make old ones that have not been edited unobtainable.

  • Avatar of Roxxy_Blunderblast Roxxy_Blunderblast May 20, 2016 at 06:16 UTC - 0 likes

    Trying to disable the "/enchantmentapi book" command

    I entered the perm with a "-" before it in groupmanager. It worked for the list command, but not the book command.

  • Avatar of crunchycamsta crunchycamsta Apr 23, 2016 at 15:44 UTC - 0 likes

    Is it possible to disable the random enchantment names in the table? Such as when enchanting a sword it says efficiency or power.

  • Avatar of Tallone55 Tallone55 Apr 21, 2016 at 07:21 UTC - 0 likes

    Players can get around disabled enchantments by applying books via anvil. Is there a fix for this?

  • Avatar of vanthoi vanthoi Apr 13, 2016 at 02:21 UTC - 0 likes

    How to fix error 1.9.2 : Spam consoler and lag:

  • Avatar of loly110 loly110 Apr 03, 2016 at 15:37 UTC - 0 likes

    I got some enchant idea's.

    Xp Steal: (Sword, Axe) Max Lvl: 5 Steal's Xp from another player when you hit them.

    Aura: (Chestplate) Max Lvl: 4 Everyone within 4-8 blocks of you receive slowness depending on the Aura Level.

    Mob Bomb: (Bow) Max Lvl: 3 Has a chance to spawn a random mob when you shoot a player.

    Life Link: (Leggings) Max Lvl: 4 If the enchant is maxed (4) it has a 40% chance of killing the other player when you die.

    Position Holder: (Boots) Max Lvl: 5 The higher the level the more better of chance to not get any knock back.

    Metal Head: (Helmet) Max Lvl: 5 Has a chance to gain resistance for 5-10 seconds depending on the level.

    Op Enchants,

    Explosure: (Chestplate) Max Lvl: 4 Has a chance to make a explosion on every player within 5-20 blocks, depending on level, dealing huge amounts of damage

    Oblivion: (Sword, Axe) Max Level: 1 Has a 1/1000000 chance to bring hell to a player. (Insta KO)

    Rage: (Sword, Bow, Axe) Max Level: The damage increases every time you hit a player and if a player hits you the damage increase is reset.

    (Quick Escape) (Boots) Max Lvl: 3 Has a chance to give you speed 4 and invincibility(When your invincible people can't hit you and you can't hit them either) so you can escape.

    :D Hope some of these enchants will be added to enchant pack :D

  • Avatar of GenocGamer GenocGamer Apr 01, 2016 at 15:32 UTC - 0 likes

    can someone give me the image of the config file?

  • Avatar of val59000 val59000 Mar 31, 2016 at 18:27 UTC - 0 likes

    How to complete disable the table feature.

    I want to add enchantements programatically.

    I set "Custom Enchantments.table" to false in the config but it still enchants items with random names and still show a book placeholder.
    Is it possible to completely disable the fact that the plugin is overriding the enchantement table ? Is it possible to only use the vanilla enchantment table ?

    Edit :

    I found a workaround, I needed to add the negative permission :

    But I also add to clone the code and fix a NPE in the code in EListener.java
    Line 402 the update code is now :


    Last edited Apr 02, 2016 by val59000
  • Avatar of MayorOfBukkit MayorOfBukkit Mar 30, 2016 at 11:19 UTC - 0 likes

    @firelancer120: Go

    You are a retard.

    Anyways, great plugin. Thanks for the API. Switching from lores to enchants tonight ! :D

    Need a server?


    Cheap 480 Gbps DDoS protected servers at $2.5 / GB

    Intel Xeon Processors

  • Avatar of firelancer120 firelancer120 Mar 26, 2016 at 21:07 UTC - 0 likes

    so ya curropts your server world. so great and fun to play with and the enchants are great but only use it if youv literally beaten your game and dont mind it getting fucked


Date created
May 31, 2013
Last update
Mar 24, 2016
Development stage
  • enUS
MIT License
Curse link
Reverse relationships
Recent files