添加了一个简单的 /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 连接。
你是这个资源的作者?登录后可认领此资源。
相似资源
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
使床在所有维度中爆炸的模组
为 Armor Poser 模组添加兼容性
SkyBlock、OneBlock、Boxed、SkyGrid、AcidIsland、CaveBlock、Poseidon、StrangerRealms——以及更多!这些只是由 BentoBox 支持的基于岛屿的游戏模式之一。来自原版 ASkyBlock 的作者。
一个高度兼容、功能完善且稳定的 TPA 模组
AbAcc AbAcc 是一款适用于 Minecraft 服务器的管理插件,可简化玩家作弊检测与举报管理工作。工作人员可以发起并管理对可疑玩家的检查流程,并在检查完成后将其释放。
评论 0
登录后参与评分
还没有评论,来抢沙发吧