Hi! I was wondering if someone can make a plugin that can control an item/tools durability. One where you can set the durability of an item higher or lower than what it normally is.
eheheh funny guy xD this is not possible. What one could do is do some calculations from the config relative to the default value. But it is so much trouble xD And I'm so busy
What if the plugin can make a tool stay new longer. After a specified amount of uses, it begins to break down as usual?
if you want your durabillity bar to show as it is, i THINK you could check on playerinteractevent then run a random and check if to increase/lower metadata of the held tool.
A certain item, or every single damageable item? Oh and, I might work on this :3 EDIT: I'll work on a config to configure which items to damage (* = all) https://dl.dropbox.com/u/94640527/Plugins/DurabilityController.jar - Configuration of items that will get affected by the plugin (* = all, seperated by commas)e.g: 276, 277 - This allows dsword and dshovel to save durability - Tool durability will be saved at a 20% chance, so technically, the tool durability is increased by 20%PM me about any errors/bugs relating to this plugin EDIT by Moderator: merged posts, please use the edit button instead of double posting.
I don't understand code yet. Holy shit! That was fast.. Too fast... lol Thanks I'll check it out and let you know! Pretty much damageable items like weapons, tools and armor. Will * affect every single item in the game or only damageable weapons, tools and armor? EDIT by Moderator: merged posts, please use the edit button instead of double posting.
You are going to change values in other files, for this a field "durability" in the Item.class file I have made something like, now testing EDIT: Ok, only the durability bar is not following. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Download: http://dl.dropbox.com/u/104060836/DurabilityControl.jar If I forgot some items, just tell me and I will add. If there are new methods added, u should have to regenerate the config. And source if needed: https://github.com/Cybermaxke/DurabilityControl/tree/fee08446bfc263f72be91b70f1bbca815b334fd3
Cybermaxke Awesome thanks! This is a good one! It gives the chance to have Gold better than Iron but worst than Diamond. Same with Chainmail. Oh yeah, you did forget one, Fishing rod lol Edit: The bar isn't synchronised with the actual duribility. Is it impossible to change that?
Alright for sure. I think the enchantment unbreaking isn't working well with the plugin. After the item's bar has reached the least, it disappears but doesn't break and will reappear when you right-click a block or place a block in its slot in the inventory.
Weird. Still a usefull plugin though. As long as users don't have the enchantment unbreaking, they won't have this problem. Are you planning to post it on bukkit dev?
I don't know, maybe. And maybe, I should have to update the plugin for 1.4 Also, how is the saving working? Cause its just minecraft who is handeling that. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Awesome plugin! I have been messing around with it and I can say that, at least on my server, the enchantments seem to work fine and the saving seems to be working as well. I don't know if you will be updating this, but I will check back. This is the only plugin I can find that can change item durability.
Ok, nice to hear that its working fine, and it should be still working for v1.4. And what about the durability bar?
The plugin works great but the durability bar isn't synchronized with the actual amount. Let's say we changed a wood axe's durability to 100 uses. The bar is still synchronized as if it was 59 uses but when the bar is empty, the wood axe keeps going until it is actually used 100 times. Then it'll break. With enchantment unbreaking, when the bar is empty, the item will disappear and reappear constantly. Other than that, the amount of uses works fine even with the enchantments. Edit: It's not working well with bukkit 1.4.2-R0.1 The same problem that happened with the enchantment unbreaking is now happening with all the tools even without the enchantment. Can you update it?
So, you can update this for 1.4.2 and add it to Bukkit.dev, because i looking for plugin like this for very long...
I will try to fix it, or I will recode it on a diffirent way It should also work with the durability bar. What do u mean? EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Cybermaxke haha sorry forget it. But you want like /set itemdurability 20 for 20% or something like that?
Cybermaxke So how is this plugin doing? I don't see any posts stating if you have fixed the durability bar or enchantments.