Smithing Table Fix

插件

· 作者 coolbot100s

允许 Bedrock(Geyser)和 1.20+ 玩家在 1.16.1-1.19.4 服务器上通过添加一个关于锻造台的命令来使用锻造台。

0 本站下载 0 关注 更新于 2 年前

最新 1.1 · 1.21.1 · Paper / Purpur

一键开服(送7天)

添加了一个简单的 /smithing 命令。

当玩家手持可以在锻造台升级的物品,并且正看着一个锻造台,且与该锻造台的距离在 5 格以内(默认值)时,该命令会从玩家的物品栏中消耗 1 个没有任何自定义数据的下界合金锭,并将其钻石物品升级为下界合金物品。

最初开发此功能是为了让通过 Geyser/基岩版或其他 1.20+ 客户端连接至 Java 1.19.4 或更低版本服务器的玩家仍能使用锻造台。
Geyser 的更新使得这一用途变得过时。

也可用于 1.20 服务器,以省去对下界合金升级的需求。

权限及默认值:

Permissions
permissions:
  smithing.use:
    description: Allows players to use the /smithing command.
    default: true
  smithing.anywhere:
    description: Allows players to use the /smithing command without looking at a smithing table.
    default: op
  smithing.free:
    description: Allows players to use the /smithing command without needing or consuming a Netherite Ingot.
    default: false

可配置选项及默认值:

Config
# The max distance a player can be from the smithing table they're looking at when using /smithing
maxDistance: 5
# Whether the smithing table sound should be played when a player successfully uses /smithing
playSound: true
# Whether a message should be sent to the player when they use /smithing successfully
sendSuccessMessages: true
# Whether a message should be sent to the user when /smithing is used unsuccessfully
sendFailureMessages: true
# Whether a player in Creative Mode is required to have and use a Netherite Ingot (in-dependant of the smithing.free permission)
creativeSmithsFree: true

# Message strings, use '§' to add formatting. https://minecraft.wiki/w/Formatting_codes
logger.notPlayer: "Only players may use this command."
message.noPermission: "§cYou don't have permission to use this command.§r"
message.noTable: "§cYou must be looking at a smithing table to use this command.§r"
message.noIngot: "§cYou must have at least 1 Netherite Ingot.§r"
message.invalidItem: "§cYou cannot upgrade this item. Please hold the item you wish to upgrade in your main hand.§r"
message.success: "§aYou've successfully upgraded your item.§r"

限制:

仅适用于原版配方,因为它们已硬编码到插件中。

不会检查运行命令的玩家是否有权访问并能够使用其正在观看的锻造台,而仅检查该锻造台是否在玩家的视线范围内且附近存在。

作为免责声明,我应该说明,我本人无法测试 Geyser 连接。

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源