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 Jan 6, 2014Feature request: Is it possible to make it so when you attempt to repair one of these enchanted items, the enchant is removed?
-
View User Profile
-
Send Message
Posted Jan 6, 2014A few notes:
I can't get poison ivy, piranha, or bear traps to work.
I love Druid boots, but I don't like the custom lore on it "Greenpeace aint got shit on me." Is there a way to edit that? The /setlore command returns the error "Usage: /setlore <color> <lore>" even when I use it correctly.
Thanks. Love the plugin.
-
View User Profile
-
Send Message
Posted Jan 6, 2014Please could you add a message.properties config file or something, I really want to edit all the messages.
-
View User Profile
-
Send Message
Posted Jan 6, 2014[19:47:38] [Server thread/INFO]: [Custom Enchantments] Enabling Custom Enchantments v1.1 [19:47:38] [Server thread/ERROR]: Error occurred while enabling Custom Enchantments v1.1 (Is it up to date?) java.lang.IllegalArgumentException: Plugin already intialized! at org.bukkit.plugin.java.PluginClassLoader.initialize(PluginClassLoader.java:98) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks] at org.bukkit.plugin.java.JavaPlugin.<init>(JavaPlugin.java:59) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks] at com.github.taiter.Main.<init>(Main.java:64) [?:?] at com.github.taiter.PlayerListener.<init>(PlayerListener.java:107) [?:?] at com.github.taiter.Main.onEnable(Main.java:76) [?:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:250) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:350) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:384) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadPlugin(CraftServer.java:298) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.enablePlugins(CraftServer.java:280) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.reload(CraftServer.java:630) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks] at org.bukkit.Bukkit.reload(Bukkit.java:279) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks] at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:23) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:196) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchCommand(CraftServer.java:542) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchServerCommand(CraftServer.java:529) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks] at net.minecraft.server.v1_7_R1.DedicatedServer.aw(DedicatedServer.java:286) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks] at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:251) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:545) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:457) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks] Caused by: java.lang.IllegalStateException: Initial initialization at org.bukkit.plugin.java.PluginClassLoader.initialize(PluginClassLoader.java:101) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks] at org.bukkit.plugin.java.JavaPlugin.<init>(JavaPlugin.java:59) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks] at com.github.taiter.Main.<init>(Main.java:64) [?:?] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [?:1.7.0_45] at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) [?:1.7.0_45] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) [?:1.7.0_45] at java.lang.reflect.Constructor.newInstance(Unknown Source) [?:1.7.0_45] at java.lang.Class.newInstance(Unknown Source) [?:1.7.0_45] at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:52) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks] at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:133) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks] at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:308) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks] at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:231) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadPlugins(CraftServer.java:255) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.reload(CraftServer.java:628) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks] ... 10 more [19:47:38] [Server thread/INFO]: [CustomItemsAPI] Enabling CustomItemsAPI v1.1 [19:47:38] [Server thread/INFO]: [CustomItemsAPI] CustomItemManager initialized. [19:47:39] [Server thread/INFO]: [CustomItemsAPI] CustomItemsAPI has been enabled.
-
View User Profile
-
Send Message
Posted Jan 5, 2014@pikadude1228
@ProVisionzHD
Go into your Server's folder and open server.log, send me a pm with its contents or find an error, it looks sorta like this:
2041-12-83 84:20:93 [SEVERE] Could not pass event EntityDamageByEntityEvent to Custom Enchantments org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ... at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419) at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582) Caused by: java.lang.NoClassDefFoundError: com/sk89q/worldguard/bukkit/WorldGuardPlugin at com.github.taiter.PlayerListener.onHit(PlayerListener.java:1542) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 19 more
-
View User Profile
-
Send Message
Posted Jan 5, 2014Samething as pikadude, i dont know im a noob so. lol
-
View User Profile
-
Send Message
Posted Jan 5, 2014how do i get an error log?
-
View User Profile
-
Send Message
Posted Jan 5, 2014@Burntscale
Good to know, I will see if I can somehow fix that error :o
@ProVisionzHD
Can you send me an errorlog?
@pikadude1228
Same as before, I need an errorlog to see what the actual problem is.
-
View User Profile
-
Send Message
Posted Jan 5, 2014how do i make the enchantments themselves work, it labels it, and then says runes have appeared on your item, but the enchantment itself does not work
-
View User Profile
-
Send Message
Posted Jan 5, 2014I just tried to go on 1.7.2 with the latest one and yet nothing still works
-
View User Profile
-
Send Message
Posted Jan 5, 2014Hello i dont whats wrong but barely any of them work. I have worldguard and im running the 1.6.4 jar please help!
-
View User Profile
-
Send Message
Posted Jan 4, 2014I fixed the issue. I just needed to install WorldGuard and it fixed everything.
-
View User Profile
-
Send Message
Posted Jan 4, 2014@xXsheburnslikethesunXx
Try redownloading the Version 1.1 and see if it still doesn't work
@Vister81
Not atm, but it's a planned feature
-
View User Profile
-
Send Message
Posted Jan 3, 2014nvm, i downloaded the unaproved version, and that fixed it.
-
View User Profile
-
Send Message
Posted Jan 3, 2014why does some of the enchants not work, and the reload command dont work ?
-
View User Profile
-
Send Message
Posted Jan 3, 2014Hi. Is there any way to translate Enchantmemts personally? Thanks!
-
View User Profile
-
Send Message
Posted Jan 2, 2014//====== =( some of the enchantments didn't work. Like Bombardment, Lightning, Hookshot. or pyroaxe. Sorry for sounding like a noob but how do i fixed it @Custom Enchantments v.1.1 ======
-
View User Profile
-
Send Message
Posted Jan 2, 2014@Burntscale
Hmm, it somehow finds WorldGuard on your server and then it complains later on because WorldGuard could not be found o.O
Try redownloading Custom Enchantments 1.1 when it's approved, I hope it's fixed
-
View User Profile
-
Send Message
Posted Jan 2, 2014@Taiterio
PM'd you the error log. Only running worldedit and this plugin.
-
View User Profile
-
Send Message
Posted Jan 2, 2014@Weave2
The require permissions thing restricts the use of the enchantments, if a player does not have the required permission and requirePermissions is set to true, then he won't be able to use them at all
@ThSaWNinja
Did you activate them? Are you trying to use Shift + Rightclick while holding an item to fly?
@Burntscale
Do you have any errors in the console? Which other plugins are you using?