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.
ah ok, unfortunately I cannot do /reload I have so many mods that doing an in game reload just crashes the server. I have to stop/start the server which takes about 10 minutes due to the amount of mods installed :P
thank you.
@CoasterCrazy
Yes, you can edit the config while the server is running and just do /reload to apply the changes. I don't have an individual reload command yet. (thanks for the idea)
If we edit the config while the server is running, is there a command to reload the plugin so it checks the config and run off the changes made to it?
@fuzyfeet
Disabling an item does the following:
And yes, to disable, just set it to false
I'm asking this here since I didn't know it was in the API (and feel a little dumb not noticing it), but how do I disabled an enchantment in a pack's config? Do I just need to add "enable: true/false" or is it different?
Edit: and a follow up question. If I do disable an enchantment, does that make it unusable if it's already out there on an item or if I used your LegendaryWeapons plugin?
@Eniripsa96
Wow that was quick. I had noticed that he hadn't been on and figured this would take some time, so thanks for looking into that so quick. On an RP(G) server the randomness of the enchanting table drives my mage's mad, and we all know where that leads...
@fuzyfeet
Well, I came up with a way to make EnchantPeek compatible with my API, I just need the author of it to be online and respond. I don't want to just use my modification without their approval. The author doesn't seem to get on often though :\ (hasn't been on in over a week, last two posts on own thread were a month apart o.o)
@Xephi59
Alright, I will do some investigating
@Xephi59
And http://pastebin.com/vWJucguk
@Eniripsa96
This problem persist with v2.5 and the NightVision method
Xephi
@rfsantos1996
I believe those errors were fixed with v2.5. If the problem still persists with that version, please let me know. Thanks for the feedback
http://pastebin.com/4MCm6ihX
v2.3, dont know why or when it occured. And some enchants like Jump and Night Vision continue after you loggin in, use /login and remove the equip (AuthMe Reloaded = /login)
Not sure if you have seen the EnchantPeek plugin, but it would be really cool having it so that the API will play with that plugin so we can use it with any plugins that use this API. I commented on that plugin about this hopping it will start a dialogue between your two.
@NXSGDSK
Interesting ideas, I wish you luck in making those and I'm glad you like the mod :)
@bbark9
Enchantments should be available in the enchantment table by default (as long as you have some items for the superconstructor). Changing the chance of getting it just requires the third parameter in the superconstructor which is the enchantment weight (1 being rare, 10 being common, any higher and it will be more common than any other enchantment in the game). Changing the enchantment levels you can get just requires overriding the getEnchantmentLevel(int) method. All of this can be found in the tutorials.
@Eniripsa96
Is there any modification I need to do or showing the enchantment table default.
Hi, i speak spanish so... my inglish it's not so good, please understand that :3
I am trying to create a lot of enchantments (and when i say a lot, are a LOT, like sixteen or more) because i was planning to create them someday and i just get to this page XD
I am going to create some called:
Piercing (ignores defence by putting fall damage instead of normal)
Ethereal (makes the player in a "noclip" status and gives him invisibility for 5 seconds)
Teleport (like the ender pearl effect by right clicking but no fall damage)
Fireshooting (like blaze when shoots fire charges by right clocking)
Flying (like in creative, with double space bar)
*Potion Effects* (to the player wielding the item and the player being hit)
*Spawn Blocks* (like spawning cobweb with a spider blade by right clicking)
Growing (like the bonemeal effect by right clicking, but instantly, no nerfed)
Curse (divide the health of the player being hitted)
Sacrifice (loosing one heart of health, deal double damage for ten seconds, actived by right clicking)
Some of the enchantments i want to do can't be done by this way, i think, so i will not work on them, but they are the next (maybe be a mod in a future XD)
A sword that absorbs the experience instead of the player to deal half a heart for every five leves.
A sword that makes half a heart by every light level down to 0 (light level 14 will be half a heart damage and 1 will be 7 hearts)
[The lifesteal, thunderstrike and return enchantments will be use by me n.n]
If someone can help with this proyects it will be awesome, i am going to start workng, se you later, and by the way, this is such great :D
@bbark9
yes
Are these enchantments possible to see in a enchantment table?
omg awesome
@zag09
I will be compiling a collection of enchantments to go along with this for those who do not want to create their own enchantments. A list of enchantments currently in this set include:
And currently planned ones are:
There's likely to be more when I'm done but that seems like a good list for a first release of it or something