Jump to content

Errors In Currently Selected Datapacks Prevent World from Loading


Eye_Demon26

Recommended Posts

Like in the title.  I can create and load new worlds just fine. It's only this world that dosen't load. I tried removing and adding various mods from my list. I already founds some incompatibilities between them. The world worked until I updated some of the mods. When I was looking at version of forge, I accidently clicked on to "repair profile". Both caused the issues with the world. When I looked over game output, I noticed a lot of mismatched block IDs from Oh The Biomes You Go. I know that I'm trying to run the world without some of the mods, but if run them all together, the game will crash. I tried running the world with only mods that were present before the updates.

How do I fix this? Is there an option to fix it without having to fix compatibility issues between the new mods in my modlist? I can try running game with the missing mods and post game output from the crash as well. 

 





 

Link to comment
Share on other sites

16:14:21.039

Exception reading C:\Users\I__\curseforge\minecraft\Instances\MinisterOfSinister\saves\hec\level.dat_old java.lang.IllegalStateException: Trying to access unbound value 'ResourceKey[minecraft:worldgen/density_function / mahoutsukai:overworld/depth]' from registry Registry[ResourceKey[minecraft:root / minecraft:worldgen/density_function] (Stable)] at TRANSFORMER/minecraft@1.19/net.minecraft.core.Holder$Reference.m_203334_(Holder.java:151) at TRANSFORMER/minecraft@1.19/net.minecraft.world.level.levelgen.DensityFunctions$HolderHolder.m_207402_(DensityFunctions.java:401) at TRANSFORMER/minecraft@1.19/net.minecraft.world.level.levelgen.DensityFunctions$TwoArgumentSimpleFunction.m_209073_(DensityFunctions.java:966) at TRANSFORMER/minecraft@1.19/net.minecraft.world.level.levelgen.DensityFunctions$TwoArgumentSimpleFunction$Type.m_209091_(DensityFunctions.java:1036) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.DataResult$Instance.ap2(DataResult.java:315) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.codecs.RecordCodecBuilder$Instance$3.decode(RecordCodecBuilder.java:246) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.codecs.RecordCodecBuilder$2.decode(RecordCodecBuilder.java:107) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.codecs.KeyDispatchCodec.lambda$decode$1(KeyDispatchCodec.java:67) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.DataResult.lambda$flatMap$10(DataResult.java:138) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.datafixers.util.Either$Left.map(Either.java:38) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.DataResult.flatMap(DataResult.java:136) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.codecs.KeyDispatchCodec.lambda$decode$2(KeyDispatchCodec.java:58) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.DataResult.lambda$flatMap$10(DataResult.java:138) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.datafixers.util.Either$Left.map(Either.java:38) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.DataResult.flatMap(DataResult.java:136) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.codecs.KeyDispatchCodec.decode(KeyDispatchCodec.java:56) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.MapDecoder.lambda$compressedDecode$0(MapDecoder.java:52) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.DataResult.lambda$flatMap$10(DataResult.java:138) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.datafixers.util.Either$Left.map(Either.java:38) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.DataResult.flatMap(DataResult.java:136) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.MapDecoder.compressedDecode(MapDecoder.java:52) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.MapCodec$MapCodecCodec.decode(MapCodec.java:91) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.codecs.EitherCodec.decode(EitherCodec.java:28) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.Decoder$2.decode(Decoder.java:63) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.Codec$2.decode(Codec.java:71) at TRANSFORMER/minecraft@1.19/net.minecraft.resources.RegistryFileCodec.decode(RegistryFileCodec.java:70) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.Decoder$2.decode(Decoder.java:63) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.Codec$2.decode(Codec.java:71) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.Decoder.parse(Decoder.java:18) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.codecs.FieldDecoder.decode(FieldDecoder.java:29) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.MapCodec$1.decode(MapCodec.java:34) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.MapDecoder$4.decode(MapDecoder.java:94) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.MapCodec$1.decode(MapCodec.java:34) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.codecs.KeyDispatchCodec.lambda$decode$1(KeyDispatchCodec.java:67) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.DataResult.lambda$flatMap$10(DataResult.java:138) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.datafixers.util.Either$Left.map(Either.java:38) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.DataResult.flatMap(DataResult.java:136) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.codecs.KeyDispatchCodec.lambda$decode$2(KeyDispatchCodec.java:58) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.DataResult.lambda$flatMap$10(DataResult.java:138) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.datafixers.util.Either$Left.map(Either.java:38) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.DataResult.flatMap(DataResult.java:136) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.codecs.KeyDispatchCodec.decode(KeyDispatchCodec.java:56) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.MapDecoder.lambda$compressedDecode$0(MapDecoder.java:52) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.DataResult.lambda$flatMap$10(DataResult.java:138) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.datafixers.util.Either$Left.map(Either.java:38) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.DataResult.flatMap(DataResult.java:136) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.MapDecoder.compressedDecode(MapDecoder.java:52) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.MapCodec$MapCodecCodec.decode(MapCodec.java:91) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.codecs.EitherCodec.decode(EitherCodec.java:28) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.Decoder$2.decode(Decoder.java:63) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.Codec$2.decode(Codec.java:71) at TRANSFORMER/minecraft@1.19/net.minecraft.resources.RegistryFileCodec.decode(RegistryFileCodec.java:70) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.Decoder$2.decode(Decoder.java:63) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.Codec$2.decode(Codec.java:71) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.Decoder.parse(Decoder.java:18) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.codecs.FieldDecoder.decode(FieldDecoder.java:29) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.MapCodec$1.decode(MapCodec.java:34) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.codecs.RecordCodecBuilder$Instance$3.decode(RecordCodecBuilder.java:249) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.codecs.RecordCodecBuilder$2.decode(RecordCodecBuilder.java:107) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.codecs.KeyDispatchCodec.lambda$decode$1(KeyDispatchCodec.java:67) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.DataResult.lambda$flatMap$10(DataResult.java:138) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.datafixers.util.Either$Left.map(Either.java:38) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.DataResult.flatMap(DataResult.java:136) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.codecs.KeyDispatchCodec.lambda$decode$2(KeyDispatchCodec.java:58) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.DataResult.lambda$flatMap$10(DataResult.java:138) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.datafixers.util.Either$Left.map(Either.java:38) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.DataResult.flatMap(DataResult.java:136) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.codecs.KeyDispatchCodec.decode(KeyDispatchCodec.java:56) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.MapDecoder.lambda$compressedDecode$0(MapDecoder.java:52) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.DataResult.lambda$flatMap$10(DataResult.java:138) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.datafixers.util.Either$Left.map(Either.java:38) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.DataResult.flatMap(DataResult.java:136) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.MapDecoder.compressedDecode(MapDecoder.java:52) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.MapCodec$MapCodecCodec.decode(MapCodec.java:91) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.codecs.EitherCodec.decode(EitherCodec.java:28) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.Decoder$2.decode(Decoder.java:63) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.Codec$2.decode(Codec.java:71) at TRANSFORMER/minecraft@1.19/net.minecraft.resources.RegistryFileCodec.decode(RegistryFileCodec.java:70) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.Decoder$2.decode(Decoder.java:63) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.Codec$2.decode(Codec.java:71) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.Decoder.parse(Decoder.java:18) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.codecs.FieldDecoder.decode(FieldDecoder.java:29) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.MapCodec$1.decode(MapCodec.java:34) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.codecs.RecordCodecBuilder$Instance$7.decode(RecordCodecBuilder.java:409) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.codecs.RecordCodecBuilder$Instance$7.decode(RecordCodecBuilder.java:405) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.codecs.RecordCodecBuilder$2.decode(RecordCodecBuilder.java:107) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.MapDecoder.lambda$compressedDecode$0(MapDecoder.java:52) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.DataResult.lambda$flatMap$10(DataResult.java:138) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.datafixers.util.Either$Left.map(Either.java:38) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.DataResult.flatMap(DataResult.java:136) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.MapDecoder.compressedDecode(MapDecoder.java:52) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.MapCodec$MapCodecCodec.decode(MapCodec.java:91) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.Decoder.parse(Decoder.java:18) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.codecs.FieldDecoder.decode(FieldDecoder.java:29) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.MapCodec$1.decode(MapCodec.java:34) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.codecs.RecordCodecBuilder$Instance$5.decode(RecordCodecBuilder.java:324) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.MapDecoder$4.decode(MapDecoder.java:94) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.codecs.RecordCodecBuilder$Instance$5.decode(RecordCodecBuilder.java:322) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.codecs.RecordCodecBuilder$Instance$5.decode(RecordCodecBuilder.java:322) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.codecs.RecordCodecBuilder$2.decode(RecordCodecBuilder.java:107) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.MapDecoder.lambda$compressedDecode$0(MapDecoder.java:52) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.DataResult.lambda$flatMap$10(DataResult.java:138) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.datafixers.util.Either$Left.map(Either.java:38) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.DataResult.flatMap(DataResult.java:136) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.MapDecoder.compressedDecode(MapDecoder.java:52) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.MapCodec$MapCodecCodec.decode(MapCodec.java:91) at TRANSFORMER/minecraft@1.19/net.minecraft.resources.RegistryFileCodec.decode(RegistryFileCodec.java:70) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.Decoder.parse(Decoder.java:18) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.codecs.FieldDecoder.decode(FieldDecoder.java:29) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.MapCodec$1.decode(MapCodec.java:34) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.codecs.RecordCodecBuilder$Instance$7.decode(RecordCodecBuilder.java:409) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.codecs.RecordCodecBuilder$2.decode(RecordCodecBuilder.java:107) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.codecs.KeyDispatchCodec.lambda$decode$1(KeyDispatchCodec.java:67) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.DataResult.lambda$flatMap$10(DataResult.java:138) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.datafixers.util.Either$Left.map(Either.java:38) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.DataResult.flatMap(DataResult.java:136) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.codecs.KeyDispatchCodec.lambda$decode$2(KeyDispatchCodec.java:58) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.DataResult.lambda$flatMap$10(DataResult.java:138) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.datafixers.util.Either$Left.map(Either.java:38) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.DataResult.flatMap(DataResult.java:136) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.codecs.KeyDispatchCodec.decode(KeyDispatchCodec.java:56) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.MapDecoder.lambda$compressedDecode$0(MapDecoder.java:52) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.DataResult.lambda$flatMap$10(DataResult.java:138) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.datafixers.util.Either$Left.map(Either.java:38) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.DataResult.flatMap(DataResult.java:136) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.MapDecoder.compressedDecode(MapDecoder.java:52) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.MapCodec$MapCodecCodec.decode(MapCodec.java:91) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.Decoder.parse(Decoder.java:18) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.codecs.FieldDecoder.decode(FieldDecoder.java:29) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.MapCodec$1.decode(MapCodec.java:34) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.codecs.RecordCodecBuilder$Instance$3.decode(RecordCodecBuilder.java:249) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.codecs.RecordCodecBuilder$2.decode(RecordCodecBuilder.java:107) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.MapDecoder.lambda$compressedDecode$0(MapDecoder.java:52) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.DataResult.lambda$flatMap$10(DataResult.java:138) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.datafixers.util.Either$Left.map(Either.java:38) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.DataResult.flatMap(DataResult.java:136) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.MapDecoder.compressedDecode(MapDecoder.java:52) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.MapCodec$MapCodecCodec.decode(MapCodec.java:91) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.Decoder.parse(Decoder.java:18) at TRANSFORMER/forge@41.1.0/net.minecraftforge.common.LenientUnboundedMapCodec.lambda$decode$3(LenientUnboundedMapCodec.java:52) at java.base/java.util.stream.ReduceOps$1ReducingSink.accept(ReduceOps.java:80) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1707) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.reduce(ReferencePipeline.java:667) at TRANSFORMER/forge@41.1.0/net.minecraftforge.common.LenientUnboundedMapCodec.decode(LenientUnboundedMapCodec.java:48) at TRANSFORMER/forge@41.1.0/net.minecraftforge.common.LenientUnboundedMapCodec.lambda$decode$8(LenientUnboundedMapCodec.java:70) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.DataResult.lambda$flatMap$10(DataResult.java:138) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.datafixers.util.Either$Left.map(Either.java:38) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.DataResult.flatMap(DataResult.java:136) at TRANSFORMER/forge@41.1.0/net.minecraftforge.common.LenientUnboundedMapCodec.decode(LenientUnboundedMapCodec.java:70) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.Decoder$2.decode(Decoder.java:63) at TRANSFORMER/minecraft@1.19/net.minecraft.core.RegistryCodecs$1.decode(RegistryCodecs.java:68) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.Codec$2.decode(Codec.java:71) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.Decoder$2.decode(Decoder.java:63) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.Codec$2.decode(Codec.java:71) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.Decoder.parse(Decoder.java:18) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.codecs.FieldDecoder.decode(FieldDecoder.java:29) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.MapCodec$1.decode(MapCodec.java:34) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.codecs.RecordCodecBuilder$Instance$5.decode(RecordCodecBuilder.java:324) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.codecs.RecordCodecBuilder$2.decode(RecordCodecBuilder.java:107) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.MapDecoder.lambda$compressedDecode$0(MapDecoder.java:52) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.DataResult.lambda$flatMap$10(DataResult.java:138) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.datafixers.util.Either$Left.map(Either.java:38) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.DataResult.flatMap(DataResult.java:136) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.MapDecoder.compressedDecode(MapDecoder.java:52) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.MapCodec$MapCodecCodec.decode(MapCodec.java:91) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.Decoder$1.decode(Decoder.java:49) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.Codec$2.decode(Codec.java:71) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.Decoder.decode(Decoder.java:22) at MC-BOOTSTRAP/datafixerupper@5.0.28/com.mojang.serialization.Decoder.parse(Decoder.java:26) at TRANSFORMER/minecraft@1.19/net.minecraft.world.level.storage.LevelStorageSource.m_78204_(LevelStorageSource.java:99) at TRANSFORMER/minecraft@1.19/net.minecraft.world.level.storage.LevelStorageSource.m_230807_(LevelStorageSource.java:213) at TRANSFORMER/minecraft@1.19/net.minecraft.world.level.storage.LevelStorageSource.m_230817_(LevelStorageSource.java:183) at TRANSFORMER/minecraft@1.19/net.minecraft.world.level.storage.LevelStorageSource$LevelStorageAccess.m_211747_(LevelStorageSource.java:372) at TRANSFORMER/minecraft@1.19/net.minecraft.client.gui.screens.worldselection.WorldOpenFlows.m_233112_(WorldOpenFlows.java:112) at TRANSFORMER/minecraft@1.19/net.minecraft.server.WorldLoader.m_214362_(WorldLoader.java:24) at TRANSFORMER/minecraft@1.19/net.minecraft.server.WorldStem.m_214415_(WorldStem.java:18) at TRANSFORMER/minecraft@1.19/net.minecraft.client.gui.screens.worldselection.WorldOpenFlows.m_233096_(WorldOpenFlows.java:129) at TRANSFORMER/minecraft@1.19/net.minecraft.client.gui.screens.worldselection.WorldOpenFlows.m_233122_(WorldOpenFlows.java:109) at TRANSFORMER/minecraft@1.19/net.minecraft.client.gui.screens.worldselection.WorldOpenFlows.doLoadLevel(WorldOpenFlows.java:148) at TRANSFORMER/minecraft@1.19/net.minecraft.client.gui.screens.worldselection.WorldOpenFlows.m_233145_(WorldOpenFlows.java:136) at TRANSFORMER/minecraft@1.19/net.minecraft.client.gui.screens.worldselection.WorldOpenFlows.m_233133_(WorldOpenFlows.java:58) at TRANSFORMER/minecraft@1.19/net.minecraft.client.gui.screens.worldselection.WorldSelectionList$WorldListEntry.m_101744_(WorldSelectionList.java:587) at TRANSFORMER/minecraft@1.19/net.minecraft.client.gui.screens.worldselection.WorldSelectionList$WorldListEntry.m_101704_(WorldSelectionList.java:449) at TRANSFORMER/minecraft@1.19/net.minecraft.client.gui.screens.worldselection.WorldSelectionList$WorldListEntry.m_6375_(WorldSelectionList.java:376) at TRANSFORMER/minecraft@1.19/net.minecraft.client.gui.components.AbstractSelectionList.m_6375_(AbstractSelectionList.java:323) at TRANSFORMER/minecraft@1.19/net.minecraft.client.gui.components.events.ContainerEventHandler.m_6375_(ContainerEventHandler.java:27) at TRANSFORMER/minecraft@1.19/net.minecraft.client.MouseHandler.m_168084_(MouseHandler.java:88) at TRANSFORMER/minecraft@1.19/net.minecraft.client.gui.screens.Screen.m_96579_(Screen.java:524) at TRANSFORMER/minecraft@1.19/net.minecraft.client.MouseHandler.m_91530_(MouseHandler.java:85) at TRANSFORMER/minecraft@1.19/net.minecraft.client.MouseHandler.m_168091_(MouseHandler.java:185) at TRANSFORMER/minecraft@1.19/net.minecraft.util.thread.BlockableEventLoop.execute(BlockableEventLoop.java:118) at TRANSFORMER/minecraft@1.19/net.minecraft.client.MouseHandler.m_91565_(MouseHandler.java:184) at MC-BOOTSTRAP/org.lwjgl.glfw@3.3.1+7/org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:43) at MC-BOOTSTRAP/org.lwjgl@3.3.1+7/org.lwjgl.system.JNI.invokeV(Native Method) at MC-BOOTSTRAP/org.lwjgl.glfw@3.3.1+7/org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3403) at TRANSFORMER/minecraft@1.19/com.mojang.blaze3d.systems.RenderSystem.m_69495_(RenderSystem.java:197) at TRANSFORMER/minecraft@1.19/com.mojang.blaze3d.platform.Window.m_85435_(Window.java:448) at TRANSFORMER/minecraft@1.19/net.minecraft.client.Minecraft.m_91383_(Minecraft.java:1112) at TRANSFORMER/minecraft@1.19/net.minecraft.client.Minecraft.m_91374_(Minecraft.java:669) at TRANSFORMER/minecraft@1.19/net.minecraft.client.main.Main.main(Main.java:206) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at MC-BOOTSTRAP/fmlloader@1.19-41.1.0/net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$launchService$0(CommonClientLaunchHandler.java:27) at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.8/cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.8/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.8/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.8/cpw.mods.modlauncher.Launcher.run(Launcher.java:106) at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.8/cpw.mods.modlauncher.Launcher.main(Launcher.java:77) at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.8/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.8/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) at cpw.mods.bootstraplauncher@1.1.2/cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141)

16:14:21.042

Failed to load datapacks, can't proceed with server load java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Failed to load world at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:396) at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2073) at TRANSFORMER/minecraft@1.19/net.minecraft.client.gui.screens.worldselection.WorldOpenFlows.m_233096_(WorldOpenFlows.java:131) at TRANSFORMER/minecraft@1.19/net.minecraft.client.gui.screens.worldselection.WorldOpenFlows.m_233122_(WorldOpenFlows.java:109) at TRANSFORMER/minecraft@1.19/net.minecraft.client.gui.screens.worldselection.WorldOpenFlows.doLoadLevel(WorldOpenFlows.java:148) at TRANSFORMER/minecraft@1.19/net.minecraft.client.gui.screens.worldselection.WorldOpenFlows.m_233145_(WorldOpenFlows.java:136) at TRANSFORMER/minecraft@1.19/net.minecraft.client.gui.screens.worldselection.WorldOpenFlows.m_233133_(WorldOpenFlows.java:58) at TRANSFORMER/minecraft@1.19/net.minecraft.client.gui.screens.worldselection.WorldSelectionList$WorldListEntry.m_101744_(WorldSelectionList.java:587) at TRANSFORMER/minecraft@1.19/net.minecraft.client.gui.screens.worldselection.WorldSelectionList$WorldListEntry.m_101704_(WorldSelectionList.java:449) at TRANSFORMER/minecraft@1.19/net.minecraft.client.gui.screens.worldselection.WorldSelectionList$WorldListEntry.m_6375_(WorldSelectionList.java:376) at TRANSFORMER/minecraft@1.19/net.minecraft.client.gui.components.AbstractSelectionList.m_6375_(AbstractSelectionList.java:323) at TRANSFORMER/minecraft@1.19/net.minecraft.client.gui.components.events.ContainerEventHandler.m_6375_(ContainerEventHandler.java:27) at TRANSFORMER/minecraft@1.19/net.minecraft.client.MouseHandler.m_168084_(MouseHandler.java:88) at TRANSFORMER/minecraft@1.19/net.minecraft.client.gui.screens.Screen.m_96579_(Screen.java:524) at TRANSFORMER/minecraft@1.19/net.minecraft.client.MouseHandler.m_91530_(MouseHandler.java:85) at TRANSFORMER/minecraft@1.19/net.minecraft.client.MouseHandler.m_168091_(MouseHandler.java:185) at TRANSFORMER/minecraft@1.19/net.minecraft.util.thread.BlockableEventLoop.execute(BlockableEventLoop.java:118) at TRANSFORMER/minecraft@1.19/net.minecraft.client.MouseHandler.m_91565_(MouseHandler.java:184) at MC-BOOTSTRAP/org.lwjgl.glfw@3.3.1+7/org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:43) at MC-BOOTSTRAP/org.lwjgl@3.3.1+7/org.lwjgl.system.JNI.invokeV(Native Method) at MC-BOOTSTRAP/org.lwjgl.glfw@3.3.1+7/org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3403) at TRANSFORMER/minecraft@1.19/com.mojang.blaze3d.systems.RenderSystem.m_69495_(RenderSystem.java:197) at TRANSFORMER/minecraft@1.19/com.mojang.blaze3d.platform.Window.m_85435_(Window.java:448) at TRANSFORMER/minecraft@1.19/net.minecraft.client.Minecraft.m_91383_(Minecraft.java:1112) at TRANSFORMER/minecraft@1.19/net.minecraft.client.Minecraft.m_91374_(Minecraft.java:669) at TRANSFORMER/minecraft@1.19/net.minecraft.client.main.Main.main(Main.java:206) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at MC-BOOTSTRAP/fmlloader@1.19-41.1.0/net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$launchService$0(CommonClientLaunchHandler.java:27) at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.8/cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.8/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.8/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.8/cpw.mods.modlauncher.Launcher.run(Launcher.java:106) at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.8/cpw.mods.modlauncher.Launcher.main(Launcher.java:77) at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.8/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.8/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) at cpw.mods.bootstraplauncher@1.1.2/cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) Caused by: java.lang.IllegalStateException: Failed to load world at TRANSFORMER/minecraft@1.19/net.minecraft.client.gui.screens.worldselection.WorldOpenFlows.m_233112_(WorldOpenFlows.java:114) at TRANSFORMER/minecraft@1.19/net.minecraft.server.WorldLoader.m_214362_(WorldLoader.java:24) at TRANSFORMER/minecraft@1.19/net.minecraft.server.WorldStem.m_214415_(WorldStem.java:18) at TRANSFORMER/minecraft@1.19/net.minecraft.client.gui.screens.worldselection.WorldOpenFlows.m_233096_(WorldOpenFlows.java:129) ... 36 more

Link to comment
Share on other sites

16:12:02.224

Prepared asset index

16:12:02.702

Have 3447 total files to check or download

16:12:04.232

Downloading 1 files

16:12:06.362

Download from https://launcher.mojang.com/v1/objects/c0898ec7c6a5a2eaa317770203a1554260699994/client.jar passed checksum check.

16:12:06.362

Downloads successful

16:12:06.362

Downloading Java Runtime java-runtime-gamma:17.0.3

16:12:06.483

Nothing to extract!
 

Link to comment
Share on other sites

The Mahou Tsukai was disabled during this run. Do I have to delete the mod completely? What about this?

16:35:17.931

This world was saved with mod bettervillage which appears to be missing, things may not work well

16:35:17.931

This world was saved with mod witherstormmod which appears to be missing, things may not work well

16:35:17.931

This world was saved with mod mekanismtools which appears to be missing, things may not work well

16:35:17.932

This world was saved with mod engineersdecor which appears to be missing, things may not work well

16:35:17.932

This world was saved with mod bigreactors which appears to be missing, things may not work well

16:35:17.932

This world was saved with mod infusedfoods which appears to be missing, things may not work well

16:35:17.932

This world was saved with mod aquaculture which appears to be missing, things may not work well

16:35:17.933

This world was saved with mod adchimneys which appears to be missing, things may not work well

16:35:17.933

This world was saved with mod ars_elemental which appears to be missing, things may not work well

16:35:17.933

This world was saved with mod ars_scalaes which appears to be missing, things may not work well

16:35:17.969

Injecting existing registry data into this CLIENT instance

Link to comment
Share on other sites

Your problem is not going to be solved by removing the mod, it will only make it worse.

You are trying to load an existing world that has "Mahou Tsukai" as part of its world generation definition.

Exception reading C:\Users\I__\curseforge\minecraft\Instances\MinisterOfSinister\saves\hec\level.dat_old 
java.lang.IllegalStateException: Trying to access unbound value 'ResourceKey[minecraft:worldgen/density_function / mahoutsukai:overworld/depth]' 
from registry Registry[ResourceKey[minecraft:root / minecraft:worldgen/density_function] (Stable)] 
at TRANSFORMER/minecraft@1.19/net.minecraft.core.Holder$Reference.m_203334_(Holder.java:151) 
at TRANSFORMER/minecraft@1.19/net.minecraft.world.level.levelgen.DensityFunctions$HolderHolder.m_207402_(DensityFunctions.java:401) 
at TRANSFORMER/minecraft@1.19/net.minecraft.world.level.levelgen.DensityFunctions$TwoArgumentSimpleFunction.m_209073_(DensityFunctions.java:966) 
at TRANSFORMER/minecraft@1.19/net.minecraft.world.level.levelgen.DensityFunctions$TwoArgumentSimpleFunction$Type.m_209091_(DensityFunctions.java:1036) 

This say it can't find its density function "minecraft:worldgen/density_function / mahoutsukai:overworld/depth"

Is this because the mod is not installed?

If the mod is installed and you still get this error, you need to speak to the mod author.

Only they will know what is happening.

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Link to comment
Share on other sites

3 hours ago, warjort said:

Your problem is not going to be solved by removing the mod, it will only make it worse.

You are trying to load an existing world that has "Mahou Tsukai" as part of its world generation definition.

Exception reading C:\Users\I__\curseforge\minecraft\Instances\MinisterOfSinister\saves\hec\level.dat_old 
java.lang.IllegalStateException: Trying to access unbound value 'ResourceKey[minecraft:worldgen/density_function / mahoutsukai:overworld/depth]' 
from registry Registry[ResourceKey[minecraft:root / minecraft:worldgen/density_function] (Stable)] 
at TRANSFORMER/minecraft@1.19/net.minecraft.core.Holder$Reference.m_203334_(Holder.java:151) 
at TRANSFORMER/minecraft@1.19/net.minecraft.world.level.levelgen.DensityFunctions$HolderHolder.m_207402_(DensityFunctions.java:401) 
at TRANSFORMER/minecraft@1.19/net.minecraft.world.level.levelgen.DensityFunctions$TwoArgumentSimpleFunction.m_209073_(DensityFunctions.java:966) 
at TRANSFORMER/minecraft@1.19/net.minecraft.world.level.levelgen.DensityFunctions$TwoArgumentSimpleFunction$Type.m_209091_(DensityFunctions.java:1036) 

This say it can't find its density function "minecraft:worldgen/density_function / mahoutsukai:overworld/depth"

Is this because the mod is not installed?

If the mod is installed and you still get this error, you need to speak to the mod author.

Only they will know what is happening.

Thank you for your answer. I'll see what I can do. If the issues persist despite resolution with Mahou Tsukai, do I have to write to respective mod authors or post the debug over here beforehand? 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Minecraft 1.20.1 Forge 47.2.0 log and crash report: https://pastebin.com/P7tQymQS ; (crash report) I launch the game and i got this error: Someone could help me please?  
    • EDIT: NVM, the enchantment ID was wrong and that was causing the issue. Not sure why it doesn't let me delete this post Hi, I'm trying to make a "smelting" enchantment Global Loot Modifier, but for some reason the game could not decode its related JSON file, altough is applying the Loot Modifier to every single loot When I join a world I get this error in the console   [01:08:01] [Render thread/WARN] [ne.mi.co.lo.LootModifierManager/]: Could not decode GlobalLootModifier with json id mineworld:enchantments/fiery_touch - error: Not a json array: {"condition":"minecraft:match_tool","predicate":{"enchantments":[{"enchantment":"mineworld:smelting","levels":{"min":1}}]}} The GLM Json file is the following { "type": "mineworld:fiery_touch", "conditions": [ { "condition": "minecraft:match_tool", "predicate": { "enchantments": [ { "enchantment": "mineworld:smelting", "levels": { "min": 1 } } ] } } ] } And this is the LootModifier class   package org.mineworld.loot; import com.google.common.base.Suppliers; import com.mojang.serialization.Codec; import com.mojang.serialization.codecs.RecordCodecBuilder; import it.unimi.dsi.fastutil.objects.ObjectArrayList; import net.minecraft.core.RegistryAccess; import net.minecraft.world.Container; import net.minecraft.world.SimpleContainer; import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.crafting.Recipe; import net.minecraft.world.item.crafting.RecipeManager; import net.minecraft.world.item.crafting.RecipeType; import net.minecraft.world.level.Level; import net.minecraft.world.level.storage.loot.LootContext; import net.minecraft.world.level.storage.loot.parameters.LootContextParams; import net.minecraft.world.level.storage.loot.predicates.LootItemCondition; import net.minecraftforge.common.loot.IGlobalLootModifier; import net.minecraftforge.common.loot.LootModifier; import net.minecraftforge.items.ItemHandlerHelper; import org.jetbrains.annotations.NotNull; import org.mineworld.MineWorld; import java.util.List; import java.util.Optional; import java.util.function.Supplier; import java.util.stream.IntStream; /** * {@link MineWorld MineWorld} loot modifier for smelting a drop from a block */ public final class FieryTouchModifier extends LootModifier { /** * {@link Supplier<Codec> The loot codec supplier} */ public static final Supplier<Codec<FieryTouchModifier>> CODEC = Suppliers.memoize(() -> RecordCodecBuilder.create(inst -> codecStart(inst).apply(inst, FieryTouchModifier::new))); /** * Constructor. Set the {@link LootItemCondition loot id conditions} * * @param lootConditions {@index ILootCondition The conditions that need to be matched before the loot is modified} */ public FieryTouchModifier(final LootItemCondition[] lootConditions) { super(lootConditions); } /** * Add the {@link MWLootItem items} to the loot * * @param loot {@link ObjectArrayList<ItemStack> The current loot} * @param context {@link LootContext The loot context} * @return {@link ObjectArrayList<ItemStack> The modified loot} */ @Override protected @NotNull ObjectArrayList<ItemStack> doApply(final ObjectArrayList<ItemStack> loot, final LootContext context) { if(context.hasParam(LootContextParams.BLOCK_STATE)) { final Level level = context.getLevel(); final RecipeManager recipeManager = level.getRecipeManager(); final RegistryAccess registryAccess = level.registryAccess(); IntStream.range(0, loot.size()).forEach(index -> { final ItemStack drop = loot.get(index); final ItemStack smeltedDrop = tryGetSmeltedDrop(recipeManager, RecipeType.SMELTING, level, registryAccess, drop) .orElse(tryGetSmeltedDrop(recipeManager, RecipeType.SMITHING, level, registryAccess, drop) .orElse(tryGetSmeltedDrop(recipeManager, RecipeType.BLASTING, level, registryAccess, drop) .orElse(tryGetSmeltedDrop(recipeManager, RecipeType.SMOKING, level, registryAccess, drop) .orElse(tryGetSmeltedDrop(recipeManager, RecipeType.CAMPFIRE_COOKING, level, registryAccess, drop) .orElse(ItemStack.EMPTY))))); if(!smeltedDrop.isEmpty()) { loot.set(index, smeltedDrop); } }); } return loot; } /** * Get the {@link Codec loot modifier codec} * * @return {@link #CODEC The loot modifier codec} */ @Override public Codec<? extends IGlobalLootModifier> codec() { return CODEC.get(); } /** * Try to set the smelted drop to the {@link List<ItemStack> block drop list} * * @param recipeManager {@link RecipeManager The recipe manager} * @param recipeType {@link RecipeType The recipe type} * @param level {@link Level The level reference} * @param registryAccess {@link RegistryAccess The registry access} * @param drop {@link ItemStack The dropped item} * @return {@link ItemStack The smelted ItemStack} */ private static <C extends Container, T extends Recipe<C>> Optional<ItemStack> tryGetSmeltedDrop(final RecipeManager recipeManager, final RecipeType<T> recipeType, final Level level, final RegistryAccess registryAccess, final ItemStack drop) { return recipeManager.getRecipeFor(recipeType, (C) new SimpleContainer(drop), level) .map(recipe -> recipe.value().getResultItem(registryAccess)) .filter(itemStack -> !itemStack.isEmpty()) .map(itemStack -> ItemHandlerHelper.copyStackWithSize(itemStack, drop.getCount() * itemStack.getCount())); } } I have another GLM that has some entries as well and doesn't have any issues
    • Why are you doing this instead of just playing the sound using the level or the player method? 
    • You can use  event.getEntity().level()  
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.