简介
当 Minecraft 遇到深度超过 512 的复合/列表 NBT 标签时,它会抛出异常并拒绝加载存档。
本模组将这一令人烦恼的机制替换为无害的日志警告,让游戏继续运行。
查找受影响的数据 (1.21.11+)
在 logs/latest.log 中搜索 Excessive NBT nesting。警告信息会包含文件名、达到的深度,以及在可用情况下,指向首个超出限制的复合或列表标签的路径。区域警告还会包含维度信息和区块坐标。缩短后的路径会显示分支的开头和结尾。
Minecraft 通常会拒绝嵌套层级超过 512 层的 NBT 数据。某些模组每次保存世界时都会在同一数据上增加一层嵌套,因此请在修复存档前识别并更新负责写入数据的模组。备份世界后,使用报告的 file 和 path 在 NBT 编辑器中进行检查。例如,递归嵌套的地形规则可能存储在旧世界的 level.dat 中,以及 26.x 版本的 data/minecraft/world_gen_settings.dat 中。参见 地形规则修复示例。
配置 (1.21.11+)
编辑服务器上的 config/longnbtkiller-common.toml,或在单人游戏的 Minecraft 实例中进行编辑。
| 设置项 | 默认值 | 效果 |
|---|---|---|
maxDepth |
2147483647 |
支持的存档读取最大深度。使用 512 可恢复原版限制。 |
warningIntervalTicks |
1200 |
一旦服务器检测到深层 NBT 且有在线玩家,即发送首次警告。此后每 1,200 个服务器刻重复一次,以 20 TPS 计算约为一分钟。设置为 0 可禁用聊天提醒。 |
即使配置的读取限制更高,警告阈值仍保持为 512。修复前请务必备份世界。极深的数据在读取、加载或保存过程中仍可能导致 Java 栈溢出。
注意
- 深度超过 512 的复合/列表 NBT 标签本身属于异常情况,收到日志警告后,建议通过 NBT 编辑器检查您的存档;
- 您绝对可以将此模组加入您的整合包。
Introduction
When Minecraft is encountering any compound / list nbt tag with a depth greater than 512, it throws an exception and refuses to load the save.
This mod replaced the annoying mechanism with a harmless log warning, and let the game go ahead.
Find the affected data (1.21.11+)
Look for Excessive NBT nesting in logs/latest.log. The warning includes the file, the depth reached and, when available, a path to the first compound or list that crosses the limit. Region warnings also include the dimension and chunk coordinates. A shortened path shows the beginning and end of the branch.
Minecraft normally rejects NBT nested beyond 512 levels. Some mods can add another layer to the same data each time a world is saved, so identify and update the mod that writes the data before repairing the save. Back up the world, then use the reported file and path in an NBT editor. For example, recursively nested terrain rules can be stored in level.dat on older worlds and in data/minecraft/world_gen_settings.dat on 26.x. See the terrain rule repair example.
Configuration (1.21.11+)
Edit config/longnbtkiller-common.toml on the server, or in your Minecraft instance for single-player.
| Setting | Default | Effect |
|---|---|---|
maxDepth |
2147483647 |
Maximum depth for supported save reads. Use 512 to restore the vanilla limit. |
warningIntervalTicks |
1200 |
Send the first warning as soon as the server detects deep NBT and has online players. Repeat every 1,200 server ticks after sending, about one minute at 20 TPS. Set to 0 to disable chat reminders. |
The warning threshold remains 512 even when the configured read limit is higher. Back up the world before repairing it. Extremely deep data can still exhaust the Java stack during reading, world loading, or saving.
ATTENTION
- A compound / list nbt tag with a depth greater than 512 itself is abnormal, and you may check your save via NBT editor after receiving the warning in the log;
- You DEFINITELY CAN add the mod to your modpack.
下载 Long NBT Killer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Long NBT Killer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Long NBT Killer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Long NBT Killer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Long NBT Killer
下载 Long NBT Killer
下载 Long NBT Killer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Long NBT Killer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Long NBT Killer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Long NBT Killer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
[1.1.0] - 2026-11-09
Added
- 为 Minecraft 1.21.11、26.1.2、26.2 和 26.3 添加了 Fabric 和 NeoForge 构建版本。
- 添加了诊断日志功能,记录文件、深度以及首个超出限制的 NBT 路径(如果可用)。区域警告包含维度与区块坐标信息。
- 添加了共享的 TOML 配置文件,并在存档读取层数超过 512 层时显示游戏内警告。服务器会立即向在线玩家发出警告,并默认每 1,200 tick 重复一次,指引服务器管理员查看日志。
Changed
- 将支持的存档读取深度限制默认值设为
Integer.MAX_VALUE。保留 Minecraft 的网络 NBT 深度与字节限制。 - 在 Fabric 上要求安装 Forge Config API Port 和 Fabric API;在 NeoForge 上使用其内置的配置系统。
- 通过单一的 Stonecutter 项目构建所支持的 Minecraft 与加载器组合。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
评论 0
登录后参与评分
还没有评论,来抢沙发吧