Mineuniverse
Log in Register
Mods

Feature NBT Deadlock Be Gone

Fixes deadlocks caused by https://bugs.mojang.com/browse/MC-246262
by telepathicgrunt
Claim this project
18,655,751 downloads
0 likes
Updated Jun 30, 2026
0 hypes

Files

Forge download: Click here

Fabric download: Click here

--------------------------------------------------------------------------------------------------------------


INFO

This mod's sole goal is to fix this bug for 1.18 MC: https://bugs.mojang.com/browse/MC-246262

NOTE: The bug does not appear to be reproducible in 1.19+ anymore!

 

The bug is when placing NBT builds into the world during worldgen, it can deadlock the game if the build is replacing a BlockEntity of any kind. Spawners, chests, lecterns, beds, signs, etc. Which is... bad. Your game locks up and freezes. Ticks are no longer being run. 

 

The issue comes down to the fact that the method used to place build's blocks in the world is not worldgen safe. It is using the wrong world object inside. The way this mod fixes the bug is by simply skipping the calls to those unsafe methods if the world passed into the nbt placing method is a WorldGenRegion class. More info and in-depth detail is in the bug report above. 

 

For mods, this bug may occur more often which is why it may be a good idea to just have this mod on as a precaution. 

 

This bug does not occur in 1.17.x and below. It is fixed in 1.19 and above. It seems to only exist in 1.18.x. 

 

------------------------------------------

MOD DEVERLOPERS:

To use in dev, add this to the repositories block in build.gradle:


    maven {

       // FeatureNBTDeadlockBeGone

       url "https://nexus.resourcefulbees.com/repository/maven-public/"   

    }


Then in dependencies block in build.gradle, add:

     FORGE:

     runtimeOnly fg.deobf("com.telepathicgrunt:FeatureNBTDeadlockBeGone-Forge:2.0.0+1.18.2")

     FABRIC:

     modRuntimeOnly "com.telepathicgrunt:FeatureNBTDeadlockBeGone-Fabric:2.0.0+1.18.2"

     QUILT:

         modRuntimeOnly "com.telepathicgrunt:FeatureNBTDeadlockBeGone-Quilt:2.0.0+1.18.2"

 

Change 2.0.0+1.18.2 to the version you want.

 

 

Discord Link to #telepathicgrunt-mods channel for my mods! : 

https://discord.gg/K8qRev3yKZ

discord-logo-png-free-transparent-png-logos-discord-png-logo-300_300 (PNG)  | BeeIMG

No files available for download.

More from telepathicgrunt

Blame (Fabric)
99,012
Repurposed Structures - Better Ocean Monuments Compat Datapack
9,796,034
Repurposed Structures (Neoforge/Forge)
93,167,144
Repurposed Structures - Oh The Biomes You'll Go Compat Datapack
8,661,928
Repurposed Structures - Chef's Delight Compat Datapack
7,202,699
Repurposed Structures - Better Nether Fortress Compat Datapack
6,826,966

You Might Also Like

APTweaks: Items (11.x Classic)
Item clustering (fallen blocks, experience orbs, ...) and garbage cleanup.
9,884,514
VanillaDeathChest (Fabric)
Places containers when players die that contain their items.
994,762
Styled Nicknames
Simple, but configurable nicknaming mod allowing your server's players (and admins) to change their nickname with full formatting support
989,499
Tiquality
Make server lag the problem of the source player.
99,489
Blame (Fabric)
Those gosh darn crashlogs not saying which worldgen feature is crashing!
99,012
Weathering with You
Forecast Minecraft weather with a radar or a hat!
98,579