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 Feb 4, 2016@phoenixlzx
Enable them in the config? They work fine for me.
-
View User Profile
-
Send Message
Posted Feb 4, 2016Can you add like an economy or price type thing to Runecrafting? Like, a configurable option to decide between making it cost money, xp levels, or neither to use it?
-
View User Profile
-
Send Message
Posted Feb 4, 2016@rpgrowland
I see nothing happened with these enchants, while no error log as well.
-
View User Profile
-
Send Message
Posted Feb 4, 2016When I try Runecrafting, it comes up with this:
[21:09:19 WARN]: [CustomEnchantments] Task #5321 for CustomEnchantments v2.4a generated an exception java.lang.NullPointerException at com.taiter.ce.Enchantments.EnchantManager.getEnchantments(EnchantManager.java:193) [?:?] at com.taiter.ce.CEventHandler$3.run(CEventHandler.java:570) [?:?] at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71) [spigot.jar:git-Spigot-044d928-e8c6403] at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) [spigot.jar:git-Spigot-044d928-e8c6403] at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:726) [spigot.jar:git-Spigot-044d928-e8c6403] at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:367) [spigot.jar:git-Spigot-044d928-e8c6403] at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:657) [spigot.jar:git-Spigot-044d928-e8c6403] at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:560) [spigot.jar:git-Spigot-044d928-e8c6403] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45]
Heeeelp?? :(
-
View User Profile
-
Send Message
Posted Feb 3, 2016@phoenixlzx
They work perfectly for me?
-
View User Profile
-
Send Message
Posted Feb 3, 2016Follow up -
2.4a:
Disarming, drunk and cloaking not work on players and mobs.
-
View User Profile
-
Send Message
Posted Feb 2, 2016@Taiterio
Also, Enlighted won't turn into a book off of a chestplate. Halp?
-
View User Profile
-
Send Message
Posted Feb 2, 2016in 2.4a with piercing:
-
View User Profile
-
Send Message
Posted Feb 2, 2016You should make it possible so if the group/user has a negated permission of the enchant, they cant enchant their item using the custom enchant sign
-
View User Profile
-
Send Message
Posted Feb 2, 2016@tcarey2015
Would be awesome to know which enchants get affected by the levels and how they do. Just tested Vampire skill, Level 1-2-3 all give 2 hearts.., and bout your issue tcarey, I have no problem like yours. Maybe some other plugin is causing it?
-
View User Profile
-
Send Message
Posted Feb 1, 2016vampire is causing my players who get killed by it to glitch out, where they are dead but have 1 health and cannot open anything or interact with the world. They are like walking ghosts forever, until i delete their database world file. Any thoughts ?
-
View User Profile
-
Send Message
Posted Feb 1, 2016@Taiterio
I also noticed that enchants like cursed and frozen and such won't go on pants and creates a string of errors. Help?
-
View User Profile
-
Send Message
Posted Feb 1, 2016@xH3LLRAIZ3Rx
thats becuse thats not how runecrafting works. try do /ce menu and take the one most to the left
-
View User Profile
-
Send Message
Posted Feb 1, 2016@Taiterio Thx m8 <3
-
View User Profile
-
Send Message
Posted Feb 1, 2016The new Runecrafting is not working, when right clicking anvil with Blaze Book, it puts the book in the bottom slot, but when I try to put the bow in the top slot, it doesnt do anything
-
View User Profile
-
Send Message
Posted Jan 31, 2016@Taiterio
yes there you go
[07:10:54 INFO]: This server is running CraftBukkit version git-Spigot-db6de12-1 8fbb24 (MC: 1.8.8) (Implementing API version 1.8.8-R0.1-SNAPSHOT)
-
View User Profile
-
Send Message
Posted Jan 31, 2016I have a suggestion I think would be cool possibly like two separate permissions or something so under each enchantment you could have a requirespermission: ce.vip or something like that and a customisable message for the permission so if it require that permission and they don't have it, it would say in the menu "You need VIP to use this Item" something like this would be cool because I myself have 2 donator ranks and I think having something little like that but informative, would be good.
-
View User Profile
-
Send Message
Posted Jan 31, 2016MY MAIN QUESTION:
DOES THE " MaximumCustomEnchantments: "
PROPERLY LIMIT THE MAX # OF PURCHASEABLE ENCHANTS VIA SIGN ON EACH ITEM? OR NO?
-
View User Profile
-
Send Message
Posted Jan 31, 2016Thanks for the quick patch, but i think i've got another bug.
It appears that autorepair only effects boots currently, as no other piece of armor or weapons i apply it to get healed.
-
View User Profile
-
Send Message
Posted Jan 31, 2016Is there any guide for what each level of enchantment does for the custom enchants ? Like I don't know how to balance them If I do not know how they change with each enchant level ?
Also is your cooldowns and durations in seconds or miliseconds ?
Also do you change the cooldown and duration per enchant level ?? this is so confusing to balance properly for my server ;D