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 Nov 27, 2014Why when wearing an armour with custom enchantment on them only prioritising boot, what I mean is they only activate on boot but not on others like Glowing helmet.
Also it seems that armour with multiple custom enchantment will only activate on the 1st line of enchantment.
-
View User Profile
-
Send Message
Posted Nov 26, 2014@Taiterio
I was wondering if it were possible to set the max level of an enchant that a player can get in game through enchanting. For example: If I felt that shockwave V was too overpowered but shockwave 1 was not, is there a way to control this?
-
View User Profile
-
Send Message
Posted Nov 26, 2014@Taiterio
Thanks for all your help and fast responses! Is there anything wrong with my config thats causing the update not to work? Also, is the 'occurencechance' in the config.yml the chance it has to activate? For example, if I set to 'lifesteal' to '25', does it mean it has a 1/4 chance to heal the hearts?
Also, the minigun fires at full power without players having to pull back. People are also reporting flame/power/punch doesn't work on the minigun. I'm repeating what players with miniguns told me. And thundering blow destroys items dropped from players/mobs.
-
View User Profile
-
Send Message
Posted Nov 26, 2014@VillageRealms
Are the permissions working when you give them the node ce.*? It may be that ce.item.* is not recognized as a node for all the items :/
For the bandage, it could be that the total heal amount has to be set higher, I think the heal per second may be 0 due to it trying to heal 0,4 (2 Hearts/5 seconds) Hearts, which the plugin interprets as 0 hearts <.<
I'll add a fix for that and I'll look into the other problems aswell :)
-
View User Profile
-
Send Message
Posted Nov 26, 2014@Taiterio
Oh it starts and I can run commands, reload, enchant fine. No errors. Just enchantments do not work, they get enchanted fine with /ce ench <enchantment name> 1. But the enchantment does nothing.
Now when I revert to the old version they work again.
Also, players can not receive items. I have requirepermissions set to false. Even then, giving them ce.item.* does nothing, same for just ce.item or ce.item.bandage, they need ce.* which I cannot give. I also do not understand how to set the durability of an item, for example, a bandage. Also, the cooldown isn't working, and they will not get healed when using the bandage. Is there something wrong with my config/the bandage section? http://pastebin.com/rwGbtVtW Also minigun is not compatible with infinity, it still takes arrows.
-
View User Profile
-
Send Message
Posted Nov 25, 2014@kablenz101pvp
Thats sounds like a neat idea! Actually, how I would implement it would be like this:
Have global options to enable this feature. Then every player can decide for himself if he wants to see the message or not. The players would then be able to configurate that under /ce menu
@VillageRealms
Durations are all measured in ticks, wanted to write that information down somewhere :O
I may have fixed the shockwave problem, I'll do tests tomorrow :)
What do you mean by the plugin breaking? Does it start? Are you getting any errors?
-
View User Profile
-
Send Message
Posted Nov 24, 2014I was wondering if you could make a option it so it says something in chat like Your enemy was poisoned when you hit them with poison sword because I would like to know when it works :)
-
View User Profile
-
Send Message
Posted Nov 24, 2014Is the durations measured in cooldowns or ticks?
Also, bug with shockwave: Say you hit someone in a skybase with floating blocks. The blocks fly up and hit the ground and also are replaced in the skybase, so double blocks.
Thanks for the amazing updates! Love this plugin!
Also, I realized when using this update, the plugin breaks alltogether. Configuration: http://pastebin.com/5qtuzfYR Thank you!
-
View User Profile
-
Send Message
Posted Nov 24, 2014@thu2468
All cooldowns are measured in ticks atm
@CadeCEB
Do you get any errors in the console?
-
View User Profile
-
Send Message
Posted Nov 23, 2014is cooldown in seconds or ticks?
-
View User Profile
-
Send Message
Posted Nov 23, 2014How do you use the menu in the command "/ce menu", every time i select a category, it crashes the menu
-
View User Profile
-
Send Message
Posted Nov 23, 2014Posted an Update, building a framework to allow new types of enchantments and make the enchantments that are currently triggered by moving be permanent.
-
View User Profile
-
Send Message
Posted Nov 22, 2014@VillageRealms
Will be added in :)
@ZorlaxPlaysMC
For the color, check this link.
As for the other part, have you tried restarting the server or using /ce reload after you saved the changes? Are the values reverted when you do that?
-
View User Profile
-
Send Message
Posted Nov 19, 2014Also I really want to get rid of cooldowns but I config and save but it still wont work!
-
View User Profile
-
Send Message
Posted Nov 19, 2014I was configing the color of the enchantments and they all work, except light gray, and thats the color of the regular enchants so I really need it light gray cause it looks weird any other way, I used LIGHT_GRAY, LIGHT_GREY,LITE_GREY,LITE_GRAY, please help
-
View User Profile
-
Send Message
Posted Nov 18, 2014More configuration for ice aspect would be nice such as the slowness strength and duration, people are complaining about the current ice aspect slowness effect being ridiculous even with the chance set at a mere 5%. Thank you for your work on this plugin!
-
View User Profile
-
Send Message
Posted Nov 18, 2014@AgawamIdol
Hmm, can't remember visiting a server to fix something like that lately o.O
I thought that Spigot would give full functionality, I haven't done extensive testing on the functionality of the plugin under different versions of Spigot yet, I may have to do that fairly soon though.
@Shitty__Wock
I could allow such values where they would make sense, however HP is measured in 1/2 hearts in general, so setting it to 1 would mean that you heal half a heart with Lifesteal :D
-
View User Profile
-
Send Message
Posted Nov 17, 2014@Taiterio
A few people use spigot for this, wouldn't it have been more important to kind of make it work with spigot? I remember having issues in the past. Not sure if it was you, but we had you come on the server and test what was happening. You were able to fix the issue right then and there because the problem we had was hard to recreate on your end.
-
View User Profile
-
Send Message
Posted Nov 16, 2014Hey, are we able to use values less than 1 in the config file? For example, I want to set lifesteal to .5 hearts, but am unsure how or if it is possible. Love the plugin! Keep it up!
-
View User Profile
-
Send Message
Posted Nov 16, 2014@PatrickThagaard
I'll look into that problem, it seems weird to see that happen though. In /ce menu, do you see the Cost: 0?
@Formula350
Gz :D
@kablenz101pvp
Nice :D
@deekondvg
If the price is set to 0 or you do not have vault, it should not show in /ce menu.
@Cookiesss_
What exactly were you trying to use to get the enchantments?
@AgawamIdol
It may be spigot that is incompatible with some part of the plugin, but the version of minecraft you are using should be independent of the plugin, as I have taken care to not make it version dependent.
@thu2468
I don't know yet, it may be this week as I have more time to work on it now :)
@TheLeftHandedGamer
http://bukkit.org/