RepairRecipe

Screenshot #1

RepairRecipe

This Plugin allows you to repair armour/weapons/tools with the base item needed to craft the item and keep the enchantments. Repair costs depend on damage of the item, amount of base items needed to craft the item and the level of the enchantments. To repair an item, drop the item and the base item into the workbench. The result is the repaired item with enchantments. And almost everything is configurable!

No special block or construction needed. Just use the workbench to repair items.

Latest Dev Version: https://drone.io/github.com/attrib/RepairRecipe/status.png
Development builds of this project can be acquired at the provided continuous integration server. These builds have not been approved by the BukkitDev staff. Use them at your own risk.

Version 0.4.9 - Source - Download - only Bukkit 1.6.4-R2.0

Version 0.4.8-beta - Download - only Bukkit 1.6.1-R0.1

Version 0.4.7 - Source - Download - only Bukkit 1.5.2-R0.1, 1.5.2-R1.0

Version 0.4.6-beta - Download - only Bukkit 1.5.1-R0.1

Version 0.4.5-beta - Download - only Bukkit 1.4.7-R1.0

Version 0.4.4 - Download - only Bukkit 1.4.7-R1.0

http://api.flattr.com/button/flattr-badge-large.png

Example

  • One iron ingot repairs 1/3 of an iron pickaxe without enchantments.
  • One iron ingot repairs 1/9 of an iron pickaxe with a level 3 enchantment.

Usage explained by spitfire25565:

Features

  • Repair items with base item and keep enchantments
  • Configure base item and amount needed for a item to repair **new**
  • Set a chance to randomly remove enchantments on repair (configurable globally and per group)
  • Configure the costs for enchantment repair (configurable global and per group)
  • Configure extra costs for special enchantments (configurable per enchant) **new**
  • Over-Repair - waste no base item and allow to get items repaired over 100% durability
  • Discounts for Groups - set a discount for your sponsors (configurable global and per group)

For every "per group" setting Vault is needed.

Default base items

  • iron ingot for all iron tools, weapons, armour and shears
  • iron ingot for chainmail armour (but cheaper than iron armour)
  • leather for leather armour
  • cobblestone for stone tools
  • wooden planks for wood tools
  • gold ingots for gold tools, weapons and armour
  • diamond for diamond tools, weapons and armour
  • string for bow and fishing rod

Installation

Put the RepairRecipe.jar into bukkits plugins folder. Configurations are setup automaticlly.

Standard Config is created automatically.

Configuration

allow_over_repair

To allow Over-Repair set this to true (Default false)

allow_over_repair: false #or true

keep_enchantments_chance

If you do not want to keep enchantments, set this to 0, if you want to keep them set to 100. (formerly as keep_enchantments: true/false)

Any value between is the chance you will keep the enchantments. But keep in mind, the dice can roll up to three times for each enchant. If you are lucky enough to keep the enchant, there will be another roll with the dice. If it hits you there, the enchant gets an random lower level. And don't trust the result view of the workbench. You can't forecast the roll!

keep_enchantments_chance: 100 #value between 0 (remove enchants) to 100 (keep enchants)
keep_enchantments_chance_groups: {} #set it to different values foreach group

You can set this chance for each permission group, if you are using Vault. For non defined groups the global default is used.

keep_enchantments_chance: 10 # be a lucky bastard to keep any enchantment
keep_enchantments_chance_groups:
  Sponsor: 100 # but don't mess with sponsors!

enchant_multiplier

Repairing items with enchantments is expensive. With this multiplier you can make it cheaper or make it even more expensive. If you set this to 0 there will be no extra costs to repair enchanted items.

enchant_multiplier: 100 #value between 0 (no extra costs for enchantments) and 200 (around 30 diamonds for a pick axe with a level 4 enchantment)
enchant_multiplier_groups: {}

Its now possible to set this enchantment multiplier per group if Vault is enabled. Is this option is used, enchant_multiplier is the fallback if the user has no group or if the group is not listed.

enchant_multiplier: 100 # around 15 diamonds for a pick axe with a level 4 enchantment
enchant_multiplier_groups:
  Sponsor: 20 # around 5 diamonds for a pick axe with a level 4 enchantment

special_enchant_multiplier

You think some enchantments should cost more than other? Or some enchants should be free? Then this option is for you!

special_enchant_multiplier: {} # default - all enchants have the same multiplier (100)

This multiplier is multiplied by `enchant_multiplier`. If you set `enchant_multiplier` to 0, this setting has no influence at all. Set this to for a enchant to 0 and this enchant will be free to repair.

Possible values: PROTECTION_ENVIRONMENTAL, PROTECTION_FIRE, PROTECTION_FALL, PROTECTION_EXPLOSIONS, PROTECTION_PROJECTILE, OXYGEN, WATER_WORKER, DAMAGE_ALL, DAMAGE_UNDEAD, DAMAGE_ARTHROPODS, KNOCKBACK, FIRE_ASPECT, LOOT_BONUS_MOBS, DIG_SPEED, SILK_TOUCH, DURABILITY, LOOT_BONUS_BLOCKS

special_enchant_multiplier:
    DURABILITY: 200 # value between 0 (for free) and 200

use_highest_enchant

With use highest enchant you have another option to regulate the price for enchanted items. If this is set to false the `enchant_multiplier` will be multiplied by the sum of all the levels of the enchants on the item. For a tool with Unbreaking II, Fortune III and Efficiency IV this would be nine times `enchant_multiplier`. If you set this option to true, only the highest enchant counts and it would only be four times `enchant_multiplier`

use_highest_enchant: false # or true

discount

With this option you can set discounts for the repair price. Its like the 10% bonus repair with the Minecraft repair function. A discount of 100 means it only costs one base item whatever the durability of the item is. If you turned on over repair the item will have a durability of 200% with discount 100. Use something like 80 to avoid this most of the time.

discount: 10 # value between 0 (no discount) to 100 (one base item)
discount_groups: {}

Like most of the settings you can set this for each permission group, if vault is activated.

discount: 10 # around 14 diamonds for a pick axe with a level 4 enchantment (multiplier 100)
discount:
  Sponsor: 25 # around 5 diamonds for a pick axe with a level 4 enchantment (multiplier 20)

base item configuration

If you want, it is possible to change the the base item and amount needed to repair an item with no enchants from 0% to 100% durability. To this base costs the enchantment costs will be added and after all the discount subtracted.

The item configuration is in the `items.yml`. If you remove an item there, it is not possible to repair it, until you add it again. But you can also additional items. If anyone wants to add none standard minecraft items, i will try to add this. Maybe it even works already? I have no experience with such plugins.

diamond_axe:            # this is the item you want to repair (possible are names or ids)
    base_item: diamond  # this is the base item, which you should add to the grid (possible are names or ids)
    base_amount: 3      # this is the amount of the base_item you need to repair the item from 0% to 100% durability

Because I like overkill, there are more options. None of the default recipes have this, so you have to manually add these if you want these. With these additional configs you can overwrite the repair behaviour for some special items. Like change the `keep_enchantments_chance`, `enchant_multiplier`, `allow_over_repair` and `use_highest_enchant`. This overwrites the default and group values for this setting. If you want the default/group values, remove the option or set it to `default`.

diamond_sword:                         # see above
    base_item: diamond                 # see above
    base_amount: 2                     # see above
    keep_enchantments_chance: default  # use the default value set in congig.yml (global/group)
    enchant_multiplier: 200            # repair costs for weapon enchantments are more valuable
    allow_over_repair: false           # you are a PVP Server? Definitely set this to false for all armour and weapons.
    use_highest_enchant: true          # high multiplier but only for the highest enchant, sounds fair?
    # more are coming (exp costs for repair? exp get for repair? economy costs? ...?)

MCStats

MCStats is free, open source and anonymous. All data is public and freely available for every plugin. (http://mcstats.org/learn-more/)

Quote:

You are free to opt-out of submitting data whenever you wish. This will immediately stop sending data for any plugins that supports MCStats / Plugin Metrics. Simply edit plugins/PluginMetrics/config.yml and change opt-out: false to true
If you have any questions at all about how this service operates or anything else, please do visit us in IRC or email me directly: hidendra [at] mcstats.org

RepairRecipe

Permissions

RepairRecipe.repair
Player is allowed to repair items. Default: true
RepairRecipe.repair.enchant
Player is allowed to keep enchantments. Player without this permission, can repair their items, but will lose all enchantments. Default: true
RepairRecipe.repair.overRepair
Player is allowed to over repair items. Default: false
RepairRecipe.admin
Player can use the commands /repairrecipe reload and /repairrecipe debug

Commands

/repairrecipe reload
Reload the `config.yml` file. To reload `items.yml` restart the server.
/repairrecipe debug [true|false]
Enable debug mode. Many debug messages will appear in the server log and some to the player. Do not enable this as long as you do not want to report a bug.

Know Issues

  • none yet

Please post bugs at https://github.com/attrib/RepairRecipe/issues?state=open - this way I get a email right away! I dont check the comments here regulary.

TODO

Don't know if this will happen, as there issn't much support for any of the features.

  • get Exp from repairing items
  • Exp costs to repair enchantments
  • possibility to unenchant an item
  • add economy support (suggested by OriginalMadman @ #2) - feedback needed

Credits

I want to thank everyone who gives me feedback and tests the plugin. If you help me, I will add you to this list ;)

http://api.flattr.com/button/flattr-badge-large.png

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of Varijon Varijon May 08, 2014 at 08:11 UTC - 1 like

    @poiNt3D: Go

    This plugin uses nms and needs an update with every minecraft version. As such it will only work for 1.7.2 currently.

    Check out my Hawkeye Monitor tool!
    HawkEye Monitor Thread

  • Avatar of poiNt3D poiNt3D May 03, 2014 at 16:41 UTC - 0 likes

    Hello.

    Could not load 'plugins/RepairRecipe-0.5.0-beta.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: net/minecraft/server/v1_7_R1/Packet
    	at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[spigot1371.jar:git-Spigot-1371]
    	at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) ~[spigot1371.jar:git-Spigot-1371]
    	at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [spigot1371.jar:git-Spigot-1371]
    	at org.bukkit.craftbukkit.v1_7_R2.CraftServer.loadPlugins(CraftServer.java:355) [spigot1371.jar:git-Spigot-1371]
    	at net.minecraft.server.v1_7_R2.DedicatedServer.init(DedicatedServer.java:135) [spigot1371.jar:git-Spigot-1371]
    	at net.minecraft.server.v1_7_R2.MinecraftServer.run(MinecraftServer.java:440) [spigot1371.jar:git-Spigot-1371]
    	at net.minecraft.server.v1_7_R2.ThreadServerApplication.run(SourceFile:618) [spigot1371.jar:git-Spigot-1371]
    Caused by: java.lang.NoClassDefFoundError: net/minecraft/server/v1_7_R1/Packet
    	at java.lang.Class.forName0(Native Method) ~[?:1.7.0_55]
    	at java.lang.Class.forName(Class.java:270) ~[?:1.7.0_55]
    	at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:40) ~[spigot1371.jar:git-Spigot-1371]
    	at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:127) ~[spigot1371.jar:git-Spigot-1371]
    	... 6 more
    Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_7_R1.Packet
    	at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:67) ~[spigot1371.jar:git-Spigot-1371]
    	at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:62) ~[spigot1371.jar:git-Spigot-1371]
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:425) ~[?:1.7.0_55]
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ~[?:1.7.0_55]
    	at java.lang.Class.forName0(Native Method) ~[?:1.7.0_55]
    	at java.lang.Class.forName(Class.java:270) ~[?:1.7.0_55]
    	at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:40) ~[spigot1371.jar:git-Spigot-1371]
    	at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:127) ~[spigot1371.jar:git-Spigot-1371]
    	... 6 more
    
  • Avatar of Adam_Nox Adam_Nox Feb 20, 2014 at 02:02 UTC - 0 likes

    I wish there were other plugins that did something like this, maybe I'm not looking hard enough.

    Sometimes the repair costs just don't make sense with this, no matter what numbers I plugin.

    Example, iron shovel. base repair is 6x item. has 3 durability, 4 efficiency. enchant multiple set to at 40, durability multiple set to 0. Use highest set to false.

    When it's 3/4ths broke, it costs 5 to repair to full. That doesn't make any sense.

  • Avatar of Adam_Nox Adam_Nox Feb 19, 2014 at 01:02 UTC - 0 likes

    @attrib: Go

    Seems to be a problem where the result window won't properly update the more of the material you put in. Sometimes it does, sometimes it stops right before it will be full and you can't get it to update again.

    Sort of a new issue, possibly caused by another plugin, just don't know what it would be.

    Also lots of debug messages in the console (results don't match).

  • Avatar of Stigimon Stigimon Feb 02, 2014 at 04:23 UTC - 0 likes

    need an update for 1.7.2 - R.0.2. its my fav plugin i love it anvil too expensive :D

  • Avatar of MisterMystery MisterMystery Jan 03, 2014 at 01:27 UTC - 0 likes

    @attrib: Go

    This seems to work fine for now in 1.7.2

    Still testing but have had no problems.

    Thanks for the update, this is great!!

  • Avatar of attrib attrib Dec 07, 2013 at 15:40 UTC - 0 likes

    Just uploaded a new stable release (0.4.9) which is exaclty the 0.4.9-beta3 release for Bukkit 1.6.4-R2.0, but as there were none new bug reports I released this now.

    On the other hand started with 0.5.0-beta for 1.7.2-R.0.1. Checkout https://drone.io/github.com/attrib/RepairRecipe/files to test this. This is a development build of this project. These builds have not been approved by the BukkitDev staff. Use them at your own risk. But would be glad if people can test this already.

  • Avatar of attrib attrib Nov 09, 2013 at 14:44 UTC - 0 likes

    New dev version for Bukkit 1.6.4-R2.0, see https://drone.io/github.com/attrib/RepairRecipe/files

  • Avatar of Varijon Varijon Nov 04, 2013 at 01:16 UTC - 0 likes

    @n0etics: Go

    That's okay, can never be too sure.

  • Avatar of n0etics n0etics Oct 30, 2013 at 01:15 UTC - 0 likes

    @Varijon: Go

    Thanks for the fix.

    No offense meant at all, but I'm going to look through what you posted and see if it checks out so everyone can feel a little more at ease downloading it.

Anvil vs RepairRecipe? What will you choose in 1.4.2?

  1. Choice:

  1. Results
  2. 2 comments

Facts

Date created
Aug 12, 2012
Category
Last update
Mar 01, 2014
Development stage
Release
Language
  • enUS
License
GNU General Public License version 3 (GPLv3)
Curse link
RepairRecipe
Downloads
18,605
Recent files

Authors

Relationships

Optional dependency
Vault