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 8, 2015Would it be possible to make it so when you kill someone by stomping them, it counts as the player with stomp getting the kill?
-
View User Profile
-
Send Message
Posted Jan 7, 2015Cant wait for WG update!
Is there a plan for towny pvp-check incoming later on? :)
We so love this plugin - cant live without it!
Hopefully you'll get WG done today <3
-
View User Profile
-
Send Message
Posted Jan 6, 2015@Taiterio
Thanks, got worried :D
I'll await your fix so we can release these awesome custom enchants tomorrow :)
-
View User Profile
-
Send Message
Posted Jan 6, 2015@PatrickThagaard
Sorry for that, will fix that tomorrow :)
@BeFriendsOrWhat
That issue is fixed, will post an update this week or so :)
-
View User Profile
-
Send Message
Posted Jan 6, 2015Getting worldguard errors - when we dont use worldguard.
06.01 10:21:10 [Server] INFO Caused by: java.lang.NoClassDefFoundError: com/sk89q/worldguard/protection/flags/DefaultFlag
Not sure what thats about (can post full log if need be)
Full: http://pastebin.com/W24HbQ0U
We've never used worldguard before (since it conflicts with so many other protection plugins)
Will CE require WorldGuard from now on?
-
View User Profile
-
Send Message
Posted Jan 6, 2015@Taiterio
Taiterio Pyro sound and pyro sharp,fire are work but why it make 1 hit kill when my friend holding pyro and when my friend not holding pyro it does not make 1 hit kill only make x2 damage.need help
-
View User Profile
-
Send Message
Posted Jan 5, 2015@Fiendez
The Pyroaxe is intented to only work against burning enemies :P
Using the anvil seems to reset the color of the item, so that doesnt work for applying enchantments since it's essentially destroying the item
@BeFriendsOrWhat
I'm using the latest one, though it works for any version on my side :/
Can you check if the name of the item is still red and italic when you are using it?
-
View User Profile
-
Send Message
Posted Jan 5, 2015@Taiterio
I made a fresh pyro axe with a diamond axe and the sound works but only when they are on fire.
I found that only after I put enchantments on the axe by anvil it stops the sound however I think the damage boost still works when they're on fire. So I tried adding the enchantments on the normal diamond axe with an anvil (sharp v, fire 2) then did /ce enchant pyroaxe but it clears the enchantments.
I fixed it by doing this; /ce give <Player> <Material> <Item/Custom or Vanilla Enchantment:Level> [Custom or Vanilla Enchantment:Level] Which I obviously missed on this page.
I hope this clears some things up and helps other players too.
-
View User Profile
-
Send Message
Posted Jan 5, 2015@Taiterio
what ver you use?? and the damage is change but when i hit zombie it not make a sound help me fix
-
View User Profile
-
Send Message
Posted Jan 4, 2015@BeFriendsOrWhat
I haven't changed anything to the sound whatsoever and it's playing it for me, which is pretty weird o.O
Does it still increase the damage? Try hitting a zombie with it and compare the damage to when you hit a burning zombie with it.
-
View User Profile
-
Send Message
Posted Jan 4, 2015The Pyro axe doesnt' make any sound when i hit my friends,Is it not working? did u remove the sound or i must add the sound? I hope u can fix this because i really love PyroAxe :'( i use bukkit
-
View User Profile
-
Send Message
Posted Jan 4, 2015The pyro axe doesn't make a sound when I hit someone or something, does this mean it's glitched/not working or did you remove the sound? I only just installed this, I used to have this plugin before and remember the sound.
-
View User Profile
-
Send Message
Posted Jan 3, 2015@MrRambinhoo
Sorry for that bug, I already know what is causing it and will fix it asap :)
I can add such an enchantment, added it to my list.
I'm no longer giving potion effects forever since it can cause some problems, so using a lower time seemed like the better solution. You can just set the config option "RepeatPotionEffects" to true and increase the "RepeatDelay", it's value should be at 600 = 30 seconds, the potion effect should then last 35 seconds. The potion effect's duration is always five seconds higher than "RepeatDelay".
-
View User Profile
-
Send Message
Posted Jan 3, 2015@Taiterio
When one person is pvping with a pyro hitting the person it works fine but when some one else has a pyro in there hand it goes to a 1 shot kill.... and could you add a chest plate or leggings that give you strength 2? When you have gears on it should give you speed for * time not for 30 secs?
-
View User Profile
-
Send Message
Posted Jan 2, 2015@ryanthemagi
I noticed that it happens for me aswell, please disable the Config Option "Global.Enchantments.CEnchantmentTable". The problem is related to my enchantment handler, but lies beyond my code. It crashes when I check if a player that is not an op has a permission. The method for checking permissions works everywhere else though, which is extremely weird o.O
@MrRambinhoo
Try setting the "DamageMultiplier" in the config lower.
New update is out, it fixed the server crashing part of enchanting
-
View User Profile
-
Send Message
Posted Jan 2, 2015It appears using an enchantment table is causing my server to crash: http://pastebin.com/zm7ftVaS
After removing custom enchants, everything works fine.
-
View User Profile
-
Send Message
Posted Jan 2, 2015I found a bug on my server when 2 people are fighting with pyros, if they both have the pyro axe in there hand its a one hit kill.
-
View User Profile
-
Send Message
Posted Dec 30, 2014@tappestry
Your server crashed when someone tried to enchant, the weird thing is that it crashed on something beyond my code, when the server tried to turn the player's name into lowercase letters, which is weird.
Can you try to reproduce this?
@Formula350
Are you using 2.1c? Because versions before that negated the value of Enchantmenttables, which could cause your problem.
Otherwise, Players can still obtain the enchantments through other sources (Other players), but they still can't be used.
@HGspindy
Thor's Axe and Livefire Boots should now work with WorldGuard No-PvP Zones :)
Can you send me the full error via pm? Same goes for the Hookshot Bow :D
What is your config option "HeightMultiplier" in Gooey set to? It may be too high, I only changed the defautl value of it with the last update.
Lifesteal has been fixed.
Do you get any errors or anything when it crashes? The only way it could cause such behavior is if your server didn't have a minecraft version that has Wolves in it, which would be unbelievably old o.O
Both modes work perfectly for me in the Hookshot Bow, so I will need your full error (via PM), however kits do not work since it requires the "Mode: " Line in the lore, which you would have to set manually using your kits plugin. The same goes for the Rocket Boots aswell as the Necromancer's Staff of Destruction.
Poisoned gave the wrong potion effect, it slowed people. If you had "StrictEnchantmentChecking" turned off in the config, this error occured, it thinks the armor has Poison on it, which then applies the effects as it would fit into such a scenario. I have deleted that config option and improved the Enchantment checking :)
Keep in mind that adding "GRASS" to the exclusion list only restricts the breaking of Grass Blocks, not the Tall Grass. The materials Dandelion and Poppy do not exist. You can however just use the item id's, which in your case would be 175 and 38 (The ":" values are to be ignored since they are not currently supported).
Bows still get damage on my side, do you get any errors in the console? Other than that, you should set the "OccurenceChance" lower to decrease the healing it does.
Springs and Gears used a faulty algorithm, didn't know Armor is outside of a players inventory <.<
Stomp works fine for me, which part isnt working for you? It only occurs on falldamage and you have to land on the same block that your target is on (I increased the radius however in the new version).
The flying fireblocks of the Flamethrower seem to not be blocked by WorldGuard, they are now removed when in a build-restricted zone.
Reload works for me since 2.1c, before that it didnt work correctly, can you tell me exactly what the problems you are having with it?
The item part of "ce menu" should now work correctly, it was a bug with the permissions :/
Thanks for the suggestions :D
Can you please bundle multiple messages into one in the future? It makes it much more compact and easy to look over :)
@AgawamIdol
Fixed that bug, see above :)
Will update tomorrow, done for today xD
- Taiterio
-
View User Profile
-
Send Message
Posted Dec 29, 2014not sure the cause but here;
http://pastebin.com/utx5Ng8L
-
View User Profile
-
Send Message
Posted Dec 28, 2014HGspindy, it sounds almost like you're using the wrong version, as in the one that doesn't match the version of WorldGuard you have.
My own bug:
Config is set to NOT allow them from Enchant Tables, and Permission IS required. However, I just came across a user who managed to obtain Bombardment on his bow, and he does not have the permission :
\