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 Feb 8, 2016@MatissPL
Fixed and will be included in the next update. Until then Custom Enchantments with spaces in their name will not work using /ce give.
-
View User Profile
-
Send Message
Posted Feb 8, 2016/ce give MatissPL book Obsidianshield:1
[17:11:39 ERROR]: null org.bukkit.command.CommandException: Unhandled exception executing command 'ce' in plugin CustomEnchantments v2.4b at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) [craftbukkit.jar:git-Spigot-6abac0c-9935adc] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [craftbukkit.jar:git-Spigot-6abac0c-9935adc] at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:640) [craftbukkit.jar:git-Spigot-6abac0c-9935adc] at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [craftbukkit.jar:git-Spigot-6abac0c-9935adc] at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [craftbukkit.jar:git-Spigot-6abac0c-9935adc] at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [craftbukkit.jar:git-Spigot-6abac0c-9935adc] at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [craftbukkit.jar:git-Spigot-6abac0c-9935adc] at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [craftbukkit.jar:git-Spigot-6abac0c-9935adc] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [?:1.7.0_79] at java.util.concurrent.FutureTask.run(FutureTask.java:262) [?:1.7.0_79] at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [craftbukkit.jar:git-Spigot-6abac0c-9935adc] at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:714) [craftbukkit.jar:git-Spigot-6abac0c-9935adc] at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [craftbukkit.jar:git-Spigot-6abac0c-9935adc] at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:653) [craftbukkit.jar:git-Spigot-6abac0c-9935adc] at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:556) [craftbukkit.jar:git-Spigot-6abac0c-9935adc] at java.lang.Thread.run(Thread.java:745) [?:1.7.0_79] Caused by: java.lang.NumberFormatException: For input string: "Shield" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) [?:1.7.0_79] at java.lang.Integer.parseInt(Integer.java:492) [?:1.7.0_79] at java.lang.Integer.parseInt(Integer.java:527) [?:1.7.0_79] at com.taiter.ce.CeCommand.processCommand(CeCommand.java:443) [?:?] at com.taiter.ce.Main.onCommand(Main.java:629) [?:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [craftbukkit.jar:git-Spigot-6abac0c-9935adc] ... 15 more
-
View User Profile
-
Send Message
Posted Feb 7, 2016CraftBukkit is missing some code that was used in the new update. This caused any inventory related things to break. Added a workaround for that in the v2.4b.
EDIT: Update is released now
@Ic3Penguinz
Check the above
@kguava
Are you using CraftBukkit?
@phoenixlzx
Are you getting no errors at all? Not even when starting up? The config should update itself automatically, it seems more like a core problem that causes incompatibility.
-
View User Profile
-
Send Message
Posted Feb 7, 2016@Taiterio i have got the new update for CE and as i was testing along i come to notice that /ce menu does not work ,for me at least.
-
View User Profile
-
Send Message
Posted Feb 7, 2016wait
none of it is working
-
View User Profile
-
Send Message
Posted Feb 7, 2016the sign shops arent working
:(
plz fix i really need them
-
View User Profile
-
Send Message
Posted Feb 7, 2016@phoenixlzx
Disarm: Sword<sub> Cloaking: Armour</sub> Drunk: Armour i dont think they work on other things
-
View User Profile
-
Send Message
Posted Feb 6, 2016@skyzophrenic
Yeah but no effect on sword, on my server.
Looking up for any error in config.
-
View User Profile
-
Send Message
Posted Feb 6, 2016@MinerMinesmC
right click an anvil with a custom encahnted item and a gui will come up :D place a enchated item in the bottom and a book on the top to take off enchants: place a Rune on the bottom and item on the top to add enchants
-
View User Profile
-
Send Message
Posted Feb 6, 2016@phoenixlzx
the global generally should be used on axes/swords in my expierences
-
View User Profile
-
Send Message
Posted Feb 6, 2016@Taiterio
Hi, love the plugin, but how does runecrafting work? Also, does it allow you to make runes with a chance to work or not work? (I haven't looked deep at the plugin yet, but I had some experience with it from earlier on) Thanks!
-
View User Profile
-
Send Message
Posted Feb 6, 2016@skyzophrenic
Disarming is global enchant according to the changelog.
Other enchants are attached to right item and worked in previous versions.
Maybe there's anything should be updated in config?
-
View User Profile
-
Send Message
Posted Feb 6, 2016@skyzophrenic
Update will probably be on Sunday, fixed most of the reported bugs, going to test the more complicated ones (the ones I cant really reproduce over my servers :<) and after that I might release the update
@phoenixlzx
Looking into the code that handles this part, it seems like CE can't find the bow enchantments on your server. This is especially weird because the enchantments are found when shooting the bow. I cannot reproduce the bug, though I will check what is causing that.
For Disarming, Drunk and Cloaking:
I reworked Disarming to also work on mobs. All of them work just fine for me though, so I suspect I broke something in 2.4, will check it out.
@moldyscience
"ce.runecrafting"
@slayermarth101
Sure, but it probably won't be included in the next update
@PikaPvPx
Fixed in the next update
@CloudSix
This seems extremely weird, as there are no restrictions on putting enchantments from items onto books o.O
It seems like you are generally experiencing weird errors with very specific armor parts, can you pm me any errors that you are getting?
@Georggee
Wanted to change the permissions up a bit (still being compatible with earlier versions) that would allow server owners to configure enchantment usage more. (ce.ench.lifesteal.obtain.sign for example)
@Rulerish
Vampire should only have 1 level, fixed that in the next update. Wanted to create a page where this information is stored or even an ingame book that shows some configurable descriptions of the enchantments. Takes alot of time to do that though xD
@tcarey2015
I have experienced the same problem on a few occassions (without using CE though), it seems to be a Bukkit/Spigot bug, although all servers I experienced it on had multiverse on them. Can you pm me a list of plugins you are using?
I found out that sometimes, hitting the players multiple times turns them back to normal...
Durations should always be measured in ticks. For the descriptions, see the above.
@xH3LLRAIZ3Rx
Do you get any errors when you try using it?
@AleNova15551
@Georggee
In the next permission update I'll add some customizable messages for missing permissions. This will however not allow you to say things like "You need X rank for this", as this would be too complicated and specific to implement.
@MXKHD
Yes it does :)
@BaconFalcon
Removed the cooldown from autorepair as the idea was faulty and redundant...
-
View User Profile
-
Send Message
Posted Feb 6, 2016@Georggee
u can set it so each enchant is an individual permission if u dont use a blanket permission such as ce.enchant*
-
View User Profile
-
Send Message
Posted Feb 6, 2016@phoenixlzx
Those are armour enchants not sword
-
View User Profile
-
Send Message
Posted Feb 6, 2016@moldyscience
for runecrafting, right click an anvil with a custom enchanted item ;)
-
View User Profile
-
Send Message
Posted Feb 6, 2016any update this weekend or are you to busy? :P
-
View User Profile
-
Send Message
Posted Feb 5, 2016It seems many bow enchants are broken as well...
Error logs:
With spigot 1.8.8 and CE 2.4a
-
View User Profile
-
Send Message
Posted Feb 4, 2016What is the permission node for runecrafting? I've tried ce.cmd.menu, but it still won't let me access
-
View User Profile
-
Send Message
Posted Feb 4, 2016@CloudSix
Sure they've enabled already. Simply for disarming, what effect did you see?