Long NBT Killer
Prevent minecraft from crashing while encountering deep nbt tags
No ratings yet
Be the first to rate it.
Community listing page
Community listing page, reviews may not be monitored by the author.
Community voices
Reviews
Log in to review this mod
Reviews are written by ModDex members. Log in and you'll come right back to the review form.
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
Runs entirely on the server. Also works in singleplayer.
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
About
Description
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.
Unfortunately, the erroneous behavior of certain mods can cause the NBT depth to increase continuously, eventually leading to a StackOverflowError. Consequently, users may need to identify the specific mods responsible and take appropriate action. According to a report by the user "ABadHaiku," such issues are relatively common in some MCreator mods. He has already contacted the developers of MCreator, who have since fixed this problem in the latest version. If users can determine the source of the glitch, they should report it to the mod's author. Additionally, "ABadHaiku" has provided a method for repairing affected save files here.
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.
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.
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
Stats
- Downloads
-
20.9m
20.8m
26k
- Used in
- 517 modpacks
- Followers
- 0
- In stacks
- 1
- Created
-
- Last synced
-
Dec 2, 2026 5:03 AM UTC
New file updates sync automatically.
When ModDex last fully re-synced this project from CurseForge or Modrinth. A new file release triggers a resync usually within minutes, and every project is also re-synced on a schedule. Edits that don't ship a file, such as a new description or screenshots, are checked every few hours and can appear before the above date changes.
How syncing works
External Links
Stats
- Downloads
-
20.9m
20.8m
26k
- Used in
- 517 modpacks
- Followers
- 0
- In stacks
- 1
- Created
-
- Last synced
-
Dec 2, 2026 5:03 AM UTC
New file updates sync automatically.
When ModDex last fully re-synced this project from CurseForge or Modrinth. A new file release triggers a resync usually within minutes, and every project is also re-synced on a schedule. Edits that don't ship a file, such as a new description or screenshots, are checked every few hours and can appear before the above date changes.
How syncing works