RepairRecipe
此插件允许你使用制作该物品所需的原始材料来修复护甲/武器/工具,并保留附魔。修复成本取决于物品的损坏程度、制作该物品所需的原始材料数量以及附魔等级。要修复物品,请将物品和原始材料放入工作台。结果将是带有附魔的已修复物品。而且几乎所有内容都可配置!
无需特殊方块或构造。只需使用工作台即可修复物品。
最新开发版本:
仅支持 Bukkit 1.7.9-R0.2(测试版)
此项目的开发构建可在提供的持续集成服务器上获取。这些构建未经 BukkitDev 工作人员批准。使用风险自负。
版本 0.4.9 - 源代码 - 下载 - 仅支持 Bukkit 1.6.4-R2.0
版本 0.4.8-beta - 下载 - 仅支持 Bukkit 1.6.1-R0.1
版本 0.4.7 - 源代码 - 下载 - 仅支持 Bukkit 1.5.2-R0.1、1.5.2-R1.0
版本 0.4.6-beta - 下载 - 仅支持 Bukkit 1.5.1-R0.1
版本 0.4.5-beta - 下载 - 仅支持 Bukkit 1.4.7-R1.0
版本 0.4.4 - 下载 - 仅支持 Bukkit 1.4.7-R1.0

示例
- 一个铁锭可修复无附魔铁镐耐久度的 1/3。
- 一个铁锭可修复拥有三级附魔的铁镐耐久度的 1/9。
用法由 spitfire25565 说明:
<h3>功能</h3>
- 使用基础材料修复物品并保留附魔
- 配置每个物品修复所需的基础材料及数量
**新增**
- 设置修复时随机移除附魔的概率(全局及按组可配置)
- 配置附魔修复的成本(全局及按组可配置)
- 为特殊附魔配置额外成本(按附魔可配置)
**新增**
- 过度修复 - 不浪费基础材料,并允许将物品修复至超过 100% 耐久度
- 群组折扣 - 为你的赞助者设置折扣(全局及按组可配置)
对于所有“按组”设置,需要安装 Vault。
默认基础材料
- 铁锭用于所有铁制工具、武器、护甲和剪刀
- 铁锭用于链铠护甲(但比铁护甲更便宜)
- 皮革用于皮革护甲
- 圆石用于石制工具
- 木板用于木制工具
- 金锭用于金制工具、武器和护甲
- 钻石用于钻石制工具、武器和护甲
- 线用于弓和钓鱼竿
安装
将 RepairRecipe.jar 放入 bukkit 的 plugins 文件夹中。配置文件将自动设置。
标准配置文件会自动创建。
配置
allow_over_repair
若要允许过度修复,请将其设置为 true(默认为 false)
allow_over_repair: false #或 true
keep_enchantments_chance
如果你不想保留附魔,请将其设置为 0;如果想保留,请设置为 100。(以前作为 keep_enchantments: true/false)
介于两者之间的任何值都是你保留附魔的概率。但请记住,每种附魔最多可以进行三次掷骰子判定。
如果你足够幸运地保留了附魔,将会进行另一次掷骰子判定。如果命中,该附魔将获得一个随机的较低等级。
不要信任工作台的预览结果。你无法预测掷骰子的结果!
keep_enchantments_chance: 100 #值在 0(移除附魔)到 100(保留附魔)之间
keep_enchantments_chance_groups: {} #为每个组设置不同的值
如果你使用 Vault,可以为每个权限组设置此概率。对于未定义的组,将使用全局默认值。
keep_enchantments_chance: 10 #做个幸运儿以保留任意附魔
keep_enchantments_chance_groups:
Sponsor: 100 #但不要折腾赞助者!
enchant_multiplier
修复附魔物品代价高昂。通过此乘数,你可以降低或进一步提高其修复成本。
如果将其设置为 0,则修复附魔物品不会产生额外费用。
enchant_multiplier: 100 #值介于 0(附魔无额外费用)和 200(一把等级 4 附魔的镐子大约需要 30 个钻石)之间
enchant_multiplier_groups: {}
如果启用了 Vault,现在可以为每个用户组设置单独的附魔乘数。
如果使用此选项,当用户没有所属组或未列出该组时,将使用 `enchant_multiplier` 作为默认值。
enchant_multiplier: 100 #一把等级 4 附魔的镐子大约需要 15 个钻石
enchant_multiplier_groups:
Sponsor: 20 #一把等级 4 附魔的镐子大约需要 5 个钻石
special_enchant_multiplier
你认为某些附魔应该比其他附魔更贵?或者某些附魔应该是免费的?那么这个选项就是为你准备的!
special_enchant_multiplier: {} #默认值 - 所有附魔具有相同的乘数 (100)
此乘数会与 `enchant_multiplier` 相乘。如果你将 `enchant_multiplier` 设置为 0,则此设置完全不起作用。
将某个附魔的此项设置为 0,则该附魔的修复将是免费的。
可能的取值:
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 #值介于 0(免费)和 200 之间
use_highest_enchant
启用“仅使用最高等级附魔”提供了另一种调节附魔物品价格的方式。
如果此选项设置为 false,则 `enchant_multiplier` 将乘以物品上所有附魔等级的总和。
对于一把拥有耐久 II、效率 III 和精准采集 IV 的工具,这将使价格变为 `enchant_multiplier` 的九倍。
如果将此选项设置为 true,则只计算最高的附魔等级,价格将仅为 `enchant_multiplier` 的四倍。
use_highest_enchant: false #或 true
discount
通过此选项,你可以为修复价格设置折扣。这类似于 Minecraft 原版修复功能的 10% 奖励修复效果。
折扣值为 100 意味着无论物品的耐久度如何,都只需要一个基础物品。
如果开启了过度修复(over repair),在折扣为 100 的情况下,物品将获得 200% 的耐久度。建议通常使用 80 左右以避免这种情况。
discount: 10 #值介于 0(无折扣)到 100(仅需一个基础物品)之间
discount_groups: {}
与大多数设置一样,如果启用了 Vault,你可以为每个权限组设置此折扣。
discount: 10 #一把等级 4 附魔的镐子大约需要 14 个钻石(乘数 100)
discount:
Sponsor: 25 #一把等级 4 附魔的镐子大约需要 5 个钻石(乘数 20)
base item configuration
如果你愿意,可以更改用于修复无附魔物品(从 0% 到 100% 耐久度)的基础物品及其所需数量。
附魔成本将加到此基础成本上,最后再减去折扣。
物品配置位于 `items.yml` 中。如果从中移除某件物品,则无法修复它,直到你再次添加它为止。
你也可以添加额外的物品。如果有人想添加非标准 Minecraft 物品,我会尝试支持。也许它已经能工作了?我对这类插件没有经验。
diamond_axe: #这是你要修复的物品(可以使用名称或 ID)
base_item: diamond #这是你应该放入合成网格的基础物品(可以使用名称或 ID)
base_amount: 3 #这是修复物品从 0% 到 100% 耐久度所需的基础物品数量
因为我喜欢过度设计,所以还有更多选项。默认配方中没有这些选项,所以如果你想使用它们,必须手动添加。
通过这些附加配置,你可以覆盖某些特殊物品的修复行为。
例如更改 `keep_enchantments_chance`(保留附魔概率)、`enchant_multiplier`(附魔乘数)、`allow_over_repair`(允许过度修复)和 `use_highest_enchant`(仅使用最高等级附魔)。
这将覆盖该设置的默认值和组内值。如果你希望使用默认/组内值,请删除该选项或将其设置为 `default`。
diamond_sword: #见上文
base_item: diamond #见上文
base_amount: 2 #见上文
keep_enchantments_chance: default #使用 config.yml 中设置的默认值(全局/组)
enchant_multiplier: 200 # 武器附魔的修复成本更具价值
allow_over_repair: false # 你是 PvP 服务器吗?对于所有盔甲和武器,务必将其设置为 false。
use_highest_enchant: true # 高倍率仅针对最高等级的附魔,听起来很公平吧?
# 更多功能即将推出(例如:修复所需的经验值?修复获得的经验值?经济系统费用?...)
MCStats
MCStats 是免费、开源且匿名的。所有数据都是公开的,可供每个插件自由使用。()
引用: 您可以随时选择退出数据提交。这将立即停止向支持 MCStats / Plugin Metrics 的任何插件发送数据。只需编辑 plugins/PluginMetrics/config.yml 并将 opt-out: false 更改为 true
如果您对该服务的运作方式或其他任何方面有任何疑问,请通过 IRC 联系我们或直接给我发邮件:hidendra [at] mcstats.org
权限
- RepairRecipe.repair
- 允许玩家修复物品。默认值:true
- RepairRecipe.repair.enchant
- 允许玩家保留附魔。没有此权限的玩家虽然可以修复物品,但会失去所有附魔。默认值:true
- RepairRecipe.repair.overRepair
- 允许玩家过度修复物品。默认值:false
- RepairRecipe.admin
- 玩家可以使用 /repairrecipe reload 和 /repairrecipe debug 命令
命令
- /repairrecipe reload
- 重新加载 `config.yml` 文件。若要重新加载 `items.yml`,请重启服务器。
- /repairrecipe debug [true|false]
- 启用调试模式。服务器日志中会出现许多调试消息,部分消息也会显示给玩家。除非您打算报告错误,否则请勿启用此功能。
已知问题
请将 bug 发布在 - 这样我会立即收到电子邮件通知! 我不会定期查看这里的评论。
待办事项
不确定是否会实现,因为目前对这些功能的支持不多。
致谢
我要感谢所有给我提供反馈并测试该插件的人。如果您帮助了我,我将把您添加到这个列表中 ;)

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:
only Bukkit 1.7.9-R0.2 (beta)
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

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:
<h3>Features</h3>
- 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. ()
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
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
Please post bugs at - 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 ;)

评论 0
登录后参与评分
还没有评论,来抢沙发吧