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.
@EncryptedCurse
Will do, thanks for the suggestion. Anything else you want in that direction?
Didn't update the Version number in 1.0.6... Derp xD
Will update tomorrow or wednesday, doing some balance changes or bug fixes aswell. If you want anything fixed or changed, just reply in the comments.
Could you add a command that can be run from console to give a player a certain item with the custom enchantment already on it?
Example:
/enchgive <player> <item type> <enchantment>
/enchgive EncryptedCurse DIAMOND_SWORD AssassinsBlade
Released Version 1.0.6 as I finally had enough time to work on it. Even though the new items aren't that awesome yet, they will be with the upgraded Versions later on.
Most of the Bugs are fixed, if you find any new ones, just report them down below and I will fix it asap.
@MinecraftAllen
Do you mean that they don't receive damage, but the lightning still strikes? Thanks for the note then, fixing it right now.
The lightning enchant is still causing damage to players in safe zones/non pvp regions
@xH3LLRAIZ3Rx Found a fix for the problem, working on 1 more point of content and then I'll release it.
im getting this severe
SEVERE] Could not pass event PlayerInteractEvent to Custom Enchantments v1.0.5 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at org.bukkit.craftbukkit.v1_5_R2.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:185) at org.bukkit.craftbukkit.v1_5_R2.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:155) at net.minecraft.server.v1_5_R2.PlayerConnection.a(PlayerConnection.java:612) at net.minecraft.server.v1_5_R2.Packet15Place.handle(SourceFile:58) at net.minecraft.server.v1_5_R2.NetworkManager.b(NetworkManager.java:292) at net.minecraft.server.v1_5_R2.PlayerConnection.d(PlayerConnection.java:110) at net.minecraft.server.v1_5_R2.ServerConnection.b(SourceFile:35) at net.minecraft.server.v1_5_R2.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.v1_5_R2.MinecraftServer.r(MinecraftServer.java:580) at net.minecraft.server.v1_5_R2.DedicatedServer.r(DedicatedServer.java:225) at net.minecraft.server.v1_5_R2.MinecraftServer.q(MinecraftServer.java:476) at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:409) at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573) Caused by: org.bukkit.plugin.IllegalPluginAccessException: Plugin attempted to register task while disabled at org.bukkit.craftbukkit.v1_5_R2.scheduler.CraftScheduler.validate(CraftScheduler.java:394) at org.bukkit.craftbukkit.v1_5_R2.scheduler.CraftScheduler.runTaskTimer(CraftScheduler.java:120) at org.bukkit.scheduler.BukkitRunnable.runTaskTimer(BukkitRunnable.java:98) at com.github.taiter.PlayerListener.Cooldown(PlayerListener.java:99) at com.github.taiter.PlayerListener.onInteract(PlayerListener.java:1160) at sun.reflect.GeneratedMethodAccessor532.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 16 more
awesome awesome awesome
I would be appreciated to help you , but i dont know how to write, just basics :/ If you need a help just pm me :D it would be fun :)
@SyncBox
I only found that other ppl have this in one of the 1.5.1 Bukkit Versions:
"Yeah, I'm having the same problem when running a scheduler in my plugin, too. It appears to only happen in the newest build (1.5.1-R0.1). I think this error is happening to basically everyone who uses a scheduler in their plugin. I'm sure the Bukkit team will fix it in the next build."
If schedulers don't work in my plugin, the Minigun is disabled, the Rocket Boots cause errors, the block enchantment fails, all that stuff.
If it's really the fault of the Bukkit Version, I can't really do much against that, but I'm still looking into a way to minimize the damage atleast.
@Taiterio
There! http://pastebin.com/5zaHKH1D
I hope i pasted the right one :P I think its caused when you are high up and use the rocket boots while gliding down. When you hit the ground, it kills you, because it used the same velocity as jumping down the high place. Bukkit might not like that :P It happens even if i take a half heart. Is there a fix?
@SyncBox
I could do that, I'll look into this :D
Could you send me the error you get? Hope Bukkit will publish a recommended version soon
@Taiterio
Thanks for the reply! Yes, i was using R01 so.. Thanks! This plugins is just so good! Also, is it possible to /ench an item and set a different lore and keep the sound effect? (Blocking) The enchantment still works, but the anvil drop sound goes away, its just that it would be awesome if i could remove it and add a custom lore :)
EDIT:
Tested with R02 still has random errors. The minigun doesnt work, i dont know but it randomly makes errors.
@SyncBox
Like the guy before you, it seems like you are using a Bukkit Version where timers are broken, I'm using those to create stuff like Bombardment, Rocket Boots and more. Everything that doesnt use timers should work.
Can you tell me your current Bukkit Version? It should tell you when you start up your Server, your version should be something with 1.5.1_R02. I had problems with one of those versions before, but with the newest bukkit things should work again. I'm still looking into that issue.
When i fly with the rocket boots, it makes a large error. Also alot of the Item enchantments make errors and might stop working after the errors.. Any help? I get errors on most of the enchants, every time i block with the block ench, it makes a really long error message
@muhmuhmanray
Seems like timers aren't working for you. The Bombardment bow shouldnt work either and it should give you errors in the console. Could you tell me which version of bukkit you are using?
Great plugin, it's too fun flying around with the lightning bow.
There seems to be a problem though, the Firework and Minigun enchantments don't seem to be doing anything. Firework fires a normal arrow, while Minigun doesn't fire at all. Is there something that needs to be used to make them work?
Hi Taiterio just some new ideas for the plugin
1st enchantment
adding the flame enchantment to boots which adds a trail of fire when your walk/run when your wearing boots with the flame enchantment
second enchantment
add a sword which strikes lightning down on your enemy when you hit them
third enchantment
sword that makes you invisible when you hit them for about 4 seconds
final enchantment
a chest-plate which can detect when your taking alot of damage and will teleport you within 20 blocks which would give an enderman effect
I would also like so that each enchantment has enchantments levels so for example the poison enchantments lasts for a short amount of time but with a higher enchantment levels it last for longer
anyway thanks for reading this and i hope you think of adding some of these ideas to the plugin and i wish you the best of luck with the plugin in the future
Version 1.0.5 Uploaded, contains tons of bugfixes and a bit of new content (ermahgerd new awesome content!).
@JavaBond
Still couldn't figure out a way to do so, as you would have to set a colored lore/colored name for the item, which I think is impossible with the plugin. If you can set colored things though, contact me and I will try setting it up.
How to make one kit with custom weapons enchanted?