RepairDispenser

Overview

RepairDispenser by Agnate
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:

  1. Build regular dispenser.
  2. Attach button/lever/pressure plate/redstone signal to dispenser.
  3. Open dispenser and place tool + raw material inside dispenser.
  4. Press/use the button/lever/pressure plate/redstone signal.
  5. Rejoice as your repaired item is dispensed!


FAQ

  1. Can I repair bows and fishing rods?
    Of course! To repair bows and fishing rods, use String as the raw material.
  1. 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!

Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files