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.
Error with Potion Launcher
How Do Players Add Enchantments To The Sword/axe/pichaxe/armor You Get it???
Great Plugin!
Can You Just Add A Permission For RuneCrafting
Becouse People Cant Add Enchants
Thanks for updating this to 1.9. It works great! Is there any documentation on the new pricing per level for the config?
How do I remove all items?
I got a 2nd custom enchantments plugin so I could have even more enchantments, In that plugin, using the anvil works perfectly with their custom enchants, So I'm asking if you Taiterio could take a look if you can do that too?
I like CustomEnchantments better than that other plugin cause of lots of reasons
Oh but I can't leave this comment yet without a suggestion :P
Unusual For armor, Plays a cool particle effect around you, every level gives a different particle effect. (For example: Unusual I is Flames, Unusual II is happyVillager)
^ Okay, I was bored :P
Sweet
Wait 1.9 Support so soon yay! :D(I have started on making the server again newer and prettier xD)
Heyo, just uploaded the 1.9 update. Been busy with exams and work this month, sorry for the tardiness :)
@futhead_D3NYMoTiioN
I'll add it to my list :)
@MatissPL
Any information on this error? Please check if this still occurs in 2.4c.
@winnipeg23
Please try again in 2.4c.
@winnipeg23
This is a new feature in 2.4c :)
@PAINmatrix
Fixed in 2.4c
@ZetTtyu
Thanks! :)
@Hockeypickles23
The update is out now :)
@Bodyash
Fixed in 2.4c :)
@Remrox
The normal anvil CAN NOT be used to enchant with custom enchantments. Either use /ce runecrafting in 2.4c, click with an enchanted item on an anvil or open runecrafting on /ce menu in order to get to the correct inventory for this.
@ZetTtyu
Not as of now
@MCFUser64274
The update for 1.9 is out now.
@MatissPL
Added to my list :)
@SmokeDaWeed1
Did you follow the above guide for CE's in kits?
@TheClubMC
Fixed in 2.4c :)
@Rulerish
The update is out. Can't upload it as a premium plugin as I would require another project on spigot first.
@tcarey2015
Updated :)
@gepardo43
Fixed in 2.4c
@YellowZaki
Added in 2.4c
@EnderSandman
Fixed in 2.4c :)
@BoBo66334TheKing
Check your PMs :)
@Darkman_Bree
Thanks for the suggestions! :D
@ZinitiateGames
Give them the permission ce.runecrafting :)
@PAINmatrix
Fixed in 2.4c
@SammyXArtz
What do you mean by XP spins?
@a894985459
Can you check if it works in 2.4c? This might have been an issue with bows not working in general for some servers.
@EnderSandman
This is by design, as hiding the player completely would either a) make the player unhittable or b) remove the players armor for the duration. There is a better solution than these two, but it would require a lot of work to set up.
@nandox5
Thanks! :)
@futhead_D3NYMoTiioN
It would be really cool !!
Could you possibly add a random enchantment book command? Like "/ce give <player> random" which would give them a completely random book for them to use.
Task #5514 for CustomEnchantments v2.4b generated an exception 24.03 16:22:29 [Server] INFO java.lang.StringIndexOutOfBoundsException: String index out of range: -1 24.03 16:22:29 [Server] INFO at java.lang.String.substring(String.java:1967) [?:1.8.0_66] 24.03 16:22:29 [Server] INFO at com.taiter.ce.Enchantments.EnchantManager.getEnchantmentLevels(EnchantManager.java:219) [?:?] 24.03 16:22:29 [Server] INFO at com.taiter.ce.CEventHandler$3.run(CEventHandler.java:548) [?:?] 24.03 16:22:29 [Server] INFO at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71) [spigot45.jar:git-Spigot-5f38d38-12698ea] 24.03 16:22:29 [Server] INFO at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) [spigot45.jar:git-Spigot-5f38d38-12698ea] 24.03 16:22:29 [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:723) [spigot45.jar:git-Spigot-5f38d38-12698ea] 24.03 16:22:29 [Server] INFO at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [spigot45.jar:git-Spigot-5f38d38-12698ea] 24.03 16:22:29 [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot45.jar:git-Spigot-5f38d38-12698ea] 24.03 16:22:29 [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot45.jar:git-Spigot-5f38d38-12698ea] 24.03 16:22:29 [Server] INFO at java.lang.Thread.run(Thread.java:745) [?:1.8.0_66] 24.03 16:22:33 [Server] ERROR Could not pass event InventoryClickEvent to CustomEnchantments v2.4b 24.03 16:22:33 [Server] INFO org.bukkit.event.EventException 24.03 16:22:33 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) [spigot45.jar:git-Spigot-5f38d38-12698ea] 24.03 16:22:33 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [spigot45.jar:git-Spigot-5f38d38-12698ea] 24.03 16:22:33 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot45.jar:git-Spigot-5f38d38-12698ea] 24.03 16:22:33 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot45.jar:git-Spigot-5f38d38-12698ea] 24.03 16:22:33 [Server] INFO at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:1630) [spigot45.jar:git-Spigot-5f38d38-12698ea] 24.03 16:22:33 [Server] INFO at net.minecraft.server.v1_8_R3.PacketPlayInWindowClick.a(SourceFile:31) [spigot45.jar:git-Spigot-5f38d38-12698ea] 24.03 16:22:33 [Server] INFO at net.minecraft.server.v1_8_R3.PacketPlayInWindowClick.a(SourceFile:9) [spigot45.jar:git-Spigot-5f38d38-12698ea] 24.03 16:22:33 [Server] INFO at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [spigot45.jar:git-Spigot-5f38d38-12698ea] 24.03 16:22:33 [Server] INFO at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_66] 24.03 16:22:33 [Server] INFO at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_66] 24.03 16:22:33 [Server] INFO at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [spigot45.jar:git-Spigot-5f38d38-12698ea] 24.03 16:22:33 [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [spigot45.jar:git-Spigot-5f38d38-12698ea] 24.03 16:22:33 [Server] INFO at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [spigot45.jar:git-Spigot-5f38d38-12698ea] 24.03 16:22:33 [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot45.jar:git-Spigot-5f38d38-12698ea] 24.03 16:22:33 [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot45.jar:git-Spigot-5f38d38-12698ea] 24.03 16:22:33 [Server] INFO at java.lang.Thread.run(Thread.java:745) [?:1.8.0_66] 24.03 16:22:33 [Server] INFO Caused by: java.lang.NullPointerException 24.03 16:22:33 [Server] INFO at com.taiter.ce.CEventHandler.handleRunecrafting(CEventHandler.java:489) [?:?] 24.03 16:22:33 [Server] INFO at com.taiter.ce.CEListener.inventoryMenu(CEListener.java:163) [?:?] 24.03 16:22:33 [Server] INFO at sun.reflect.GeneratedMethodAccessor183.invoke(Unknown Source) [?:?] 24.03 16:22:33 [Server] INFO at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.8.0_66] 24.03 16:22:33 [Server] INFO at java.lang.reflect.Method.invoke(Method.java:497) [?:1.8.0_66] 24.03 16:22:33 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) [spigot45.jar:git-Spigot-5f38d38-12698ea]
hello, this plugin is not working for me well the enchants dont work. im running 1.8 plz help any1
Well 1.9 has been out almost a month now, all my other plugins have updated already. Just waiting on this plugin. I wouldn't say lazy, is it safe to say doesn't care? Just sayin, a simple comment from the author would put our minds at ease and stop the bitching. Do u know how hard it is to find other errors in the console with ce's spittin out errors constantly?
We are getting spammed by this error: http://pastebin.com/RBA8WK45 We are on 1.9
is there away to change the cost of the enchants like. firework 1 is $50, firework 2 is 100$, etc... make it so that the COST: in the config is for level 1 and it it time the enchants level by that number. so, firework 1 (1 x 50 = $50) firework 2 (2 x 50 =$100) firework 3 (3 x 50 = $150). Oh and love the plugin. My server is stormpvp.mcph.eu (not open yet)
I set the cost in the config but ingame level 1,2,3, etc are the same price. I'm saying that should be can change the price there and set there is level 1 then for level 2 you double that.
@ZetTtyu
Well said, I completely agree
@Hockeypickles23
Lol maybe if you're not happy with this plugin you should ask someone to make a private one. You wouldn't have any problem ! Why are you all so impatient to update your servers on 1.9 ? the game isn't stable and more than a half of the plugins aren't up to date so wait and stay on 1.7/1.8. Taiterio does a great job here, even if he doesn't respond as quick as you want him to, you can't say he is lazy just because after 3 minutes you've posted your question he did not respond you. damn ! And remember that were all humans and not computers, we all have a life and it's not because you brought something for some people that you will stop to live your life !
@Hockeypickles23
Dude, this is a free plugin. No wonder he's not continuing it because of people like you who are just ungrateful.
Where is the developer for this? He needs to stop being lazy. This is the core of my server.