Arcane
本模组通过将附魔力量系统的部分元素改为数据驱动,使用户能够更充分地利用 Minecraft 的附魔力量系统。它主要面向数据包和整合包开发者,但模组开发者也可能从中受益。
在原版 Minecraft 中,你可以向 enchantment_power_provider(附魔力量提供者)标签中添加条目,使它们像书架一样为附魔台提供力量(事实上,书架本身默认就属于此标签)。然而,这种力量加成被硬编码为 1(与书架相同),且不尊重方块状态,这使得某些类型的方块(如蜡烛,可以在一个方块空间内包含多根蜡烛)使用起来不太方便。有时这确实——说得直白点——令人沮丧。
Arcane 提供了一种解决方案,添加了数据驱动的附魔力量提供者,其参数可以更加灵活。

!! 开发者可以在 模组的 README 页面 找到更多信息。 !!
兼容性:
服务端与客户端:
Arcane 完全基于服务端,因此原版客户端可以连接到加载了该模组的服务器,且几乎所有功能都能按预期运行。但是,除非原版客户端也安装了该模组,否则来自模组附魔力量提供者的附魔粒子效果将不会显示。
与其他模组:
Arcane 不会以任何方式干扰原版或模组化的附魔力量提供者。这一决定首先是为了确保模组兼容性。此外,对基础代码的添加简单且精简。不过,在某些方面 Arcane 可能会遇到兼容性问题,特别是与以下情况:
- 影响附魔台检测半径的模组。Arcane 主要依赖原版功能来实现这一点,因此根据更改实施的责任程度,它可能配合良好。然而,由于计算方式的原因(复制了原版的检测系统),增加的半径可能会导致一些关于障碍物检测的奇怪问题。
- 完全抛弃原版附魔系统的模组。出现兼容性问题的原因显而易见。
默认配置:
默认情况下,Arcane 包含了一些可供你在游戏内和游戏外尝试以了解其工作原理的提供者示例。其中包括:
- 提供 0.2 力量的方块 - 灵魂火、灵魂火把、灵魂灯笼
- 提供 1 力量的方块 - 海晶灯、哭泣的黑曜石
- 提供 3 力量的方块 - 所有原版生物头颅
- 点燃时提供 0.2 力量的方块 - 灵魂营火
- 每点燃一根蜡烛提供 0.25 力量(一个方块内 4 根蜡烛共提供 1 力量)的方块 - 蜡烛
- 每存储一本书提供 0.5 力量(6 本书共提供 1.5 力量)的方块 - 雕刻书架
如果你想覆盖这些默认值,你可以覆盖 arcane_test 数据包空间内的相应文件。
Arcane
This mod exposes more of Minecraft's enchanting power system to users by making elements of it more data driven. It is geared towards data pack and mod pack developers alike, though mod developers may also find it useful.
In vanilla Minecraft, you can add entries to the enchantment_power_provider tag to make them provide power to enchanting tables like bookshelves do (in fact, bookshelves themselves are part of this tag by default). However, this power boost is hard coded to 1 (the same as bookshelves), and it doesn't respect block states, making it inconvenient for certain block types (like candles, which can contain multiple candles in one block space). This can sometimes be - to put it rather bluntly - frustrating.
Arcane offers a solution by adding data driven enchanting power providers, which can be much more flexible in their parameters.

!! You can find more information for developers on the mod's README page. !!
Compatibility:
Server Vs. Client:
Arcane is entirely server-side, so vanilla clients can connect to modded servers with nearly everything functioning as expected. However, enchanting particles from modded power providers will not display on vanilla clients unless they also install the mod.
With Other Mods:
Arcane does not interact in any way with vanilla nor modded enchanting power providers. This decision was made to maintain mod compatibility first and foremost. In addition, the additions to base code are simple and minimal. However, there are a few areas where Arcane may run into compatibility issues, in particular with:
- Mods that affect the enchanting table's detection radius. Arcane mainly relies on vanilla functionality for this, so it may place nicely depending on how responsibly this change was implemented. However, an increased radius may result in some funny business concerning obstruction detection due to how it is calculated (a copy of vanilla's detection system).
- Mods that completely throw out the vanilla enchanting system. It should be obvious why compatibility issues would arise here.
Default Configuration:
By default, Arcane includes a few examples of providers you can play around with both in-game and outside the game to see how they work. These include:
- Blocks that give 0.2 power - soul fire, soul torch, soul lantern
- Blocks that give 1 power - sea lantern, crying obsidian
- Blocks that give 3 power - all vanilla mob heads
- Blocks that give 0.2 power when lit - soul campfire
- Blocks that give 0.25 power for each candle when lit (1 power with 4 candles in 1 block) - candles
- Blocks that give 0.5 power for each book stored (1.5 power for 6 books) - chiseled bookshelf
If you wish to override these, you can overwrite their respective file inside the arcane_test data space.
评论 0
登录后参与评分
还没有评论,来抢沙发吧