RepairDispenser
Overview
version: 0.3.1 | craftbukkit: #2149 | Source
Description
RepairDispenser is a plugin that will allow players to repair their tools and equipment using raw materials by placing both into a Dispenser and dispensing it (requires some kind of redstone power source, like a button or pressure plate). The raw material required is whatever material is needed to make the item being repaired (ex. Diamond Pickaxe requires a Diamond as a raw material). The amount repaired is based on the amount of raw material required to initially make the item (ex. Diamond Pickaxe is repaired 33% (1/3) for each Diamond).
One of the major benefits of RepairDispenser is that the repaired item's enchantments will not be removed. This allows players to fully use those hard-to-get enchanted items without worrying about them eventually being destroyed. Also, since the raw materials required are the core component of the tool already, it is not imbalanced either.
Usage
How to use RepairDispenser:
- Build regular dispenser.
- Attach button/lever/pressure plate/redstone signal to dispenser.
- Open dispenser and place tool + raw material inside dispenser.
- Press/use the button/lever/pressure plate/redstone signal.
- Rejoice as your repaired item is dispensed!
FAQ
- Can I repair bows and fishing rods?
Of course! To repair bows and fishing rods, use String as the raw material.
- My server is still running a version of Bukkit before 2149! Use RepairDispenser 0.3.0 if you are running a build before 2149.
Config Options
Quote from the Config File:over-repair: [ true | false ] - Allow items to be over-repaired (ie. if a 99% pickaxe is repaired with 1 raw material, it will have 132% durability instead of 100% durability, preventing the raw material from being "wasted" on a 1% repair).
Commands
There are no commands.
Permissions
There are no permissions (as dispensers can be triggered by non-players, so having permissions is useless).
To Do List
My current to-do list:
- Add a config option to change raw materials for items. Current implementation doesn't support it, though.
- Add a config option to set the percentage repaired per raw material item.
- Add a chat message for how much was repaired.
- Add a check command to see what's needed for repair.
Change Log
View the Change Log.
Credits
- slipcor for helping with the banner's screenshot!
- garbagemule for inspiration and code help along the way!
-
View User Profile
-
Send Message
Posted Mar 31, 2012@cpugastronomy I'm actually waiting on some Bukkit fixes before I go about adding a lot of features. I'll definitely keep it in mind, though
-
View User Profile
-
Send Message
Posted Mar 30, 2012Nice plugin !
What do you think about adding an option that gives a chance that it possibly fail when repairing an item (losing the item and/or the ressource used) ? Sure, it would be a configurable option, but it would be a nice touch.
-
View User Profile
-
Send Message
Posted Mar 22, 2012@Paril101 Yeah, you'd have to expand Repairable to remember its own max durability and material repair requirements (material + percentage repaired per material).
-
View User Profile
-
Send Message
Posted Mar 21, 2012@AgnateHeartstone
So, I was going to basically create a little config system that let you add custom 'repair recipes' sorta shpiel, which would let you add custom items in as well (for mods, what-have-you), but I realized as I started that I have no idea how the heck you'd get the max durability from an item that isn't in the Material list... other than defining it manually maybe?
-P
-
View User Profile
-
Send Message
Posted Mar 21, 2012@AgnateHeartstone
Bah, Git. *sad*
-P
-
View User Profile
-
Send Message
Posted Mar 20, 2012@Paril101 Why not just do a Fork & Pull Request from Github? Source link at the top of the main page. ^_^
-
View User Profile
-
Send Message
Posted Mar 19, 2012Hey, broseph:
Could you slip me the source? I'd like to look into this one, and possibly add some stuff and bring it up to date.
Thanks, -P
-
View User Profile
-
Send Message
Posted Mar 5, 2012great plugin, looking forward to what gets added next ? :)
-
View User Profile
-
Send Message
Posted Feb 23, 2012Can you please add an option likes this: [itemID] Repairs: [itemID] for support for mods like metallurgy : )
-
View User Profile
-
Send Message
Posted Feb 21, 2012Yes, it's great but too easy..if i could half the effect, it'd be perfect cause then you'd only do it, if it was worth the enchantment or cost, eg diamond sword damage 1 vs damage 5, the 5 would be worth spending lots of diamonds to fix all the time....great plugin, can't wait for update
also haven't tried it but hope it works for bows, and you should add a chat display for percentage change
RD: Diamond Pick (1 raw) 13% --> 43%
also
RD: Diamond Pick (2 raw) 72% --> 139%
or instead for this one ^^
RD: Diamond Pick (2 raw) 72% --> 100% (39 over)
and a 'check' command for what that item is on
-
View User Profile
-
Send Message
Posted Feb 4, 2012@Dean Updated to R3 (RB #1846) now. Changed the events system and fixed a rare bug I noticed.
Edit: Ugh, file approval nonsense. You'll have to wait a bit before it'll show up in the Files list.
-
View User Profile
-
Send Message
Posted Feb 4, 2012Hey. Could you by any chance make this compatible with the newest stable release? R3?
-
View User Profile
-
Send Message
Posted Jan 26, 2012Ahh ignore my previous comment. I should have looked at the source code first. Bow repair is possible, you just need string instead of wood.
-
View User Profile
-
Send Message
Posted Jan 26, 2012Any chance of support for repairing bows? Ive tried wood and an enchanted bow but it didnt work.
-
View User Profile
-
Send Message
Posted Jan 10, 2012@Ragnarrok1 Unfortunately not, at least not in its current state. It would be a lot of work to add, and I just can't dedicate the time to do it, sorry. There are a couple other plugins (I believe one called Anvil?) that would do the things you like.
@meisterdon I should be able to add this fairly easily. I'll put it on my To Do list for the next update. :)
-
View User Profile
-
Send Message
Posted Jan 10, 2012Would it be possible to include a config option that would allow the percentage repaired to be more than the default set?
-
View User Profile
-
Send Message
Posted Dec 24, 2011Posible to doo soo only admins can set down the despensers who can repair? And take charges for it?
-
View User Profile
-
Send Message
Posted Dec 23, 2011Tried to fix Paril's reported bug in the newest version 0.2.1. :) Merry Christmas everyone!
-
View User Profile
-
Send Message
Posted Dec 18, 2011Still crashing randomly when you put an item to repair in the chest, followed by several of the raw ingredient in there as well. Seems to happen if the item it picks to dispense is not the item you wish to repair. Will decompile your source (sorry :P) and see if I can find the bug in a bit!
-
View User Profile
-
Send Message
Posted Dec 13, 2011Version 0.2.0 is released! Bukkit bug was fixed, so all items dispense as normal. While doing this, I might have fixed the item dupe bug mentioned earlier. Also added a config file to enable over-repair. :)