本项目已被 ForgeMend 取代
. .
BetterMending
一款插件,允许玩家使用经验值修复物品,并提供可自定义的修复量和消耗。
功能
- 对特定附魔的物品使用经验值进行修复
- 使用修复功能需要权限(默认:开启)
- 按住 Shift 键并右键点击鼠标来修复物品
- 仅允许通过该插件修复指定的附魔

配置
插件的配置位于 plugins/BetterMending/config.yml 文件中。
# 每修复 1 点耐久度所需的经验值数量
xpCost: 1
# 每次使用所修复的耐久度点数
repairAmount: 2
# 允许用于修复功能的附魔列表。
# 插件将仅使用此列表中的附魔进行修复。
# 附魔应使用其 Minecraft ID 指定(例如 MENDING, PROTECTION)。
# 若要允许所有附魔,请指定 "any"(不带引号)。
allowedEnchantments:
- MENDING
# 当玩家没有权限使用修复功能时显示的消息
noPermissionMessage: "你没有权限使用修复功能!"
# 当玩家的物品已完全修复时显示的消息
itemAlreadyRepaired: "你的物品已经完全修复。"
# 当玩家的物品没有 MENDING 附魔时显示的消息
itemDoesNotHaveMending: "你的物品没有 MENDING 附魔。"
# 当服务器不允许 MENDING 附魔时显示的消息
mendingNotAllowed: "此服务器不允许使用 MENDING 附魔。"
# 当玩家的经验值不足以修复物品时显示的消息
insufficientXP: "你的经验值不足以修复物品。"
# 向玩家展示物品在完全修复前剩余的耐久度时显示的消息
durabilityLeftMessage: "你的物品在完全修复前还剩余 %d 点耐久度。"
# 向玩家展示需要多少次修复以及完全修复所需总经验值时显示的消息
repairsNeededMessage: "完全修复你的物品需要 %d 次修复,总共消耗 %d 点经验值。"
权限
bettermending.use: 允许玩家使用修复功能
统计
This project has been replace by ForgeMend
. .
BetterMending
A plugin that allows players to repair their items with experience points, with customizable repair amounts and costs.
Features
- Repair items using experience points on a specific enchantments
- Permission is required to use the repair feature (Default: true)
- Repair items with the right click mouse button while holding shift
- Allow only certain enchantments to be repaired with the plugin

Configuration
The plugin's configuration can be found in the plugins/BetterMending/config.yml file.
# The amount of experience points required to repair 1 durability point
xpCost: 1
# The amount of durability points repaired per use
repairAmount: 2
# List of enchantments that are allowed to be used with the repair feature.
# The plugin will only use enchantments from this list for repair.
# Enchantments should be specified using their Minecraft ID (e.g. MENDING, PROTECTION).
# To allow all enchantments, specify "any" (without quotes).
allowedEnchantments:
- MENDING
# Message displayed when the player does not have permission to use the repair feature
noPermissionMessage: "You do not have permission to use the repair feature!"
# Message displayed when the player's item is already fully repaired
itemAlreadyRepaired: "Your item is already fully repaired."
# Message displayed when the player's item does not have the MENDING enchantment
itemDoesNotHaveMending: "Your item does not have the MENDING enchantment."
# Message displayed when the MENDING enchantment is not allowed on the server
mendingNotAllowed: "The MENDING enchantment is not allowed on this server."
# Message displayed when the player does not have enough XP to repair their item
insufficientXP: "You do not have enough XP to repair your item."
# Message displayed when showing the player how much durability is left until their item is fully repaired
durabilityLeftMessage: "Your item has %d durability left until it is fully repaired."
# Message displayed when showing the player how many repairs are needed and how much XP it will cost to fully repair their item
repairsNeededMessage: "It will take %d repair(s) to fully repair your item, costing a total of %d exp points."
Permissions
bettermending.use: Allow a player to use the repair feature
Statistics
下载 Better Mending
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Better Mending
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Better Mending
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Better Mending
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Better Mending
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Better Mending
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Better Mending
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Better Mending
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
- 修复了代码中的语法错误
- 问题:
else if后面缺少左括号,且行末的分号导致if语句提前结束。 - 解决方案:添加了缺失的左括号,并移除了行末的分号。
- 问题:
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
评论 0
登录后参与评分
还没有评论,来抢沙发吧