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 22, 2014Now plugin run in 1.5.2 but healing items display this error: http://pastebin.com/kWmui9yC
but really thanks for your help and your work
(sorry for my bad english)
-
View User Profile
-
Send Message
Posted Jan 22, 2014I set the proper permissions and then they seemed to start working. Then I came on and checked dis-morning, they all said something like this. For example the blind enchant "?4?oBlind" and it did not work. They were all like this... Please help I love this plugin!
P.S.: I am using this on a kitpvp server so the enchanted items are in kits.
-
View User Profile
-
Send Message
Posted Jan 21, 2014Custom Enchantments 1.1c has been released:
Titled the "Let's try that" Update
Main Changes:
I have changed this page a bit, please re-read everything and of course giving feedback on it is allowed (Yes, that means Criticism too) :D
Note: If you can't see it as a download on the right, wait until it has been approved by Bukkit Staff!
-
View User Profile
-
Send Message
Posted Jan 21, 2014@zicion
Which version are you using? Do you have the permissions for the items you are trying to use? Do you have any errors in your console?
@alanthya
Same as above, I need this information to know where the problem lies
@lawhit
Thanks for the error, but it seems like I'll have to investigate further;
Apparently the command fails at giving the enchanted item to the player, giving back an error that either a) The Inventory of the player or b) the item could not be found (Which would be pretty weird :O). Do you have any other errors? If yes, could you send them to me via pm?
@njabronco
Yeah, the problem with the current way of configurability is that it takes ages to implement, however I already have plans of a way for me to add these enchantments pretty easily and have it as configurable as possible.
From the list of ideas, I copied them over to my list of possible enchantments, as most of them would be easy to add. The only thing that I probably cannot do is the Clone enchantment, as I tried with making my own copies of human entities before and I could not get the damage working, as it would crash the whole server when attacking the clone. But other than that the skin and the name were working, so if I could figure out a way to figure something out with them being oneshottable and if I can find a way to control their head movement, I'll be sure to add it too :)
@KittiesInSnow
A GUI would actually be pretty neat, but I'd prefer doing that after having reworked my code :D
However, you can already put those items into kits, if you set the names or lores of the items to those of my plugins. For example:
An enchantment would be: &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
An item like the Flamethrower would be: &4Flamethrower
So all you'd have to do is find the correct color of the enchantment/item, find its color code here and then just put the color code infront of the name/lore
-
View User Profile
-
Send Message
Posted Jan 21, 2014The items do not seem to be working for me... But I am able to enchant them.
-
View User Profile
-
Send Message
Posted Jan 21, 2014Commands work, items don't? Regenerated the config too.
-
View User Profile
-
Send Message
Posted Jan 20, 2014Hey doood,
you cant do /enchgive .... .... .... why not? it wont work with me it gives an error?error:
08:36:26 org.bukkit.command.CommandException: Unhandled exception executing command 'enchgive' in plugin Custom Enchantments v1.1b 08:36:26 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-14-g15b04d8-b2991jnks] 08:36:26 at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:199) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-14-g15b04d8-b2991jnks] 08:36:26 at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchCommand(CraftServer.java:544) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-14-g15b04d8-b2991jnks] 08:36:26 at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchServerCommand(CraftServer.java:531) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-14-g15b04d8-b2991jnks] 08:36:26 at net.minecraft.server.v1_7_R1.DedicatedServer.aw(DedicatedServer.java:286) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-14-g15b04d8-b2991jnks] 08:36:26 at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:251) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-14-g15b04d8-b2991jnks] 08:36:26 at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:545) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-14-g15b04d8-b2991jnks] 08:36:27 at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:457) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-14-g15b04d8-b2991jnks] 08:36:27 at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-14-g15b04d8-b2991jnks] 08:36:27 Caused by: java.lang.NullPointerException 08:36:27 at com.github.taiter.Main.onCommand(Main.java:1551) [?:?] 08:36:27 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-14-g15b04d8-b2991jnks] 08:36:27 ... 8 more
-
View User Profile
-
Send Message
Posted Jan 20, 2014First of all, the plugin is great, but the config is a little lacking. A configurable height on the Power Gloves, for example? And when 2 people pick each other up, the server crashes.
Also, I have a few suggestions for the next update.
Update - Sword only. With every (Configurable) amount of kills, the sword increases in strength from the following list.
Wood Gold w/ Unbreaking Stone Iron Diamond Diamond w/ Sharpness I Diamond w/ Sharpness I, Fire Aspect I
Landing Boots - When the boots are equipped, you take no fall damage while landing on (configurable) blocks.
Sniper - Bow. 1 shot any entity if the shot is longer than (configurable) distance.
Ninja - Any armor. When ninja armor is equipped, the wearer gets full invisibility (including no visible armor/items) when crouching.
Disguise - Any armor. When disguise armor is equipped, the wearer looks like the block they are standing on.
Disguise - Alternative to the above suggestion. Any item. When you right click a block with the disguise item, you look like that block.
Monk - Any item. When you hit an enemy, it switches the item they are holding with another item. (Configurable) cooldown.
Clone - Any item. When right clicked, it spawns a "clone" of you, with your exact same skin, name, etc. Clones are one-shottable, and only 1 of each person can exist at a time. When the player dies, the clone dies too.
For the stomper boots, include an option for it to work within a certain configurable radius, and an option that negates fall damage even if they miss the stomp.
I know this is a tall order, but if you could include any of the above in the next update, that would be awesome.
Thanks, -nja
-
View User Profile
-
Send Message
Posted Jan 20, 2014Is there a way to make this kit compatible, or tie it to an item? Like, click on an item that opens up a gui for one enchant, then you put (enchanted or already enchanted) sword/bow/etc in, and it applies that enchant? Or, could you add a cooldown for each command in the config?
-
View User Profile
-
Send Message
Posted Jan 20, 2014@Wwenova123456
It's not approved yet, just wait until it's released
@ryanthemagi
Fixed all of that in 1.1c, if you want it now, pm me
@GUNNGaming
You can always find those materials under http://jd.bukkit.org/rb/apidocs/org/bukkit/Material.html
@StryykerHD
Atm, my plugin is only compatible with WorldGuard to fix such problems, as I cannot check if the event of you attacking gets blocked by another plugin or not, but I will try to figure something out for that
@Wwenova123456
It's already out, but not approved, if you need it, just pm me
@chopstick121
Essentials has nothing to with this plugin
-
View User Profile
-
Send Message
Posted Jan 19, 2014Where can i download 1.1b? I am kind of a noob to bukkitdev XD
-
View User Profile
-
Send Message
Posted Jan 19, 2014@Taiterio
Yes, I'm using 1.1b. When I say the effect is short-lived, I mean when you put on all 4 pieces of armor, your view changes as if a potion effect is being applied to you but it vanishes in a second or two.
-
View User Profile
-
Send Message
Posted Jan 19, 2014Found out how to do with 1 word materials like bow but not with any shovel or sword.
-
View User Profile
-
Send Message
Posted Jan 19, 2014Hey i found another glitch and thanks for fixing the iron block thing in the "b" update but this problem consists of faction and me and my friend being in the same faction can hurt ourselves only with the custom enchantments but not with regular enchantments or damage but only custom enchant damage so please fix that thank you
-
View User Profile
-
Send Message
Posted Jan 19, 2014Not to rush you guys or anything... but when is 1.1b coming out? I sort of need it soon :/ But still it is a nice plugin, and it was great when i used it before. Keep up the good work!
-
View User Profile
-
Send Message
Posted Jan 19, 2014@Taiterio
so if i were to use essentials to set the enchantments how would i do that?
-
View User Profile
-
Send Message
Posted Jan 19, 2014@FingersMeller
You would have to remove their permission for customenchantment.canEnchant
@Wwenova123456
What was your problem exactly? I thought you wanted to know how to restrict the use of the enchantments for your players :O
@sigler
Try using Version 1.1b when it's released
@ryanthemagi
I'm gonna look into a fix for that, you are using 1.1b? What do you mean by the effect is short-lived? Is your console giving you any errors?
-
View User Profile
-
Send Message
Posted Jan 19, 2014Running the latest version and swimsuit is still broken. I can get it to work when I enchant all 4 pieces of armor, but the effect is short-lived. Once I open my inventory, the swimsuit stops working and I can't get it to work until I log out/log in.
-
View User Profile
-
Send Message
Posted Jan 19, 2014@sigler
Hey, I had this issue before. Before the enchantment on the item/armour does it say Null? if so then reinstall. Other than that try 1.1b?
-
View User Profile
-
Send Message
Posted Jan 19, 2014Hello,
For some reason the plugin will setup the weapon/armor/ect enchant, however the enchant won't work. Mini gun for example. I added it to a bow and yet it will only shoot normally.
I tried 1.1a and then 1.0.9c (since server is 1.7.2). Nether seem to want to work.
Anyone had/having this issue?