Custom Enchantments

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.

Note: This plugin should be compatible with any newer Minecraft Version, if you need the plugin ported, just say so.

Official Servers

If you want to see the plugin in action, check out the following servers!

Current official Servers:

  • towny.io
  • mc.arcanepvp.net

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 menu - Opens an inventory menu for navigating and obtaining Custom Enchantments and Items.
  • /ce reload - Reloads the CE config.
  • /ce list <Enchantment/Item> - Lists all Custom Enchantments or Items.
  • /ce enchant <Enchantment> [level] - Adds ´the specified Custom Enchantment to the item in your hand.
  • /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

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:

  1. "[CustomEnchant]" (Without the "s) as the first line.
  2. The Enchantment you want to sell as the second line.
  3. The cost of the enchantment as the fourth line.

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:

  1. Check out if your kit plugin supports colored names and/or lores.
  2. Find example kits that add colored names and/or lores in your kit plugin
  3. 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"

Installation

  1. Download the Custom Enchantments.jar
  2. Place the .jar in your servers plugin folder
  3. If your server is already running, reload or restart it

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:

  1. What version are you using? (See the Point Further Information to find out if a newer Version is avaivable)
  2. Does your console give you any errors? If yes, please send me a copy of them, this might make the further steps obsolete.
  3. What situation did the error occur in?
  4. 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 alot 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 though that the project was not originally intended to be published and was used as some sort of coding-playground multiple times by me, which makes the code really messy to read and overlook.

Further Information:

Current Version: 2.2b (12.04.2015)

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.

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of AaleX23 AaleX23 Apr 23, 2015 at 16:10 UTC - 0 likes

    Is it possible to have Autorepair IV on armor?

  • Avatar of gaban101 gaban101 Apr 22, 2015 at 22:42 UTC - 0 likes

    is it me or? you guys too. seems to be landmine cannot be use and cannot be enchant. no error saying.. enchant can be done but cannot be use

    anyone help please?

  • Avatar of Drtro Drtro Apr 21, 2015 at 06:45 UTC - 0 likes

    Can we change the items? I'd like to change Prickly Block to Sticker Bush and make it a leaf block.

  • Avatar of Quenton4 Quenton4 Apr 18, 2015 at 19:00 UTC - 0 likes

    When enchanting on the enchanting table, the custom enchants are the same for level 1 enchantments as they are for level 30. For example for 1 XP and 1 lapis I got Bane of Arthropods I, Vampire IV, Shockwave IV, Autorepair III, Lifesteal IV. This is too OP for lvl 1. How can I make it so you get lower custom enchants for less levels?

  • Avatar of GPlayer93 GPlayer93 Apr 17, 2015 at 20:01 UTC - 0 likes

    everytime a player would get a customenchantments-enchant i got this:

    [21:59:05] [Server thread/ERROR]: Could not pass event EnchantItemEvent to CustomEnchantments v2.2b org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:305) [server.jar:git-Spigot-4c7d0c0-7d020a7] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [server.jar:git-Spigot-4c7d0c0-7d020a7] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [server.jar:git-Spigot-4c7d0c0-7d020a7] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [server.jar:git-Spigot-4c7d0c0-7d020a7] at net.minecraft.server.v1_8_R2.ContainerEnchantTable.a(ContainerEnchantTable.java:223) [server.jar:git-Spigot-4c7d0c0-7d020a7] at net.minecraft.server.v1_8_R2.PlayerConnection.a(PlayerConnection.java:1715) [server.jar:git-Spigot-4c7d0c0-7d020a7] at net.minecraft.server.v1_8_R2.PacketPlayInEnchantItem.a(SourceFile:22) [server.jar:git-Spigot-4c7d0c0-7d020a7] at net.minecraft.server.v1_8_R2.PacketPlayInEnchantItem.a(SourceFile:8) [server.jar:git-Spigot-4c7d0c0-7d020a7] at net.minecraft.server.v1_8_R2.PlayerConnectionUtils$1.run(SourceFile:13) [server.jar:git-Spigot-4c7d0c0-7d020a7] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [?:1.7.0_76] at java.util.concurrent.FutureTask.run(FutureTask.java:262) [?:1.7.0_76] at net.minecraft.server.v1_8_R2.SystemUtils.a(SourceFile:60) [server.jar:git-Spigot-4c7d0c0-7d020a7] at net.minecraft.server.v1_8_R2.MinecraftServer.A(MinecraftServer.java:710) [server.jar:git-Spigot-4c7d0c0-7d020a7] at net.minecraft.server.v1_8_R2.DedicatedServer.A(DedicatedServer.java:368) [server.jar:git-Spigot-4c7d0c0-7d020a7] at net.minecraft.server.v1_8_R2.MinecraftServer.z(MinecraftServer.java:651) [server.jar:git-Spigot-4c7d0c0-7d020a7] at net.minecraft.server.v1_8_R2.MinecraftServer.run(MinecraftServer.java:554) [server.jar:git-Spigot-4c7d0c0-7d020a7] at java.lang.Thread.run(Thread.java:745) [?:1.7.0_76] Caused by: java.lang.IllegalArgumentException: n must be positive at java.util.Random.nextInt(Random.java:300) [?:1.7.0_76] at com.taiter.ce.CEventHandler.handleEnchanting(CEventHandler.java:110) [?:?] at com.taiter.ce.CEListener.EnchantItemEvent(CEListener.java:679) [?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [?:1.7.0_76] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [?:1.7.0_76] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.7.0_76] at java.lang.reflect.Method.invoke(Method.java:606) [?:1.7.0_76] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) [server.jar:git-Spigot-4c7d0c0-7d020a7] ... 16 more

    Last edited Apr 17, 2015 by GPlayer93

    sorry for bad english ...

  • Avatar of Darkman_Bree Darkman_Bree Apr 15, 2015 at 09:04 UTC - 0 likes

    @BrooklynStarr: Go

    I think its every economy plugin that breaks the Cost. I use Vault and its still not taking away cost.

  • Avatar of wantkiwi wantkiwi Apr 14, 2015 at 19:16 UTC - 0 likes

    I ge this error when ever somebody is about to get a customenchantment while enchanting using enchantingtable!

    14.04 15:17:26 [Server] INFO ... 15 more 14.04 15:17:26 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) [spigot25.jar:git-Spigot-b1e6da1-1092acb] 14.04 15:17:26 [Server] INFO at java.lang.reflect.Method.invoke(Method.java:483) [?:1.8.0_31] 14.04 15:17:26 [Server] INFO at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.8.0_31] 14.04 15:17:26 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [?:1.8.0_31] 14.04 15:17:26 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [?:1.8.0_31] 14.04 15:17:26 [Server] INFO at com.taiter.ce.CEListener.EnchantItemEvent(CEListener.java:679) [?:?] 14.04 15:17:26 [Server] INFO at com.taiter.ce.CEventHandler.handleEnchanting(CEventHandler.java:110) [?:?] 14.04 15:17:26 [Server] INFO at java.util.Random.nextInt(Random.java:388) [?:1.8.0_31] 14.04 15:17:26 [Server] INFO Caused by: java.lang.IllegalArgumentException: bound must be positive 14.04 15:17:26 [Server] INFO at java.lang.Thread.run(Thread.java:745) [?:1.8.0_31] 14.04 15:17:26 [Server] INFO at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:526) [spigot25.jar:git-Spigot-b1e6da1-1092acb] 14.04 15:17:26 [Server] INFO at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:623) [spigot25.jar:git-Spigot-b1e6da1-1092acb] 14.04 15:17:26 [Server] INFO at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) [spigot25.jar:git-Spigot-b1e6da1-1092acb] 14.04 15:17:26 [Server] INFO at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:683) [spigot25.jar:git-Spigot-b1e6da1-1092acb] 14.04 15:17:26 [Server] INFO at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_31] 14.04 15:17:26 [Server] INFO at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_31] 14.04 15:17:26 [Server] INFO at net.minecraft.server.v1_8_R1.PacketHandleTask.run(SourceFile:13) [spigot25.jar:git-Spigot-b1e6da1-1092acb] 14.04 15:17:26 [Server] INFO at net.minecraft.server.v1_8_R1.PacketPlayInEnchantItem.a(SourceFile:8) [spigot25.jar:git-Spigot-b1e6da1-1092acb] 14.04 15:17:26 [Server] INFO at net.minecraft.server.v1_8_R1.PacketPlayInEnchantItem.a(SourceFile:22) [spigot25.jar:git-Spigot-b1e6da1-1092acb] 14.04 15:17:26 [Server] INFO at net.minecraft.server.v1_8_R1.PlayerConnection.a(PlayerConnection.java:1681) [spigot25.jar:git-Spigot-b1e6da1-1092acb] 14.04 15:17:26 [Server] INFO at net.minecraft.server.v1_8_R1.ContainerEnchantTable.a(ContainerEnchantTable.java:203) [spigot25.jar:git-Spigot-b1e6da1-1092acb] 14.04 15:17:26 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot25.jar:git-Spigot-b1e6da1-1092acb] 14.04 15:17:26 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot25.jar:git-Spigot-b1e6da1-1092acb] 14.04 15:17:26 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [spigot25.jar:git-Spigot-b1e6da1-1092acb] 14.04 15:17:26 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:305) [spigot25.jar:git-Spigot-b1e6da1-1092acb] 14.04 15:17:26 [Server] INFO org.bukkit.event.EventException 14.04 15:17:26 [Server] ERROR Could not pass event EnchantItemEvent to CustomEnchantments v2.2b

  • Avatar of BrooklynStarr BrooklynStarr Apr 14, 2015 at 14:11 UTC - 0 likes

    @Darkman_bree

    That is perfect. I happen to have a plugin that changes lores already.

    I'll stick around for the economy question.. I don't like giving stuff away for free on my server and I'm definitely not moving away from Mineconomy any time soon.

    Thanks!!

  • Avatar of Bodyash Bodyash Apr 14, 2015 at 11:18 UTC - 0 likes

    How Shielded is working?

    http://monitoringminecraft.ru/chart/178.54.192.12%3A25565.png

  • Avatar of Darkman_Bree Darkman_Bree Apr 14, 2015 at 07:14 UTC - 0 likes

    @hetjoshi: Go

    That sucks, I Always wanted to be a creeper.

    @BrooklynStarr: Go

    There might be no way to unenchant items, but I know a trick for it. You require a plugin that allows you to relore items. Then you can remove the CEnchants cause they are actually lores.

Facts

Date created
Mar 23, 2013
Categories
Last update
Apr 12, 2015
Development stage
Release
Language
  • enUS
License
GNU Lesser General Public License version 3 (LGPLv3)
Curse link
Custom Enchantments
Downloads
84,370
Recent files

Authors