
平滑 SimplySwords SpellPower 兼容
修复Simply Swords 1.70.2与Spell Power 1.6.x在Minecraft 1.20.1 Fabric上的兼容性问题。
Smooth SimplySwords SpellPower Compat
一个为 Minecraft 1.20.1 Fabric 上的 Simply Swords 与 Spell Power 提供的小型兼容附加模组。
Simply Swords 1.70.2 仍期望使用旧版 Spell Power API,即法术学派通过 SpellSchool.attribute 暴露其底层属性。
Spell Power 1.6.x 更改了该 API。
结果如何?
打开你的物品栏,让 Minecraft 计算 Simply Swords 武器的提示信息,然后突然出现:
java.lang.NoSuchFieldError:
net.spell_power.api.SpellSchool.attribute
不太理想。
Smooth SimplySwords SpellPower Compat 弥合了这一 API 差异,使你可以继续将 Simply Swords 与较新的 Spell Power 1.6.x 组合一起使用。
本模组修复了什么
该附加模组为 Minecraft 1.20.1 修补了 Simply Swords → Spell Power 的兼容层。
它将 Simply Swords 使用的旧属性访问方式更新为较新的 Spell Power API。
实际上,这修复了 Minecraft 尝试计算或显示 Spell Power 相关武器属性时触发的崩溃,包括打开物品栏时常见的崩溃。
该兼容层还处理了 Simply Swords 提示信息所使用的法术学派显示路径。
保持正常工作的内容
目标并不是禁用 Simply Swords 的 Spell Power 集成。
而是让它继续工作。
Simply Swords 武器可以继续使用其配置的法术学派,包括如下学派:
- 奥术(Arcane)
- 火焰(Fire)
- 冰霜(Frost)
- 治疗(Healing)
- 闪电(Lightning)
- 灵魂(Soul)
武器法术强度缩放仍由现有的 Simply Swords 和 Spell Power 系统处理。
本附加模组仅替换它们之间过时的 API 桥接。
需求
专为以下环境设计:
Minecraft 1.20.1
Fabric
必需模组:
- Simply Swords 1.70.2
- Spell Power 1.6.x
- Fabric Loader
将此附加模组与 Simply Swords 和 Spell Power 一同安装。
它不需要 Smooth Classes。
尽管名称如此,这是一个独立的兼容补丁,可用于任何使用受影响版本的 Fabric 1.20.1 整合包。
为什么存在这个模组?
Simply Swords 1.70.2 直接访问旧版 Spell Power 法术学派属性字段。
旧版 API:
school.attribute
较新的 Spell Power API 通过以下方式暴露已注册的属性:
school.getAttributeEntry()
本附加模组修补了受影响的 Simply Swords 兼容方法,改为通过较新的 API 解析属性。
换句话说:
Simply Swords 1.70.2
↓
期望旧版 Spell Power API
↓
Smooth SimplySwords SpellPower Compat
↓
Spell Power 1.6.x API
小小的桥接。
少一次崩溃。
皆大欢喜。
修补了什么?
该附加模组针对 Simply Swords 用于 Spell Power 集成的受影响的 Fabric 兼容代码。
涵盖的主要兼容路径为:
Spell Power 武器属性
修复了 Simply Swords 将 Spell Power 修饰符应用于武器时使用的属性查找。
这正是因移除 SpellSchool.attribute 字段而导致物品栏崩溃的代码路径。
法术学派显示
更新了用于 Simply Swords 法术学派显示和提示信息的法术学派属性查找。
这防止相同的旧 API 访问通过另一条 UI 路径再次出现。
兼容范围
初始版本有意保持狭窄范围。
它专为受影响的 Minecraft 1.20.1 组合而制作:
Simply Swords 1.70.2
Spell Power 1.6.x
Fabric
Minecraft 1.20.1
此附加模组不会尝试重写 Simply Swords、替换 Spell Power 或修改武器平衡。
如果 Simply Swords 发布了已支持较新 Spell Power API 的官方 1.20.1 更新,此兼容附加模组可能不再必要。
整合包使用
可以,你可以将此附加模组包含在整合包中。
它正是为了让现代化的 1.20.1 RPG 组合继续工作而创建,无需降级 Spell Power 或移除 Simply Swords。
对于依赖处理,请确保玩家也获得所需的 Simply Swords 和 Spell Power 版本。
Smooth 生态
此兼容附加模组最初是在维护与以下项目搭配使用的 RPG 组合时创建的:
Smooth Classes — 职业、技能树、能力、召唤物与坐骑
Smooth Progression — 等级、经验与世界进度
Smooth Odyssey — 兼容性问题变成支线项目的整合包
Smooth Classes 不是此附加模组的必需依赖。
错误报告
如果你仍然遇到与 Simply Swords / Spell Power 相关的崩溃,请包含:
- Minecraft 版本
- Fabric Loader 版本
- Simply Swords 版本
- Spell Power 版本
- 此兼容附加模组版本
latest.log- 崩溃报告(如果生成了的话)
请尽可能包含完整堆栈跟踪。
如果崩溃提及另一个旧版 Spell Power 字段或方法,通常意味着还有另一条兼容路径需要修补。
版本
Smooth SimplySwords SpellPower Compat 1.0.0
针对 Minecraft 1.20.1 Fabric 上的 Simply Swords 1.70.2 与 Spell Power 1.6.x 的初始兼容版本。
正在加载版本记录…
正在加载评论…
评论在新手盒子客户端中发表,这里同步展示。