概览
版本:0.3.1 | craftbukkit:#2149 | 源代码
描述
RepairDispenser 是一个插件,允许玩家通过将工具和原材料放入发射器中并触发发射来修复他们的工具和装备(需要某种红石电源,如按钮或压力板)。所需的原材料是制作该物品所需的材料(例如,钻石镐需要钻石作为原材料)。修复量基于初始制作该物品所需的原材料数量(例如,每使用一个钻石,钻石镐可修复 33%(1/3))。
RepairDispenser 的主要好处之一是修复后的物品不会移除附魔。这使得玩家可以充分利用那些难以获得的附魔物品,而不用担心它们最终会被破坏。此外,由于所需的原材料已经是工具的核心组件,因此也不会造成不平衡。
使用方法
如何使用 RepairDispenser:
- 建造普通发射器。
- 将按钮/拉杆/压力板/红石信号连接到发射器。
- 打开发射器并将工具和原材料放入其中。
- 按下/使用按钮/拉杆/压力板/红石信号。
- 为你的修复物品感到高兴吧!
常见问题解答
- 我可以修复弓和钓鱼竿吗?
当然可以!要修复弓和钓鱼竿,请使用线作为原材料。
- 我的服务器仍在运行 2149 之前的 Bukkit 版本!
如果你运行的是 2149 之前的构建版,请使用 RepairDispenser 0.3.0。
配置选项
来自配置文件的内容:over-repair: [ true | false ] - 允许物品过度修复(即如果一把耐久度为 99% 的镐子用 1 个原材料修复,它的耐久度会变成 132% 而不是 100%,从而防止原材料在仅修复 1% 时被“浪费”)。
命令
没有命令。
权限
没有权限(因为发射器可以由非玩家触发,所以拥有权限是没有用的)。
待办事项
我当前的待办事项列表:
- 添加一个配置选项以更改物品的原材料。目前的实现不支持此功能。
- 添加一个配置选项以设置每个原材料项目的修复百分比。
- 添加聊天消息显示修复了多少。
- 添加一个检查命令以查看修复所需的内容。
更新日志
查看 更新日志。
致谢
- slipcor 帮助提供了横幅截图!
- garbagemule 提供了灵感和代码帮助!
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!
评论 0
登录后参与评分
还没有评论,来抢沙发吧