[重铸] 弩附魔

[重铸] 弩附魔

通过让弩能够应用弓专属附魔来增强弩的体验。

冒险

Crossbow-Enchants 多加载器版(NeoForge/Forge)

原版(Fabric)链接

本模组是原模组的分支,但增加了对 NeoForge 和 Forge 的支持;如需 Fabric 版本,请参考原模组。

Crossbow Enchants

Crossbow Enchants 是一个可自定义的服务器端或客户端模组,通过允许弓专属附魔作用于弩来增强弩的使用体验。

除此之外,Crossbow Enchants 还支持让无限与经验修补在弩和弓上兼容,让穿透与多重射击在弩上兼容,以及让抢夺在弓和弩上兼容。

尽管 Crossbow Enchants 最初是专为服务器端运行而制作的,但它在单人游戏中也能完美运行。如果你计划在服务器端运行此模组,玩家无需在客户端安装它。

命令

使用以下命令,你可以自定义模组的功能。请注意,在服务器上玩家必须拥有管理员权限才能使用这些命令:

/crossbowenchants [disable/enable] - 用于切换模组全局功能的命令。

/crossbowenchants enchantments [disable/enable] [enchantment] - 禁用或启用特定附魔。

/crossbowenchants features [disable/enable] [feature] - 禁用或启用特定功能,功能包括 Infinity-And-Mending 和 Piercing-And-Multishot。

/crossbowenchants info - 此命令会向玩家输出模组的当前设置。

/crossbowenchants reset - 此命令会将设置重置为默认值;默认情况下,所有附魔和功能均为启用状态。

配置

你也可以直接通过模组的配置文件进行自定义,文件位于 .\config\crossbowenchants.toml.

以下是配置文件默认的内容:

#A toggle for the global functionality of Crossbow Enchants.
Enabled = true
#A toggle for the functionality of the Flame enchantment on the crossbow.
FlameEnabled = true
#A toggle for the functionality of the Infinity enchantment on the crossbow.
InfinityEnabled = true
#A toggle for the functionality of the Looting enchantment on crossbows and bows.
LootingEnabled = true
#A toggle for the functionality of the Power enchantment on the crossbow.
PowerEnabled = true
#A toggle for the functionality of the Punch enchantment on the crossbow.
PunchEnabled = true
#A toggle for the compatibility of Infinity and Mending on crossbows and bows.
InfinityAndMendingEnabled = true
#A toggle for the compatibility of Piercing and Multishot on crossbows.
PiercingAndMultishotEnabled = true

请注意,如果任何属性缺失或格式不正确,配置不会重置;相反,模组会为该属性使用默认值,在所有情况下默认值均为 'true'。

依赖

无需任何依赖 :D

附加信息

- 附魔行为

请注意,禁用任何附魔将导致以下结果:

这些附魔将无法再通过铁砧应用于弩。

[Minecraft 1.20 至 1.20.4] 这些附魔将在已附有它们的现有弩上停止生效(抢夺除外)。

- 功能行为

请注意,禁用某项功能将导致以下结果:

受该功能影响的附魔将无法再通过铁砧相互兼容,但在已附有它们的现有物品上仍会正常工作。

- 无限与经验修补

启用 Infinity-And-Mending 功能将使无限和经验修补附魔普遍兼容,这意味着它们也能在弓上生效。

为了避免让弩相比弓过于强大,我决定暂时保持现状。不过,我将来可能会为这一特定情况添加一个设置。