这个铁匠铺仅使用 Minecraft 中的材料,不采用经济系统来修理工具。它专为以更贴近现实的方式修复物品而设计,比基于经济的铁匠铺更便宜,也比重造新物品更划算。每种物品(弓除外)都需要消耗一个与其材质相同的材料即可将耐久度恢复至 100%。弓则需要消耗一根木棍和一根线进行修复。这将减少对全新物品的需求,但会增加对基础材料的需求。此插件会检测你手中的物品,如果你拥有修复所需的材料,它将重置该物品的耐久度。
要使用此插件,只需放置一个铁砧(由铁块组成),并使用你想要修复的物品对其进行激活(点击或右键单击)。
安装方法:在文件页面下载所需的 Blacksmith.jar 文件。将其放入 CraftBukkit 文件夹中的 plugins 文件夹内。
所需材料列表:
工具: 消耗
- 木材: 1 个木板
- 石头: 1 个圆石
- 铁: 1 个铁锭
- 金: 1 个金锭
- 钻石: 1 个钻石
- 弓: 1 根木棍 + 1 根线
- 附魔: + 1 烈焰粉
我计划添加权限支持,如果您有任何建议,请告诉我。另外,如果发现任何错误,请通知我以便尽快修复。这是我的第一个插件,因此我还不完全掌握 Bukkit 的所有功能,但通过这次经历,我已经学到了很多关于使用 Bukkit 制作插件的知识。
您可以在此处查看源代码 HERE(其中包含大量用于测试的临时代码)。如果您想借鉴我的部分代码用于自己的项目,我并不介意,但在复制大段代码之前请先与我沟通。
如有任何想法/建议/问题,请提交工单。相比评论,工单更容易追踪。谢谢!
视频作者:WoopaGaming
有一个类似但已更新的模组由 Holyviruss 和 Thidox 制作,详见 HERE
This blacksmith only uses materials in Minecraft, not use an economy to repair your tools. It is made specifically to repair your items in a more realistic way than the economy based blacksmiths, and cheaper than making a new one. Each item (except bows) takes one of whatever material it is made of to repair it to 100%. Bows take one string and one stick to be repaired. This will decrease the need for new items but increase the need for the base elements. This plugin takes the item in your hand and, if you have the required material for the repair, it resets the durability.
To use this plugin all you have to do is place an anvil (iron block) and activate it (hit or right click) with the item you want to repair.
To install: Download the desired Blacksmith.jar in the files page. Place the .jar into the plugins folder in your CraftBukkit folder.
List of Required Material:
Tool:Cost
- Wood: 1 Wood Plank
- Stone: 1 Cobblestone
- Iron: 1 Iron Ingot
- Gold: 1 Gold Ingot
- Diamond: 1 Diamond
- Bow: 1 Stick + 1 String
- Enchantments: + 1 Blaze Powder
I am planning to add support for permissions, but if you have any suggestions please tell me. Also if you find any bugs, tell me so I can fix them ASAP. This is my first plugin, so I don't know how to do EVERYTHING with bukkit yet but I have learned a lot about making plugins using bukkit from this experience.
Feel free to view the source code HERE (There is a lot of temporary code for testing in there). I do not mind if you take pieces of my code and use them for your own projects, but please ask me before taking large chunks.
Please send a ticket with any ideas/suggestions/problems. They are easier to track than a comment. Thanks!
Video: WoopaGaming
There is a similar but updated mod made by Holyviruss and Thidox HERE
评论 0
登录后参与评分
还没有评论,来抢沙发吧