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.
@Frazimuth
I can't find any problems with the right clicking or item disappearing as all of the times I've done it, neither one of those have shown up. The only thing that I can think of that would cause it is some sort of error in the console window.
As for the names, yeah, its a bit strange with the long randomly generated names. I'll make it so that you can't rename them to avoid the issue.
I'm having issues using the anvil on custom or vanilla enchanted items.
1. When trying to repair an item, cannot right click while holding diamond/whatever to drop off 1 by 1 into the anvil middle slot, have to put in a set number manually.
2. Sometimes my items seem to just disappear and I lose the entire thing along with whatever item I tried to repair it with.
3. Since there is a character limit in the anvil, it seems to glitch out and cost more levels even if you have not touched the Name box.
I looked around and could not find anything on these, so I don't know if they are common problems or a new bug.
I am running Win7 x64 with CB 1.5.2-R1.0, EnchantAPI, it occured on the 4.6 version, and also did on the 4.7, with the potion, active, and passive pack. (among other plugins)
@brianpmdsn
Oh, yes, I completely forgot to check if its a dispenser (I thought the event was only firing projectiles from living entities, so I guess I learned something new :)) I'll fix that and put it in v4.7
Keep getting an error, with a dispenser when a fire charge go's off, related to EnchantmentAPI, i waited for the current update, to see if you caught it or not but its still there it seems, if there are mutiple dispenser's being used, it causes pretty bad lag, with the error reports..
22:35:45 [SEVERE] Could not pass event ProjectileLaunchEvent to EnchantmentAPI v 4.6 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav a:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j ava:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j ava:462) at org.bukkit.craftbukkit.v1_5_R3.event.CraftEventFactory.callProjectile LaunchEvent(CraftEventFactory.java:578) at net.minecraft.server.v1_5_R3.World.addEntity(World.java:929) at net.minecraft.server.v1_5_R3.World.addEntity(World.java:896) at net.minecraft.server.v1_5_R3.DispenseBehaviorFireball.b(DispenseBehav iorFireball.java:52) at net.minecraft.server.v1_5_R3.DispenseBehaviorItem.a(DispenseBehaviorI tem.java:13) at net.minecraft.server.v1_5_R3.BlockDispenser.dispense(BlockDispenser.j ava:82) at net.minecraft.server.v1_5_R3.BlockDispenser.a(BlockDispenser.java:110 ) at net.minecraft.server.v1_5_R3.WorldServer.a(WorldServer.java:532) at net.minecraft.server.v1_5_R3.WorldServer.doTick(WorldServer.java:200)
at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:5 55) at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:2 26) at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:4 77) at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java :410) at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:5 73) Caused by: java.lang.NullPointerException at com.rit.sucy.enchanting.EListener.getItems(EListener.java:371) at com.rit.sucy.enchanting.EListener.onProjectile(EListener.java:247) at sun.reflect.GeneratedMethodAccessor112.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:425) ... 17 more
caught it saying something about fire ball / fire trap enchantment?
other plugins i run are LegendaryWeapons | EnchantmentAPI | EnchantmentPack | MCCore
@MGbeenieboy
Sure, I haven't added language files just yet but it will help when I do
The languages where the words can be male/female/objectively have to adjust their adjectives to the following substantiv, so that the translation will ever be ungrammatically in f.e. german. PS: Want the german translation? It took a few hours :D
@MGbeenieboy
finally was approved :)
where is the API v4.6?
@Lukethenuke @Byciek
If you'd like, you can add me on skype and I can provide prompt fixes to the problems you have. My skype name is simply Eniripsa96.
@Eniripsa96
I assume this just means I need EnchantmentAPI 4.6? http://pastebin.com/gLa2R9dn
I'd also like it via PM personally.
Could you send me link to 4.6 here or via PM?
@Eniripsa96
Oh I see. I'll check back often then, thanks.
Love the plugin by the way.
@Frazimuth
Waiting for it to be approved x.x
@Eniripsa96 I cannot find the download link for the API version 4.6.
@tanjx
That is an error with the update to the enchanting process. If you have both the pack version 2.6 and the API version 4.5, then you might need to get the API version 4.6.
2013-06-29 23:14:41 [SEVERE] Error occurred while enabling EnchantmentAPI v4.5 (Is it up to date?) java.lang.NoSuchMethodError: com.sucy.potion.ConfigurableEnchantment.setBase(D)V at com.sucy.potion.ConfigurableEnchantment.<init>(ConfigurableEnchantment.java:95) at com.sucy.potion.ConfigurableEnchantment.<init>(ConfigurableEnchantment.java:47) at com.sucy.potion.passive.PotionPassive.<init>(PotionPassive.java:29) at com.sucy.potion.passive.NightVision.<init>(NightVision.java:23) at com.sucy.potion.EnchantPotionPack.registerEnchantments(EnchantPotionPack.java:96) at com.rit.sucy.EnchantmentAPI.reload(EnchantmentAPI.java:102) at com.rit.sucy.EnchantmentAPI.onEnable(EnchantmentAPI.java:71) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:396) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:383) at org.bukkit.craftbukkit.v1_5_R3.CraftServer.loadPlugin(CraftServer.java:303) at org.bukkit.craftbukkit.v1_5_R3.CraftServer.enablePlugins(CraftServer.java:285) at net.minecraft.server.MinecraftServer.func_71243_i(MinecraftServer.java:530) at net.minecraft.server.MinecraftServer.func_71222_d(MinecraftServer.java:496) at net.minecraft.server.MinecraftServer.func_71247_a(MinecraftServer.java:420) at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:218) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:652) at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:573)
@Jidiiot
1.) Check the serverlog, there should be some kind of error. 2.) Check the versions of either plugins. if you have the newest versions it should work. Keep in mind that there have been some changes in the API that required EnchantmentPack to update so make sure you have compatible versions.
I cant get the Enchantpacks to work with the Enchantmentapi:/ Do i need to rename the plugins or something?
Look: http://gyazo.com/bf6754c28b99a16a9a9103289aefd2b3
http://gyazo.com/4c68c4458b25fc0d4d78fc8314768faa
@Lukethenuke
I shall keep that in mind, thanks for the suggestion
@Eniripsa96
I know you've been keeping busy fixing bugs and whatnot but I feel like one cool feature you should consider for the future is the ability to require items that get consumed when enchanting something with either a vanilla or enchantment pack enchant. This would be configurable in a config file.
Just a thought. Thanks for all your work.