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 Aug 27, 2014Hello == Taiterio == is their any way to change the enchantment name? Thanks
-
View User Profile
-
Send Message
Posted Aug 27, 2014@PSVfootball
The permission for those commands is called "customenchantment.canChangeItem", this will change in the new version however
@failing_icarus
What exactly is not working, as far as I can see CE should acknowledge the item as a Landmine :O
-
View User Profile
-
Send Message
Posted Aug 25, 2014@Concussion909
Can you explain how to put an enchant on the kit in my post before what i had didnt work..
-
View User Profile
-
Send Message
Posted Aug 25, 2014Is there no permission for /setname or /setlore?
-
View User Profile
-
Send Message
Posted Aug 25, 2014HOW TO ADD MULTIPLE LORES TO KIT ITEM
Lore:
erase numeric value
-
View User Profile
-
Send Message
Posted Aug 25, 2014I can't seem to figure out how to get landmines to work in the essentials kit:
http://pastebin.com/imDc5wT3
Didn't work am i doing something wrong?
-
View User Profile
-
Send Message
Posted Aug 24, 2014Is there no permission for /setname or /setlore?
-
View User Profile
-
Send Message
Posted Aug 24, 2014@JacobyPvP
I rewrote the whole system in CE 2.0 :D
If you do not want to wait you could also send me a pm with the error it displays when you are trying the command :D
@insidiator444
Does it give you the notification that it should have worked in the chat?
-
View User Profile
-
Send Message
Posted Aug 21, 2014/enchgive MYNAME axe Thoraxe doesn't work. Please help.
-
View User Profile
-
Send Message
Posted Aug 19, 2014i cant seem to get my assassins blade to work? it doesnt hide me when i right click...
-
View User Profile
-
Send Message
Posted Aug 17, 2014@Taiterio
I am here to publicly apologize for the actions I have made to this plugin and its authors. My actions were immature, irrational, unrelated, and completely incorrect.
Sincerely, -TheProfessionalAssassin
-
View User Profile
-
Send Message
Posted Aug 17, 2014Heyo,
The whole system is as good as done, most of the delay right now is due to my wish of adding something new that you can actually see into the plugin and some major bugs that keep reoccuring. A few more days and it should be done though, I will then most likely be able to make the source public (Without decompilers), so other coders can contribute and/or create their own alterations of the plugin (With my consent then please, I just wish to be notified about something like this to check it out :D).
That's all for current plugin news,
- Taiterio
@kdthehun
Thanks for helping out here! :D
@seththal
That system has been scrapped entirely in CE 2.0, no one will miss it (I think)
@KingKrafter
Not really, as my Enchantments do not use the Bukkit Enchantment System, I may however be able to code something for you that suits your needs, just contact me :)
@Bodyash
ikr :D
-
View User Profile
-
Send Message
Posted Aug 15, 2014@seththal
Should look like this:
-
View User Profile
-
Send Message
Posted Aug 14, 2014Hello, I am having trouble making the CE shops... this is what I do. [CustomEnchant] minigun 5000 ~~~~~~~~~~~~~~~ It then tells me that I entered the wrong price, and tells me to use this format [5000] After doing that, it still wont allow me to make the shop. If this is a bug, please fix it, or if I am doing something wrong, please inform me.
Best regards, seththal
-
View User Profile
-
Send Message
Posted Aug 14, 2014Hello, is there a way I could add the custom enchantments to a plugin like Loot? It refills chests with random items set in the config, it allows a place for enchantments but im not sure if I put the enchantment name of the custom ones where it has the normal ones?
-
View User Profile
-
Send Message
Posted Aug 11, 2014good!
-
View User Profile
-
Send Message
Posted Aug 10, 2014@CLGREEN
Thanks for the Information, this should be fixed in the upcoming version :)
@NLBlackEagle
Found the Issue, it's fixed in CE 2.0 :D
Almost done with CE 2.0, doing some bugtesting and finishing the last few bits of coding.
-
View User Profile
-
Send Message
Posted Aug 8, 2014Good afternon,
Just thought I would let you guys know that Custom_Enchantments might have a memory leak that is causing bukkit's timing to be off.
we are using Custom_Enchantments v1.1e
Bukkit Version: CraftBukkit version Bukkit-1.7.2 -b3024
before I disabled the plugin I was getting this:
[INFO] Got 23999.0ticks instead of 100.0ticks; Bukkit scheduling may be off. [INFO] Overboard - 4802.68/20 TPS [INFO] Margin of error: 00.06%
When I then disabled the plugin I got the following:
[INFO] Got 99.0ticks instead of 100.0ticks; Bukkit scheduling may be off. [INFO] Full throttle - 20/20 TPS [INFO] Margin of error: 00.06%
From the following I believe Custom_Enchantments to be the issue and causing lag.
Thanks
~ CLGREEN
-
View User Profile
-
Send Message
Posted Aug 6, 2014Im having this issue spamming the console:
[18:32:34] [Server thread/ERROR]: Could not pass event BlockPlaceEvent to Custom_Enchantments v1.1e org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:299) [spigot.jar:git-Spigot-1543] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [spigot.jar:git-Spigot-1543] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-1543] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-1543] at org.bukkit.craftbukkit.v1_7_R3.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.java:149) [spigot.jar:git-Spigot-1543] at net.minecraft.server.v1_7_R3.ItemStack.placeItem(ItemStack.java:142) [spigot.jar:git-Spigot-1543] at net.minecraft.server.v1_7_R3.PlayerInteractManager.interact(PlayerInteractManager.java:391) [spigot.jar:git-Spigot-1543] at net.minecraft.server.v1_7_R3.PlayerConnection.a(PlayerConnection.java:657) [spigot.jar:git-Spigot-1543] at net.minecraft.server.v1_7_R3.PacketPlayInBlockPlace.a(SourceFile:60) [spigot.jar:git-Spigot-1543] at net.minecraft.server.v1_7_R3.PacketPlayInBlockPlace.handle(SourceFile:9) [spigot.jar:git-Spigot-1543] at net.minecraft.server.v1_7_R3.NetworkManager.a(NetworkManager.java:184) [spigot.jar:git-Spigot-1543] at net.minecraft.server.v1_7_R3.ServerConnection.c(ServerConnection.java:81) [spigot.jar:git-Spigot-1543] at net.minecraft.server.v1_7_R3.MinecraftServer.v(MinecraftServer.java:731) [spigot.jar:git-Spigot-1543] at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:284) [spigot.jar:git-Spigot-1543] at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:584) [spigot.jar:git-Spigot-1543] at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:490) [spigot.jar:git-Spigot-1543] at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [spigot.jar:git-Spigot-1543] Caused by: java.lang.NullPointerException at com.github.taiter.PlayerListener.onBlockPlaced(PlayerListener.java:4026) [?:?] at sun.reflect.GeneratedMethodAccessor588.invoke(Unknown Source) [?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.7.0_65] at java.lang.reflect.Method.invoke(Method.java:606) [?:1.7.0_65] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:296) [spigot.jar:git-Spigot-1543] ... 16 more
Could this be fixed?
-
View User Profile
-
Send Message
Posted Aug 2, 2014@warthelm
Same here :D
@ryanthemagi
Should be done soon, the config generation is done, performance options are implemented, what's left is making the commands and then re-implementing the item-enchantments.
@SeptimusSpectral
What exactly is not working?