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 8, 2015when is the next update?
-
View User Profile
-
Send Message
Posted Apr 8, 2015all right cool, thanks
-
View User Profile
-
Send Message
Posted Apr 7, 2015@CukumberKolector
They made it, they got most of the enchantment Ideas from this plugin but don't worry I told him about the cosmic pvp enchantments and some of my cool ideas so we will end up having better enchants then they do lol, and having all the enchantments
-
View User Profile
-
Send Message
Posted Apr 7, 2015ok I have a question this server cosmicpvp has this plugin, but they have the enchantment overload but when I got this plugin I don't? so did they make it or is it real and I didn't do it right?
-
View User Profile
-
Send Message
Posted Apr 7, 2015@Taiterio
The alternate color codes is pretty, I am hoping to see the next update its gonna be so sick hopefully you add the enchantments i gave you and the maxbans compatibility. Don't rewrite how normal enchantments would work that would take so long lol.
-
View User Profile
-
Send Message
Posted Apr 7, 2015@Taiterio: Thanks a lot! So if I understand correctly, I can now vanilla enchant (without funky text) up through 10, using /ce enchant, and then the bukkit enchantment codes? Where could I find a list of these codes? Up through 10 is just fine for our purposes.
Likewise, with the update, I should now be able to use /ce change (lore/name) color <input> where input is &b, &5, etc? If so, that is great. Can you clarify whether /ce change (name/lore) set <&bSample> will also apply the color corresponding to &b? This is less important to me if the "color" argument accepts color codes.
Thank you very much!
-
View User Profile
-
Send Message
Posted Apr 7, 2015@Taiterio
Was hältst du übrigens von einem System, die Items über irgendwas aus den Lores kenntlich zu machen anstatt durch Namen? So ließen sich CE-Items am Amboss umbenennen und wenn man einen Namen in den Configs ändert, wären nicht alle alten Items funktionslos. Und naja, ich will nicht, dass Spieler die Bilder von den CE-Items durch umbenennen bekommen können :P
-
View User Profile
-
Send Message
Posted Apr 7, 2015@redlego10:
The enchantments are displayed as they are called in the language file. If you add them in a resource pack, you see it as it should be, if you don't, then there's no way to do that correctly. You may add that to your server's resource pack.
-
View User Profile
-
Send Message
Posted Apr 6, 2015@redlego10
I hope you take no offense in it, but it was mostly like that because no one was asking for it so far and I didn't see a problem with it :P
The names for the colors are the ones used that Bukkit uses code-wise, the ones you want to have added are called "Alternate color codes". Since it was very simple to support them, it's already included in the next update :)
I also added the ability to add vanilla enchantments via /ce enchant. You will however have to use either the Bukkit name or the IDs of the enchantments as an argument (If you want this changed just say so). Any level above 10 will not be shown correctly anymore, as the vanilla enchanting system cannot handle displaying such high leveled enchantments correctly. Adding support for that would take quite a while considering that I'd have to rewrite how vanilla enchantments get displayed in the lore of the items.
@Mushroom1e
I'll do some last bugfixing, add some features I want to see added and maybe some new enchantments, then I'll upload it :)
-
View User Profile
-
Send Message
Posted Apr 6, 2015Question: Why have you added a separate function for coloring item names and item lores instead of allowing the use of standard minecraft color codes ( &8, &b etc) in the basic /ce change name set <input> command? As it is, the /ce change name color <input> does not even allow color codes, instead only allowing specific color words, to which not all colors are intuitive. ( I was trying to make the light blue color corresponding to &b. ) Is there a possibility of adding color code functionality in the /ce change name set <input> and /ce change lore set <input> commands? for example, currently /ce change name set &bSample will name the item, in white, "&bSample" instead of the desired outcome, a light blue colored "Sample."
As a separate request, is it possible to add vanilla enchantments to the functionality of /ce enchant? Specifically, I'd like to be able to add vanilla enchantments that exceed the level cap with the /ce enchant command, ideally also displaying cleanly ( Protection X instead of protection.enchantment.10 )
-
View User Profile
-
Send Message
Posted Apr 6, 2015@Taiterio
Okey cool can u reply to me when there is a new update plz and hurry plz :D....
-
View User Profile
-
Send Message
Posted Apr 5, 2015@Mushroom1e
I put a fix in for that, it seems like the plugin doesnt recognize the enchantment's permissions being child permissions of ce.ench.*; uploading the updated version in the next few days :)
-
View User Profile
-
Send Message
Posted Apr 5, 2015Hello! So my problem is.. I gave the normal pplayers the permission: ce.ench.* , BUT they still cant get the custom enchants out of the enchantment table.. I am OP so i can but normal players cant! PLZ HELP ME TO SOLVE THE PERMISSION! thnx..
-
View User Profile
-
Send Message
Posted Apr 4, 2015@CukumberKolector
Obfuscating code is not allowed on Bukkit. The source of the plugin can be found on here, you are free to fork it if you want :)
@lathame
Could you upload your kits file to pastebin and pm me a link so I can test it on my side? :D
@Cortesian
Sounds like a great idea! Just noticed your fork, glad to see other devs use the plugin for their own projects :)
Mir gefällt auch echt die Idee dahinter, werde mal öfters reingucken :D
-
View User Profile
-
Send Message
Posted Apr 4, 2015ok so I have a server and I would like to create my own enchantments based off your design (because its firkin epic) but I cant seem to edit the files because there encrypted or something please help!
-
View User Profile
-
Send Message
Posted Apr 3, 2015For some reason the enchants in essentials kits aren't working. Just make sure it wasn't something I was doing I copied and pasted the example you gave. When I use the kit it's as if there's no lore there at all. No errors in console. Any help would be much appreciated, thanks!
-
View User Profile
-
Send Message
Posted Apr 3, 2015So far, what I did was playing around a littlebit with battle axes (axes that have Attack Damage 5 to 8), knifes (swords with AD 3-6), clubs, maces, spears - stuff like that. First, I wanted to do that in my own plugin, and well, it worked. But some day, I noticed that I had absolutely no idea how to make a block do custom stuff like you did regarding to traps, landmines etc. Then, you've already added this chest GUI thing and I'm a GUI freak. I try to do my MC stuff visually as beautiful as possible, what is hard if you use CraftBukkit, so this was very nice as well. I'm working together with a friend who currently works on a Resource pack that uses MCPatcher's Custom Item Textures function to give the items added by CE, Sn0wSt0rm's Brewery (that's a plugin another member of our server team made) and my additions their own texture. Maybe that's interesting as well :)
http://github.com/Feuerstern/ItemCollectionDRE is my Github repository. But everything I uploaded yet is a small fix for player.getTargetBlock(...) An error occured using latest Spigot 1.8.3 build.
I'll publish my code when I cleaned it up a littlebit. It looks not so great right now because my first plugin just added it the way I needed it: I need to replace these german names and use a solution with configs, first of all. Attack Damage should be modifiable there as well.
-
View User Profile
-
Send Message
Posted Apr 3, 2015@Taiterio
I am still getting errors Even thought I tried the lastest build for both of plugins
Didn't read your pm sorry lol
-
View User Profile
-
Send Message
Posted Apr 2, 2015@Cortesian
That is great to hear! Can you send me a link to it so I can check it out?
I am currently planning on allowing the plugin to support NMS for some more advanced Enchantments/Items that I was waiting so long to implement :D
@hetjoshi
I believe it's fixed, it seemed like MaxBans was unregistering server events from my plugin? o.O
-
View User Profile
-
Send Message
Posted Apr 1, 2015Hi, I've used your plugin since its earliest days for small, private projects. Later, it caused a lot of great additions on my first own public server and now, I'm creating my own custom version based on CE. I'm not such a good coder and could never create something like this on my own, but to use your code and add some more items, traps and so on is the reason why I'm able to do what I wish. The gist is that I'd like to say thank you for your amazing work :) Maybe something of my version will be good enough to submit a pull request - even though most of my work will be useless for you because I use NMS to edit Attack Damages :S