Feature NBT Deadlock Be Gone
This mod is designed to fix a critical bug that occurs exclusively in Minecraft version 1.18. The issue involves game freezes when generating structures with NBT data in the world.
The essence of the bug is that when placing buildings with NBT tags during world generation, the game can completely lock up if such a building replaces any block with an entity. This applies to spawners, chests, lecterns, beds, signs, and other similar objects. As a result, the game stops responding and game ticks cease.
The problem arises from the use of inappropriate methods for placing blocks in the world that are unsafe for generation procedures. The mod solves this problem by skipping calls to dangerous methods when working in the context of world generation.
For modifications, this error can occur particularly frequently, so installing this mod serves as a good preventive measure.
It's important to note that this bug is absent in versions 1.17.x and below, and is also fixed in versions 1.19 and above. It is characteristic exclusively of Minecraft 1.18.x.
For Mod Developers
To use in development, add to the repositories block in the build.gradle file:
maven {
// FeatureNBTDeadlockBeGone
url "https://nexus.resourcefulbees.com/repository/maven-public/"
}
Then in the dependencies block add the appropriate dependency:
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"
Version 2.0.0+1.18.2 can be replaced with the one you need.