Custom Enchantments
Description
This plugin adds a whole bunch of awesome new Items and enchantments that are independent of the Minecraft Enchantment system.
This is my first plugin and at the same time my first Java Project.
For Suggestions/Commissions/Bugs/etc., leave a comment below.
Official Servers
If you want to see the plugin in action, check out the following servers!
Current official Servers:
- mc.canicraft.ca
- Draids.net
- p-n.ca
Videos of the Plugin
Please note that the following Videos were made using older versions of the plugin:
Commands
- /ce - The main command node for Custom Enchantments
Please note that for any command after the main node, you do not have to enter it's full name, the first letter is enough (Example: /ce list = /ce l).
Words in angle Brackets ( < > ) mean that the argument is required, while words written in square Brackets ( [ ] ) are optional.
- /ce runecrafting - Opens the runecrafting inventory.
- /ce menu - Opens an inventory menu for navigating and obtaining Custom Enchantments and Items.
- /ce reload - Reloads the CE config.
- /ce remove [Enchantment] - Removes an enchantment (or all of them) from an item.
- /ce list <Enchantment/Item> - Lists all Custom Enchantments or Items.
- /ce enchant [Required material] <Enchantment> [level] - Adds the specified Enchantment to the item in your hand. If a required material is given, the command will only work if the player holds that item. If an item already has the enchantment, the level will be increased.
- /ce item <Item> - Transforms the item in the player's hand into the specified Custom Item.
- /ce change <Name/Lore> <Color/Set/Add/Reset> [New Value] - Allows you to change the name/lore of the item in your hand
- /ce give <Player> <Material> <Item/Custom or Vanilla Enchantment:Level> [Custom or Vanilla Enchantment:Level] ... - Gives the target player an item with the set material containing the given Enchantments. Please note that the Material has to be either the Minecraft material ID or the Bukkit material ID. The same goes for the Vanilla enchantment names. You can add infinite vanilla and custom enchantments to the item using this command.
Content
Enchantments | Items
Admin Information
Config Explanation | All permissions
Enchantment Books
Version 2.4 added a feature called Runecrafting that allows enchantments to be put on books.
They can be created using /ce ench or /ce menu, given through /ce give and obtained by enchanting a book using the enchanting table.
If disenchanting is enabled, enchanted items can also be turned into enchantment books.
Using an enchantment book or an enchanted item on an Anvil will open the Runecrafting inventory, which can also be opened by using /ce menu or /ce runecrafting. The lower slot requires the enchanted item while the top slot requires the item to enchant.
Sign shops
If you are using version 2.2 or higher of the plugin, you can sell Enchantments by setting up a sign in the following format:
- "[CustomEnchant]" (Without the "s) as the first line.
- The Enchantment you want to sell as the second line.
- The cost of the enchantment as the fourth line. This requires Vault and a compatible economy plugin
Players that do not have the enchantment will have the enchantment applied to their current item, if they already have the enchantment they are trying to buy, the level of the enchantment will increase by 1, up to the specified maximum level of the Enchantment (Can be set in the config).
CE-Menu
If you have Vault installed, you can set a price for the Items/Enchantments through the config. The items and enchantments can then be bought in /ce menu.
CE's in Kits
To add Custom Enchantments and Items into kits, follow this guide:
- Check out if your kit plugin supports colored names and/or lores.
- Find example kits that add colored names and/or lores in your kit plugin
- For items, set "name: <Item>", for Enchantments, set "lore: <Enchantment>". You may have to find out how to add multiple lines of lore via your kit plugin
Notes:
The <Item> is structured like this: <Colorcode of the Item><The full Itemname>, the <Enchantment> is defined as: <Colorcode of the Enchantments><EnchantmentName> <Level in roman numerals>
The Colorcodes can be found on this site.
Examples:
Lifesteal would be "lore: &4&oLifesteal" (If you didn't change the standard color of the enchantments) &4 stands for the Color Dark Red, &o stands for the name being italic
In essentials, Lifesteal II and Poison III would be "lore: &4&oLifesteal II|&4&oPoison III" (Note: the '|' in the middle of the two enchantments seperates multiple lines in the lore of the kits made by essentials)
Flamethrower would then be "name: &4Flamethrower"
Bug reports
To make it faster and easier for me to help you with bugs and errors occuring, please send me a pm containing the following information:
- What version are you using? (See the Point Further Information to find out if a newer Version is avaivable)
- Does your console give you any errors? If yes, please send me a copy of them, this might make the further steps obsolete.
- What situation did the error occur in?
- Can you reproduce the error or does it happen randomly?
Donating
If you want to support development, you can donate by clicking here. It really helps me out a lot and I am thankful for every single donation, no matter how small :)
Github
If you want to contribute to Custom Enchantments or just want to take a look at the source code, you can check out the official repository of Custom Enchantments. Please note that the project was not originally designed for the public, so the project contains little to none documentation.
Current Version: 2.4c
Things that are planned for the future can be found here and you are also free to leave suggestions on there aswell
The main page for older versions can be found here.
-
View User Profile
-
Send Message
Posted Apr 17, 2015everytime a player would get a customenchantments-enchant i got this:
[21:59:05] [Server thread/ERROR]: Could not pass event EnchantItemEvent to CustomEnchantments v2.2b org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:305) [server.jar:git-Spigot-4c7d0c0-7d020a7] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [server.jar:git-Spigot-4c7d0c0-7d020a7] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [server.jar:git-Spigot-4c7d0c0-7d020a7] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [server.jar:git-Spigot-4c7d0c0-7d020a7] at net.minecraft.server.v1_8_R2.ContainerEnchantTable.a(ContainerEnchantTable.java:223) [server.jar:git-Spigot-4c7d0c0-7d020a7] at net.minecraft.server.v1_8_R2.PlayerConnection.a(PlayerConnection.java:1715) [server.jar:git-Spigot-4c7d0c0-7d020a7] at net.minecraft.server.v1_8_R2.PacketPlayInEnchantItem.a(SourceFile:22) [server.jar:git-Spigot-4c7d0c0-7d020a7] at net.minecraft.server.v1_8_R2.PacketPlayInEnchantItem.a(SourceFile:8) [server.jar:git-Spigot-4c7d0c0-7d020a7] at net.minecraft.server.v1_8_R2.PlayerConnectionUtils$1.run(SourceFile:13) [server.jar:git-Spigot-4c7d0c0-7d020a7] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [?:1.7.0_76] at java.util.concurrent.FutureTask.run(FutureTask.java:262) [?:1.7.0_76] at net.minecraft.server.v1_8_R2.SystemUtils.a(SourceFile:60) [server.jar:git-Spigot-4c7d0c0-7d020a7] at net.minecraft.server.v1_8_R2.MinecraftServer.A(MinecraftServer.java:710) [server.jar:git-Spigot-4c7d0c0-7d020a7] at net.minecraft.server.v1_8_R2.DedicatedServer.A(DedicatedServer.java:368) [server.jar:git-Spigot-4c7d0c0-7d020a7] at net.minecraft.server.v1_8_R2.MinecraftServer.z(MinecraftServer.java:651) [server.jar:git-Spigot-4c7d0c0-7d020a7] at net.minecraft.server.v1_8_R2.MinecraftServer.run(MinecraftServer.java:554) [server.jar:git-Spigot-4c7d0c0-7d020a7] at java.lang.Thread.run(Thread.java:745) [?:1.7.0_76] Caused by: java.lang.IllegalArgumentException: n must be positive at java.util.Random.nextInt(Random.java:300) [?:1.7.0_76] at com.taiter.ce.CEventHandler.handleEnchanting(CEventHandler.java:110) [?:?] at com.taiter.ce.CEListener.EnchantItemEvent(CEListener.java:679) [?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [?:1.7.0_76] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [?:1.7.0_76] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.7.0_76] at java.lang.reflect.Method.invoke(Method.java:606) [?:1.7.0_76] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) [server.jar:git-Spigot-4c7d0c0-7d020a7] ... 16 more
-
View User Profile
-
Send Message
Posted Apr 15, 2015@BrooklynStarr
I think its every economy plugin that breaks the Cost. I use Vault and its still not taking away cost.
-
View User Profile
-
Send Message
Posted Apr 14, 2015I ge this error when ever somebody is about to get a customenchantment while enchanting using enchantingtable!
14.04 15:17:26 [Server] INFO ... 15 more 14.04 15:17:26 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) [spigot25.jar:git-Spigot-b1e6da1-1092acb] 14.04 15:17:26 [Server] INFO at java.lang.reflect.Method.invoke(Method.java:483) [?:1.8.0_31] 14.04 15:17:26 [Server] INFO at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.8.0_31] 14.04 15:17:26 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [?:1.8.0_31] 14.04 15:17:26 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [?:1.8.0_31] 14.04 15:17:26 [Server] INFO at com.taiter.ce.CEListener.EnchantItemEvent(CEListener.java:679) [?:?] 14.04 15:17:26 [Server] INFO at com.taiter.ce.CEventHandler.handleEnchanting(CEventHandler.java:110) [?:?] 14.04 15:17:26 [Server] INFO at java.util.Random.nextInt(Random.java:388) [?:1.8.0_31] 14.04 15:17:26 [Server] INFO Caused by: java.lang.IllegalArgumentException: bound must be positive 14.04 15:17:26 [Server] INFO at java.lang.Thread.run(Thread.java:745) [?:1.8.0_31] 14.04 15:17:26 [Server] INFO at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:526) [spigot25.jar:git-Spigot-b1e6da1-1092acb] 14.04 15:17:26 [Server] INFO at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:623) [spigot25.jar:git-Spigot-b1e6da1-1092acb] 14.04 15:17:26 [Server] INFO at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) [spigot25.jar:git-Spigot-b1e6da1-1092acb] 14.04 15:17:26 [Server] INFO at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:683) [spigot25.jar:git-Spigot-b1e6da1-1092acb] 14.04 15:17:26 [Server] INFO at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_31] 14.04 15:17:26 [Server] INFO at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_31] 14.04 15:17:26 [Server] INFO at net.minecraft.server.v1_8_R1.PacketHandleTask.run(SourceFile:13) [spigot25.jar:git-Spigot-b1e6da1-1092acb] 14.04 15:17:26 [Server] INFO at net.minecraft.server.v1_8_R1.PacketPlayInEnchantItem.a(SourceFile:8) [spigot25.jar:git-Spigot-b1e6da1-1092acb] 14.04 15:17:26 [Server] INFO at net.minecraft.server.v1_8_R1.PacketPlayInEnchantItem.a(SourceFile:22) [spigot25.jar:git-Spigot-b1e6da1-1092acb] 14.04 15:17:26 [Server] INFO at net.minecraft.server.v1_8_R1.PlayerConnection.a(PlayerConnection.java:1681) [spigot25.jar:git-Spigot-b1e6da1-1092acb] 14.04 15:17:26 [Server] INFO at net.minecraft.server.v1_8_R1.ContainerEnchantTable.a(ContainerEnchantTable.java:203) [spigot25.jar:git-Spigot-b1e6da1-1092acb] 14.04 15:17:26 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot25.jar:git-Spigot-b1e6da1-1092acb] 14.04 15:17:26 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot25.jar:git-Spigot-b1e6da1-1092acb] 14.04 15:17:26 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [spigot25.jar:git-Spigot-b1e6da1-1092acb] 14.04 15:17:26 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:305) [spigot25.jar:git-Spigot-b1e6da1-1092acb] 14.04 15:17:26 [Server] INFO org.bukkit.event.EventException 14.04 15:17:26 [Server] ERROR Could not pass event EnchantItemEvent to CustomEnchantments v2.2b
-
View User Profile
-
Send Message
Posted Apr 14, 2015@Darkman_bree
That is perfect. I happen to have a plugin that changes lores already.
I'll stick around for the economy question.. I don't like giving stuff away for free on my server and I'm definitely not moving away from Mineconomy any time soon.
Thanks!!
-
View User Profile
-
Send Message
Posted Apr 14, 2015How Shielded is working?
-
View User Profile
-
Send Message
Posted Apr 14, 2015@hetjoshi
That sucks, I Always wanted to be a creeper.
@BrooklynStarr
There might be no way to unenchant items, but I know a trick for it. You require a plugin that allows you to relore items. Then you can remove the CEnchants cause they are actually lores.
-
View User Profile
-
Send Message
Posted Apr 13, 2015@Darkman_Bree
Self destruct isnt working
-
View User Profile
-
Send Message
Posted Apr 13, 2015@Taiterio
Thanks for this awesome plugin! 2 issues though.. 1) Price does nothing- all enchantments are still free. I'm using mineconomy and only because it's fully compatible with hyperconomy. 2) is there any way to "unenchant" an item?
Thanks again!! :)
-
View User Profile
-
Send Message
Posted Apr 13, 2015@Taiterio
I just tested the enchantments:
Aerial 2-shots an iron golem while i'm on ground, while i'm in air, I can't 2-shot him. Charge 2-shots an iron golem when sprinting, like expected. Revulsion Gives me nausea when I hit a person wearing the armor, like expected. Self-Destruct I know it will blow yourself up, but it doesn't for me, or am I doing it wrong?
Change idea's: Aerial: Should increase damage when in air, not on ground. Charge: No changes. Revulsion: No changes. Self-Destruct: Tell me how it works please!
-
View User Profile
-
Send Message
Posted Apr 13, 2015@hetjoshi
Whoa thats cool!
The nausea one was partly my idea, but didnt' have the name Revulsion. The Aerial sounds hard to use, you need to jump constantly, so you get Crit + Double Damage.
Self-Destruct looks usefull for giving karma to the person that killed you (blowing him up as well)
Charge, most people sprint to PvP, so yeah, thats usefull.
-
View User Profile
-
Send Message
Posted Apr 12, 2015@Darkman_Bree
Ok I think i know them, because i gave him the idea to add them, Aerial is when your in the air you do more damage, sucide i believe is when you die it puts tnt , and Revulsion causes nausea and charge i believe does more damage when you sprinting I believe. Also hopefully he adds in the other enchants later
-
View User Profile
-
Send Message
Posted Apr 12, 2015@Taiterio
Hey Taiterio, I see 2.2b came out, I wanna know what the new enchantments actually do and how they work, cause they are not viewed in the list of enchantments: http://dev.bukkit.org/bukkit-plugins/custom-enchantments/pages/all-enchantments/
I hope they are awesome :)
-
View User Profile
-
Send Message
Posted Apr 12, 2015I fixed my problem thank you :)
Is this possible to change the sound of an item ? The explosion's sound in the cracker is a little bit more, something less noisy should be cool And (again for the cracker) different crackers with different particles should be cool too :D (PS: Sorry for bad english, i'm french )
-
View User Profile
-
Send Message
Posted Apr 11, 2015hello i still had problem with SIGN sell can you help me by explaining more further about the sign enchantment?
-
View User Profile
-
Send Message
Posted Apr 11, 2015@jeannen
The only way it would reset back to the standard "DARK_RED;ITALIC", is if you entered the ChatColor wrongly. What exactly are you trying to change it to?
@DoctorDerpMC
Can you check if its a problem with the permissions?
Making the enchantments look like vanilla enchantments is planned, due to the problems it can cause however it is a slightly bigger project to tackle. The same goes for custom enchantments on books/anvils.
@Mushroom1e
Sorry for that, have been celebrating a bit :D
@PotionSplasher
Oh, thanks for informing me about cosmicpvp! They seem to have taken a liking in my enchantments :D
Their enchantments will be added to the plugin aswell in the next time since they sound really nice :)
I'll also hit up the developer to check if its okay with him
@CukumberKolector
Overload = Shielded :)
@redlego10
Essentials has a list of them here and now you should be able to get Sharpness 10 without a problem :)
Yes and yes :)
@Cortesian
Ich find das jetzige System noch ganz okay, weil letztendlich ist es ja gewollt, dass bei den Items der Name das Item speziell macht :D
Das Umbennen von solchen Items könnte ich ein bisschen angenehmer gestalten, aber es ist eben eher dafür gedacht, die Items vor dem intensiven Benutzen des plugins noch ein bisschen abzuändern :)
Um zu verhindern, dass die Spieler die Bilder der CE-Items kriegen könntest du ja das Umbennen zu den Namen der CE-Items verhindern :D
Uploading the new update tomorrow :D
-
View User Profile
-
Send Message
Posted Apr 11, 2015Hi ! I can't change the "CEnchantmentColor" in my config, when I reload, it come back to this horrible "DARK_RED;SAMPLE", how can I fix that ?
-
View User Profile
-
Send Message
Posted Apr 8, 2015Taiterio, the explosion enchantment won't work for me on my server for players that are not opped. I have turned on every explosion flag in my WorldGuarded regions and it still won't work. I really hope you can look into this.
Also, I was wondering if you would make it so that we could add the enchantments to books to make them enchanted books with the glowing enchantment etc. to make it look more like a Minecraft enchantment.
Can you also please make it so that when we add the custom enchantment to the item, it would have the glowing effect and the only way to enchant it is to combine it with something else other than having the enchantment AND enchanting it for exp levels?
Thanks for all the help you can give me, - DoctorDerp
-
View User Profile
-
Send Message
Posted Apr 8, 2015yea cant wait for the update
-
View User Profile
-
Send Message
Posted Apr 8, 2015@Taiterio
Ok cool :) but can you say like umm :D are u gonna upload it this week :D? Im in kinda hurry ;(.... But yeh great plugin u have made :)!
-
View User Profile
-
Send Message
Posted Apr 8, 2015@hetjoshi
Yes i was gonna suggest the cosmic pvp enchants! :)