Disenchanter
Disenchanter
This plugin will disenchant a held item and code it into a spare book in your inventory. Conditions will need to be met to perform such an arcane and forbidden ritual.
Usage
/disenchant Use while holding the item you wish to disenchant.
/whatname Originally a debugging command to test for locations of items and the assigned metadata. Will probably remove this when I'm 100% happy with the behaviour of the plugin.
Administration command
/disenchanter set <config option> <value>
Configuration options:
- multi-mode : Setting multi-mode to true will allow any player holding enough Soul Emeralds and Books to take all enchantments from the item and record them into separate books.
default: false options: true, false
- require-emerald : Choose whether or not the player needs to have an emerald to disenchant their item.
default: true options: true, false
- require-book : Choose whether or not the player needs to have a book to write their enchantment/s to.
default: true options: true, false
- require-night-time : Choose whether or not night time is required to disenchant items.
default: true options: true, false
- override-durability : Allow a player to disenchant damaged items by setting this to true
default: false options: true, false
Conditions
A player must be holding an enchanted item to begin. The ritual will only progress at night time. A player must supply a book to be consumed, as well as an emerald named Soul. If the item is damaged, the ritual will fail...
You can control the requirements for disenchanting by using the administration command or by changing the config.yml while the server is stopped.
Permissions
/disenchant
disenchant.disenchant
/whatname
disenchant.whatname
/disenchanter
disenchant.admin
Further Comments
This is my first plugin, so it may not perform up to the expectations of some of the more well-developed plugins out there. Please let me know if you have any recommendations or suggestions to make this plugin better on any level.
The source code is available on my GitHub
-
View User Profile
-
Send Message
Posted Oct 7, 2013@Relaking
Why would you want that? It defeats the purpose of the plugin. Why not just give players free enchanted books? It'd be a lot less work for me.
-
View User Profile
-
Send Message
Posted Sep 28, 2013@xavierthompson138
Yes, thats exactly what I want, thank you :D Next request :P : If you disenchant an item, is it possible to get the item back?
-
View User Profile
-
Send Message
Posted Sep 28, 2013Last update allows for the removal of the Emerald component. If you want me to remove the naming requirement but still consume an emerald...give me a couple of weeks? Really busy work week coming up
-
View User Profile
-
Send Message
Posted Sep 28, 2013Cool Plugin, works perfectly fine!
The only thing I dont like is that you have to rename your emeralds, is there a way to turn that off?
(Sorry for my bad english, I'm from germany)
-
View User Profile
-
Send Message
Posted Sep 24, 2013For your convenience, I've added a few more configuration options in version 0.3.0:
require-emerald, require-book, require-night-time and override-durability.
I've added information about them to the description on the main page. The default settings will match the original design of the plugin, but you can now change it match your requirements or your players requirements.
@MCJackJ
I haven't gotten around to adding different "payment" or "cost" types yet, but I plan to in the future. Since writing a few more plugins, I've realised that the way I wrote this plugin was pretty wrong - it's all stepwise rather than modular. So I need to pull things out of the main command structure and give them their own methods.
All time-constrained, but you may see it within a couple of weeks.
v.0.3.0 should be approved within the hour hopefully
EDIT: spelling :(
-
View User Profile
-
Send Message
Posted Sep 23, 2013@Hutchmaster99
Go for it mate. As per my reply to MCJackJ, I'll be making this more configurable when I get a chance, but I'm not sure how long that will take me, so do as you will :)
-
View User Profile
-
Send Message
Posted Sep 23, 2013@MCJackJ
I'll have a look into making it more configurable when I get some spare time. I'm guessing it'll be a fairly large task. Money will be harder because I don't know how to hook plugins like Vault. But it should be more configurable, you're right. I'll brainstorm and try a few things out tomorrow
-
View User Profile
-
Send Message
Posted Sep 23, 2013Someone wants to have this plugin but doesn't want the extra "soul" dealio, can I have permission to modify the plugin?
-
View User Profile
-
Send Message
Posted Sep 17, 2013Really cool plugin, I do have one suggestion though. Maybe some kind of config file that lets a server owner set the cost of disenchanting an item, whether it be money, XP or items?
-
View User Profile
-
Send Message
Posted Sep 4, 2013@Kino876
awesome! thanks for the feedback, and enjoy
-
View User Profile
-
Send Message
Posted Sep 4, 2013First try and works perfect...
A sword with 6 enchants, were consumed 6 books and 6 emeralds and the books match the enchantments.
I have tested with less books or emeralds and you get a message saying that you don't have enough books or emeralds.
Well done!!!
Thank you. ;-)
-
View User Profile
-
Send Message
Posted Sep 3, 2013@francus2000
Gracias!
-
View User Profile
-
Send Message
Posted Sep 3, 2013@Kino876
re: changelog: your idea, you get credit :)
re: the array out of bounds exception
I was a bit unclear about the change in the command. /disenchantER is only for the admin control. /disenchant (like before) will still do what you want it to do. I'll fix up the console error that it's throwing with a message that says "Did you mean to type "/disenchant"?"
In the meantime it'll still function - just be sure to tell your players to use /disenchant when actually disenchanting things.
Thanks :)
EDIT: v0.2.6 is awaiting approval by BukkitDev mods, should resolve the issue.
-
View User Profile
-
Send Message
Posted Sep 3, 2013Very good idea for the vips of my server please follow updating this plugin don't leave it. Sorry for my bad english i'm spanish and 13 years old.
-
View User Profile
-
Send Message
Posted Sep 3, 2013Thank you for mention me in the change log. :)
I put multi-mode to true in config file after a restart.
Then I wrote /disenchanter and I get an internal error directly, I tried to restart the server 2 times but still happen the same.
Take a look the console output:
http://dev.bukkit.org/bukkit-plugins/disenchanter/tickets/1-multi-mode-doesnt-work/
-
View User Profile
-
Send Message
Posted Sep 3, 2013@Kino876
v0.2.5 awaiting file approval from BukkitDev. Once you can get your hands on it, install it over the old version and run /disenchanter set multi-mode true
Please note the difference in command: disenchanter instead of disenchant. Was just a bit easier and less time consuming to write.
This will get you the functionality I think you're looking for. Please test a fair bit and get back to me with any issues.
enjoy!
-
View User Profile
-
Send Message
Posted Sep 3, 2013@Kino876
I'm almost there, it's being annoying and outputting the right number of books, but adding enchantments each time. So the first book has one, the second book has the first enchant AND the second, and so on...
Soon :P
-
View User Profile
-
Send Message
Posted Sep 3, 2013@xavierthompson138
Oh, thank you very much, I hope that you can do it soon and I'll be waiting for your reply.
-
View User Profile
-
Send Message
Posted Sep 3, 2013@Kino876
Thank you!
I will take a look at it soon. I recently learned how to do configuration files, so I'll see if I can work in an option that lets you do full disenchanting. I'll keep you posted.
-
View User Profile
-
Send Message
Posted Sep 3, 2013Great Plugin, I wanted something like that for my vip players.
But do you think it is possible that more than one Soul "Emerald" and several books can disenchant all enchantments of the item?.