EnchantmentAPI
Overview
EnchantmentAPI brings customization to enchantments. Change how common enchantments are, turn specific ones off, change the max levels, or create your own!
Requirements
Features
- Customize Vanilla enchantments
- Allow enchantments to be naturally obtained on normally unenchantable items (like steaks!)
- Use SkillAPI's skill editor to create your own enchantments
- Code your own custom skills using a simple API
- Allow enchantments to be merged above their normal max levels
- Reach enchantment levels not normally possible (custom enchantment level 5403? sure!)
- Control how many enchantments can be obtained on a single item
- View fancy graphs of enchantment probabilities in game!
- Start off with 50 custom enchantments by getting EnchantmentPack
More Details
For more information, view the wiki on GitHub
Support
I am not active on this site. For support, head over to the Spigot page.
Older Versions
Unforunately, to keep this project maintainable, versions of Bukkit/Spigot before 1.12 will not be supported. To use this plugin on those versions, use builds released before the recoded release.
How do I rename items with the anvil?
@DrewGDC
There are tutorial pages under the "Tutorials" section. Also, there the author put the javadocs under "Javadocs".
If anyone is having an error, make sure to add depend: [EnchantmentAPI] to your plugin.yml!
can you make enchantment maker for people who dont know about coding?
I am receiving what I believe to be as an error with the anvil. I have the custom anvil disabled in the config. Whenever I try to add a diamond sword with 6 enchantments to the anvil, it says: "This item is being repulsed by the anvil." It then proceeds to kick the diamond sword out of the anvil and back into my hand or inventory. It does this with any item that has 5-6 enchantments. Feedback is appreciated.
Please fix bug anvil
For 2 diamond_swords on anvil. then press 8 to retrieve.
We will clone infinite. So how to fix it!
Items such as axes, outages, ...
Thanks!
MC 1.10
Additionally, setting an enchant to isTableEnabled = false, doesn't seem to work. Still getting those enchants through the enchant table... searching for code location to fix...
Seems like the main issue, is the api not catching changes with isTableEnabled after the enchant has been updated.
To the developers, I found a fix for the current issue with applyEquipEffect and applyUnequipEffect.
https://github.com/Eniripsa96/EnchantmentAPI/blob/master/src/com/rit/sucy/enchanting/EEquip.java
In EEquip:67, that try/catch needs to be moved inside the for loop. It will work flawless then, cloned the repo locally and tested. Works like a charm
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.
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.
Is it possible to disable the random enchantment names in the table? Such as when enchanting a sword it says efficiency or power.
Players can get around disabled enchantments by applying books via anvil. Is there a fix for this?
How to fix error 1.9.2 : Spam consoler and lag:
http://pastebin.com/XrfBNKub
Thanks!
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
can someone give me the image of the config file?
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 :
-EnchantmentAPI.table
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 :
http://pastebin.com/dhwsdHPe
Thanks
@firelancer120
You are a retard.
Anyways, great plugin. Thanks for the API. Switching from lores to enchants tonight ! :D
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
Is it possible to make it so books that get enchanted turn into "enchanted_book" so it can be used on an anvil with another item? The anvil doesn't see "book" as a "echanted_book" even if it is enchanted. Or is there someway to fix this?
@pavelkf8
Update the plugin to 4.28