Langue

WorldgenFeatureFix

WorldgenFeatureFix

Modrinth

Fix custom world generation datapack crashes when using minecraft:lake feature ( MC-273228 and MC-272370)

268.9k téléchargements 24 abonnés mis à jour 14mo ago
dernière v1.0.1 Modrinth
Fabric Forge Neoforge 1.21 – 1.21.11 Worldgen

WorldGenFeatureFix

Tips: Mojang has marked this problem as fixed since 26.1 Snapshot 6, you may don't need this mod in 26.1 anymore.

What this mod fixes?

When custom world generation datapack uses minecraft:lake or minecraft:snow_and_freeze placed feature with water, The chunk generator crashes. (See MC-273228 or MC-272370 for more details).
Inspired by This pull request, This mod apply mixins to make them work.

Techinal Details

In version 1.21, chunk generation has been highly optimized, which unintentionally breaks the freeze detection of the lake feature since it may trying to access inaccessible chunks. However, since Mojang only uses the lake feature for lava lakes at now, this issue does not occur in vanilla Minecraft — but it does affect custom world generators! This mod applies mixins that fallback to getUncachedNoiseChunk, allowing the lake feature to work correctly again.

Disclaimer

However, The PR also mentioned that LakeFeature is deprecated and vanilla has moved away from using it for anything except for lava lakes.
The error for unsafe chunk gets removing here is an intentional safeguard against bad code, such as that in the dead path in LakeFeature when creating water lakes. While it may appear to 'fix' the problem at hand it is not a proper solution and will cause other more serious problems to go undetected. Use at your own risk. (At least it works perfect in my server)

Versions

Alpha
1.0.1
neoforge · 1.21, 1.21.1, 1.21.2 · 14mo ago
use getUncachedNoiseBiome as fallback to improve performance
97.1k
Alpha
1.0.1
fabric · 1.21, 1.21.1, 1.21.2 · 14mo ago
use getUncachedNoiseBiome as fallback to improve performance
159.8k
Alpha
1.0.1
forge · 1.21, 1.21.1, 1.21.2 · 14mo ago
use getUncachedNoiseBiome as fallback to improve performance
10.8k
Alpha
1.0.0
neoforge · 1.21, 1.21.1, 1.21.2 · 14mo ago
219
Alpha
1.0.0
forge · 1.21, 1.21.1, 1.21.2 · 14mo ago
156
Alpha
1.0.0
fabric · 1.21, 1.21.1, 1.21.2 · 14mo ago
557

Commentaires 0

Aucun commentaire pour l'instant. Sois le premier à donner ton avis.

FAQ

Comment installer WorldgenFeatureFix ?

Téléchargez le fichier pour votre version de Minecraft et votre loader sur cette page, puis placez le .jar dans le dossier mods (ou plugins) et lancez le jeu.

WorldgenFeatureFix est-il gratuit ?

WorldgenFeatureFix est gratuit sur Modgrid — nous renvoyons directement vers la source officielle, sans paywall.

Quelles versions de Minecraft WorldgenFeatureFix prend-il en charge ?

Compatible avec Fabric, Forge, Neoforge. Prend en charge les versions 1.21–1.21.11. La liste des versions et loaders pris en charge est dans la section de téléchargement de cette page.

Télécharger WorldgenFeatureFix

Les fichiers proviennent directement de la source d'origine. Modgrid ne les héberge ni ne les modifie.