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!
@AgnateHeartstone
no its not a mod item XD http://www.minecraftwiki.net/wiki/Bottle_o%27_Enchanting it's available through creative mode you should make a small plugin so if you put an empty bottle and blaze powder in an alchemy stand it makes that lol and then use that for repairing enchanted tools XD
@Legoboy1134 Ahh, yeah. That prevents a raw material from being used if it doesn't get it's full repair use. Possible is that shovels would never repair, heh. Not really useful until I implement custom amounts. :)
What is the
option in the 0.31 config file?
@Avous Bottle of enchanting? Is that a mod's item?
best repair plugin to date hands down :D! but im waiting for a way to change the materials you use >.< i'd really like enchanted items to cost a bottle of enchanting and the material its made out of :P
@ZeratulsDownfall Right now there is no way to set it. I do plan on adding this in the future, though.
Is there a way to config how much the item gets repaired for each item you place in?
Your example said "Diamond Pickaxe is repaired 33% (1/3) for each Diamond". Is there a way to make it so a Diamond Pickaxe is repaired 1/6 for each Diamond, or 1/9 even?
also, Is there a way to make the repair cost more if the item is enchanted VS not enchanted? (do the above effect for enchanted items only?)
If it can't do this, then it could be a good suggestion for a future version!
@FeuchtVonLipwig Yeah, the duplicating was because, before, Bukkit wasn't properly handling dispensed items, so I had to hardcore-alter the inventory and dispensed items to make things normal. :)
thanks for 0.3.1 because 0.3.0 duplicated the items on my server.
@AgnateHeartstone
Yay! Awaiting! My server is all down my neck going "ZOMG WE CANT FUNCTION WITHOUGH REPAIRDESPENSER"
Uploaded version 0.3.1 for the 1.2.5-R1.0 RB! Might take 10-30 minutes to get approved, but it fixes the cloning now that Bukkit handles Dispenser manipulation properly. :)
@Shaverman5000 Oh! I didn't realize they updated it beyond 2148! I'll get a fix out for this either tonight or tomorrow. :)
@AgnateHeartstone
Yeah, I updated everything to the RB... It's still cloning what you repair.
@AgnateHeartstone
Alrighty, I'll update it again when I get home. Thanks :D. I updated bukkit, the 1 just before the RB.
@Shaverman5000 Are you using the most recent update? I noticed last night that Bukkit fixed a dispenser bug from about 7 months ago, so I'll have to update RepairDispenser. If you stick to the RBs, though, you should be fine.
When you go to repair it's cloning the items...
@Avous Yep! Use String. :)
@AgnateHeartstone
Is it possible to repair bows?
@re4397
Usage:
usage? video ?