survival-toolbox-forge1.20.1-1.2.1.jar
Curse Maven Snippet
What's new
# Survival Toolbox 1.2.1 — Changelog
| | Minecraft | Loader | File in this package |
|---|---|---|---|
| **Updated** | 1.20.1 | Forge 47.x (Java 17) | `survival-toolbox-forge1.20.1-1.2.1.jar` |
| No update needed | 1.21.1 | NeoForge 21.1.x (Java 21) | Keep using 1.2.0 — this issue does not affect 1.21.1 |
This release is a **hotfix for 1.2.0**. It fixes a single problem and adds no new items, blocks or gameplay changes.
---
## Fixed
### Game crashed on startup on some 1.20.1 modpacks
- **Symptom**: the game crashed during loading with
`NoSuchMethodError: 'net.minecraft.resources.ResourceLocation net.minecraft.resources.ResourceLocation.parse(java.lang.String)'`,
together with `Failed to create mod instance: zzq_survival_toolbox` and `Failed to complete lifecycle event CONSTRUCT`.
- **Affected**: 1.20.1 modpacks running a **Forge version below 47.3.19** .
Forge 47.3.19 and above were not affected.
- **Cause**: the mod used two 1.21 APIs (`ResourceLocation.parse` / `ResourceLocation.fromNamespaceAndPath`).
Forge only backported those methods to 1.20.1 in **47.3.19**; on older Forge releases they do not exist,
so the mod failed the moment it was loaded. This has been present since 1.1.1.
- **Fix**: all call sites now use the vanilla 1.20.1 constructor. The mod now loads on
**every Forge version from 47.1.12 up to 47.4.x**.
- **Also corrected**: the declared Forge dependency floor changed from "47 and above" to "47.1.12 and above",
so the declaration matches what the code actually requires. Too-old Forge now reports an unsatisfied
dependency instead of crashing the game.
# 生存工具箱 Survival Toolbox 1.2.1 更新日志
| | 游戏版本 | 加载器 | 本包文件 |
|---|---|---|---|
| **本次更新** | 1.20.1 | Forge 47.x(Java 17) | `survival-toolbox-forge1.20.1-1.2.1.jar` |
| 无需更新 | 1.21.1 | NeoForge 21.1.x(Java 21) | 继续用 1.2.0,本次问题与 1.21.1 无关 |
本版本是 1.2.0 的**热修复**:只修一个问题,没有新增物品、方块或玩法改动。
---
## 修复
### 部分 1.20.1 整合包一进游戏就崩溃
- **现象**:游戏在加载阶段直接崩溃,日志里是
`NoSuchMethodError: 'net.minecraft.resources.ResourceLocation net.minecraft.resources.ResourceLocation.parse(java.lang.String)'`,
并伴随 `Failed to create mod instance: zzq_survival_toolbox`、`Failed to complete lifecycle event CONSTRUCT`。
- **影响范围**:**Forge 版本低于 47.3.19 的 1.20.1 整合包**。
Forge 47.3.19 及以上不受影响。
- **原因**:模组里用了两个属于 1.21 的方法(`ResourceLocation.parse` / `ResourceLocation.fromNamespaceAndPath`)。
这两个方法 Forge 直到 **47.3.19** 才移植进 1.20.1;在更老的 Forge 上它们并不存在,
模组一被加载就报错。自 1.1.1 起的包都有这个问题。
- **修复**:全部改为 1.20.1 原版就有的写法。现在**从 Forge 47.1.12 一直到 47.4.x 都能正常加载**。
- **顺带修正**:模组声明的 Forge 依赖下限由「47 起」改为「47.1.12 起」,让声明与实际要求一致 ——
过旧的 Forge 现在会明确提示「依赖版本不满足」,而不是把游戏带崩。
This mod has no additional files

