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.
I dont even know what to do I looked at the tutorials but I am clueless, it's better if you just compile them for us lol
Where is the javadoc? NVM, saw the link
@AlexSmith49
If anyone posts what they have made, I'll compile a page here with them all. Great idea by the way :)
Can someone put together a list of files that can be used with this? I'm sure others have made stuff they're willing to share.
@JefferiesTube
Alright, both of those are added for version 1.5. EnchantmentAPI.getEnchantments(ItemStack) will return all custom enchantments on an item while CustomEnchantment.removeFromItem(ItemStack) will remove the enchantment.
@Pocketkid2
Javadoc is now available
Very nice library. As I wrote you in Skype I could offer you a place for your JavaDocs - just let me know.
Two suggestions to improve your lib:
1. Make it possible to use and check equipments on armor or items in hand or in inventory. Would offer a lot of possibilities (we talked about that either).
2. Add a function to unregister an enchantment (useful for onDisable() of the plugin).
@Pocketkid2
I commented it so that I can generate a javadoc. I'm not sure where to post that though.
Will there be a javadoc for this?
@Kofeygames
Minecraft coding is very high-level so it is simply memorizing their API. How fast you will learn really depends on how good your memory is and what resources you have available and know how to use.
This seems coo! I am going to try it out! :D
@Eniripsa96
I may have to take you up on that offer haha.. How long does it take to learn to be able to code at a level to mess with minecraft and stuff, approx?
@Pocketkid2
It finally got approved! Have fun with it :)
@Kofeygames
Haha, teaching isn't too simple but you can add me on skype (skype name is eniripsa96) and ask questions as you try to get into it if that helps.
Damn I would use this so much if I knew how to code.. Teach me :<
This is the coolest plugin I have ever seen! When will it be released! I would like to use this!
@CeramicTitan
Alright, I just added a check for items having lore or not. That should fix that problem.
@Me4502
Alright, that shouldn't be too hard to add. I will work on that. Thanks for the suggestion!
EDIT: I added the armor/tool capabilities and updated the repository.
From what I can tell, this only allows for weapon enchantments... Maybe you could expand into tool and armour enchants?
Edit: But otherwise, this looks like a well done API.
@MaxdeWit
Don't advertise your server. :l
http://pastie.org/7991976
Also do you have skype?
@nayvin
Yes, it's actually quite simple.
hey can you make it so you can get potion effects on your sword like poison? or wither? or even health? :P