ItemEnchanting
I consider this project mature, and as long as the enchantment API does not change, it shouldn't break. However, I am no longer maintaining my Bukkit plugins, so if someone wants to take it up, shoot me an email at lucariatias<at>gmail<dot>com
ItemEnchanting allows for the use of a configurable item for enchanting rather than experience.
ItemEnchanting is intended for use on RPG servers where using experience for item bonuses is not ideal, such as where it is used for skills, feats, etc.
This plugin makes it so you can use an item instead.
This plugin utilises Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:
- A unique identifier
- The server's version of Java
- Whether the server is in offline or online mode
- The plugin's version
- The server's version
- The OS version/name and architecture
- The core count for the CPU
- The number of players online
- The Metrics version
Opting out of this service can be done by editing plugins/Plugin Metrics/config.yml and changing opt-out to true.
@qwe222
I never wrote anything for data, sorry. As said below, if you can think of a way for it to be written in the config, so you can have things like lore and data values, feel free to suggest it and I'll give it a shot.
i'm not familiar with item code by name.
how can i edit config item with data values?
like colored wools, or dyes.
it seems earlier versions could use item number codes.
@fuzyfeet
Since 2.0, for the sake of simplicity and stability, it's now one cost for all enchantments. However, you can also specify to multiply the level needed by the item cost, for example, you could specify a cost of 3 and then a multiplier of 3, so each level would require 3 of the item you specify. It's also now possible to have more than one ite, so you could do say, three emeralds and one diamond for every level that would normally be needed.
Reag and I plan to add custom items as part of our D&D plugin, since there are many items that D&D has but Minecraft does not. Bukkit already allows you to add custom lore and names to items, and add recipes for these items, so there is the possibility of doing this.
It would be difficult, but not impossible, to use custom-renamed items. At the moment, the config uses the material name from a Bukkit enum. I'd have to have some way of adding a custom item name to that in the config. If you have an idea as to how that would be structured, let me know and I'll give it a shot.
@Lucariatias
I'm just making sure I have this right in my head, all enchantments cost the same item(s) or does each enchantment have its own item cost?
Also I have a suggestion: could you make it so that we can require renamed items (since we can't add new items/blocks yet) with a minecraft ID? As an example: redstone dust called magic powder would be 331:"magic powder".
@Lucariatias
thanks update
2.0 has been submitted and is waiting for approval.
@ircopdd
I have an almost-finished version of 2.0 lying around, I'll push it through some final testing and then release it. As for anvils, there is still no event. I'd suggest disabling anvils altogether for the time being.
please fix bug
Anvil rename item
can infinite enchant
thanks
@ircopdd
It looks like one of the new enchantments is not in the config. Try adding "thorns", with the same settings as your other enchantments. I'll also begin working on a 2.x series, that makes things a bit more logical.
[SEVERE] Could not pass event EnchantItemEvent to ItemEnchanting v1.3.3
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 net.minecraft.server.v1_4_6.ContainerEnchantTable.a(ContainerEnchantTable.java:166)
at net.minecraft.server.v1_4_6.PlayerConnection.a(PlayerConnection.java:1270)
at net.minecraft.server.v1_4_6.Packet108ButtonClick.handle(SourceFile:19)
at net.minecraft.server.v1_4_6.NetworkManager.b(NetworkManager.java:290)
at net.minecraft.server.v1_4_6.PlayerConnection.d(PlayerConnection.java:112)
at net.minecraft.server.v1_4_6.ServerConnection.b(SourceFile:39)
at net.minecraft.server.v1_4_6.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.v1_4_6.MinecraftServer.r(MinecraftServer.java:598)
at net.minecraft.server.v1_4_6.DedicatedServer.r(DedicatedServer.java:224)
at net.minecraft.server.v1_4_6.MinecraftServer.q(MinecraftServer.java:494)
at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java:427)
at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:849)
Caused by: java.lang.NullPointerException
at org.bukkit.inventory.ItemStack.<init>(ItemStack.java:64)
at me.lucariatias.plugins.itemenchanting.EnchantmentListener.onPlayerEnchant(EnchantmentListener.java:58)
at sun.reflect.GeneratedMethodAccessor667.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)
... 15 more
@Pentarctagon
Nothing has changed that affects this plugin between 1.3 and 1.4. If anything breaks, let me know and I'll recompile against 1.4.5-R1.0, but to my knowledge nothing is.
Will this is updated to 1.4?
@UltrafaceGuy
There's no API available yet, though this has been reported ( https://bukkit.atlassian.net/browse/BUKKIT-2850 ) Once that's availble, I'll do it as soon as possible.
@Lucariatias
So how about that anvil customization? :D
"So basically you want enchantments to be able to use multiple types of item, depending on the level of enchant, at static amounts rather than dynamically calculated ones?"
If thats possible? I would like to use combinations of Diamonds and Emeralds for item costs?
"Just finished updating to v1.3, I've been up all day working on this constantly (even while eating) until past 1am British time. Thanks for using ItemEnchanting, and enjoy the new config system!"
Thank you Lucariatias! :)
We apprechiate your efforts on Gildorym massively, ill be sure, as our donations rise, to send one your way to help pay for the beers or pizza :)
Just finished updating to v1.3, I've been up all day working on this constantly until past 1am. Thanks for using ItemEnchanting, and enjoy the new config system!
@UltrafaceGuy
As soon as an API is released, sure!
@Lucariatias
Quick 1.4 request! Anvils are going to cost levels to combine items - would you care to add support for this? I'd love to be able to do the same thing with enchanting with repairing/combining as seen in this plugin. I've loved it since I was the first person to download it XD
@Godpuppet2
I'm thinking about redoing the config entirely so you can set different enchantment types to have different costs, customisable messages, etc. I don't have too much time on my hands at the moment but I can give it a go when I do. So basically you want enchantments to be able to use multiple types of item, depending on the level of enchant, at static amounts rather than dynamically calculated ones?
@Lucariatias
Cheers!
Ill give it a go when I next work on a patch for my server on my test server. Let you know the results.
We've got your plugin installed on Gildorym and it makes enchanting very rewarding.
Its also created a market for emeralds
If your stuck for ideas for features, if there was a way to set different item requirements for different enchanting levels, IE level 1 enchants, 3 emeralds, level 2 enchants, 5 emeralds 2 diamonds... and so on.. It would make this plugin even better! :)
Would that be difficult?