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.
Anvil does not working, it only works creative mode
Error ... Can you help me? T^T
http://pastebin.com/9bD1Pi3c
@lorinthios
The anvil removes the level requirement twice.
@ Eniripsa96, you had this problem in the past too, remember? Perhaps it's the same issue again.
Issue with my members items poofing out of existance from anvils. Started happening after I added this API. Hopefully you know the issue as there is no stacktrace!
Let me know!
Lor
@MNCbrecht
No, enchantment plugins/mods that don't add enchants use Minecraft's enchantment system, which has a list of enchantments. To add an "enchantment" would be impossible without a mod, which is why you don't get the enchantment shininess effect when you just have a custom enchantment on an item. Because of that, this mod doesn't actually add "enchants"; it adds NBT tags and events. It isn't technically a Minecraft enchantment. That's why would be so hard to fix the enchant preview for 1.8.
please add this plugin support dev.bukkit.org/bukkit-plugins/magic/ the magic weapons will be added enchantments and others, i dont want that,it makes weapons strange :(
@MNCbrecht
Exactly what do you mean, like have a custom enchants plugin that doesn't depend on this API and have the EnchantmentAPI and plugins that depend on it installed too? If so, the that's a yes.
I'm currently making a plugin with this API, and it doesn't seem that the enchantments stack. For example, if I set a chance of (4 * levelOfEnchant)% chance of an effect activating, and I have that 5 levels of that enchantment on both my chestplate and sword, I still only get a 20% chance instead of 40%. Is it possible for you or me to make it so the enchants stack?
@fantasyvn1190
I didn't disable the anvil. I added an option to do so. By default it should still be enabled.
Hi EniRippsa96, I Used ColoredAnvil For My player can Rename There Own Items, But Seen You DIsable Anvil !!. Is there Any way To Fix This ?
@DarkWolf1974
Alright, I just uploaded a new version that handles the lapis cost at least. I'm probably not going to be able to handle the hint it gives you, so it won't be what you get. Getting the value seems hard enough as it seems to use a integer ID and is a value tucked away in the NMS container, but then expanding it to include custom enchantments would be impossible without a mod.
@Eniripsa96
I forgot to mention about the enchantment preview, where it displays one of the enchantments that will be applied to the item. Not sure how you can work with that one, if at all.
https://www.youtube.com/watch?v=HlVDJKH_OWE touches on that.
@Eniripsa96
https://www.youtube.com/watch?v=c55uC89RDdo
That explains it all.
@Eniripsa96
The levels required to do the enchantments are the same as always. IE: you must have 1 to 30 levels depending on what the vanilla enchantment is based on the bookcases. It's broken up into the three groups though.. Tier one enchantment uses 1 exp level, 1 lapis.. Tier 2 is 2&2.. And the highest enchantment will consume 3 of your levels and 3 lapis from the stack in the table. So I would have 30 exp levels to be able to do the highest enchantment.. Chuck in a diamond sword, 3 lapis and hit the highest enchantment, it would use those 3 lapis and knock me down to 27 exp levels.
@DarkWolf1974
How do lapis normally work? Is it 1 lapis = 9 levels or something?
@TheAgusIV
There's not currently a way to disable it.
@Eniripsa96
Not playing Minecraft?? I'm shocked! :)
Yup. 1.8 consumes 3 lapis and 3 levels used for the max enchant, needing at least 30 [or whatever the level enchant is] levels to fire it.
I also noticed that if I stick over 3 lapis in (lazy me, chucked a stack in), it consumed the entire stack. Assuming this is linked to the lack of 1.8 mechanics handling.
Hello, I have a problem with the anvil , a bug duplicate items , tell me how desabilito the anvil ? please
@DarkWolf1974
I didn't implement 1.8 mechanics in the current version as I wasn't even aware how they worked (that's what I get for not playing Minecraft).
@Nanjeang
There's settings for the cooldowns in the config for the corresponding enchant pack if you are using the EnchantmentPack.
@Zombiesking4260
Yes, the only way to make custom enchantments with this is via code. There are pre-built examples though in EnchantmentPack.