From the crash report the game is crashing because it's trying to generate a village. As far as I could see it was a badlands biome, and a jungle biome behind, so villages would be out of the question.   My guess (not having fiddled through the code) is that maybe the villager type is not set in this case scenario?   In any case the crash report should have all the elements to reproduce this crash (crash happened 3 times so i guess I'll just avoid that area for now) Sorry if it's a duplicate, I tried sieveing through de different issues and didn't find this one.   ---- Minecraft Crash Report ---- // Don't be sad, have a hug! <3 Time: 13/11/2021 07:59 Description: Feature placement java.lang.NullPointerException: Cannot invoke "ddm.a(cao, cps, java.util.Random, gh)" because the return value of "java.util.function.Supplier.get()" is null     at net.minecraft.world.level.levelgen.feature.structures.FeaturePoolElement.boolean place(net.minecraft.world.level.levelgen.structure.templatesystem.StructureManager,net.minecraft.world.level.WorldGenLevel,net.minecraft.world.level.StructureFeatureManager,net.minecraft.world.level.chunk.ChunkGenerator,net.minecraft.core.BlockPos,net.minecraft.core.BlockPos,net.minecraft.world.level.block.Rotation,net.minecraft.world.level.levelgen.structure.BoundingBox,java.util.Random,boolean)(FeaturePoolElement.java:75)     at net.minecraft.world.level.levelgen.structure.PoolElementStructurePiece.void place(net.minecraft.world.level.WorldGenLevel,net.minecraft.world.level.StructureFeatureManager,net.minecraft.world.level.chunk.ChunkGenerator,java.util.Random,net.minecraft.world.level.levelgen.structure.BoundingBox,net.minecraft.core.BlockPos,boolean)(PoolElementStructurePiece.java:88)     at net.minecraft.world.level.levelgen.structure.PoolElementStructurePiece.void postProcess(net.minecraft.world.level.WorldGenLevel,net.minecraft.world.level.StructureFeatureManager,net.minecraft.world.level.chunk.ChunkGenerator,java.util.Random,net.minecraft.world.level.levelgen.structure.BoundingBox,net.minecraft.world.level.ChunkPos,net.minecraft.core.BlockPos)(PoolElementStructurePiece.java:84)     at net.minecraft.world.level.levelgen.structure.StructureStart.void placeInChunk(net.minecraft.world.level.WorldGenLevel,net.minecraft.world.level.StructureFeatureManager,net.minecraft.world.level.chunk.ChunkGenerator,java.util.Random,net.minecraft.world.level.levelgen.structure.BoundingBox,net.minecraft.world.level.ChunkPos)(StructureStart.java:62)     at net.minecraft.world.level.chunk.ChunkGenerator.com.mojang.serialization.Codec codec()(ChunkGenerator.java:259)     at net.minecraft.world.level.chunk.ChunkGenerator.net.minecraft.world.level.chunk.ChunkGenerator withSeed(long)(ChunkGenerator.java:259)     at net.minecraft.world.level.chunk.ChunkGenerator.void applyCarvers(net.minecraft.server.level.WorldGenRegion,long,net.minecraft.world.level.biome.BiomeManager,net.minecraft.world.level.StructureFeatureManager,net.minecraft.world.level.chunk.ChunkAccess,net.minecraft.world.level.levelgen.GenerationStep$Carving)(ChunkGenerator.java:259)     at net.minecraft.world.level.chunk.ChunkGenerator.void applyBiomeDecoration(net.minecraft.world.level.WorldGenLevel,net.minecraft.world.level.chunk.ChunkAccess,net.minecraft.world.level.StructureFeatureManager)(ChunkGenerator.java:259)     at net.minecraft.world.level.chunk.ChunkGenerator.void buildSurface(net.minecraft.server.level.WorldGenRegion,net.minecraft.world.level.StructureFeatureManager,net.minecraft.world.level.chunk.ChunkAccess)(ChunkGenerator.java:259)     at net.minecraft.world.level.chunk.ChunkGenerator.void spawnOriginalMobs(net.minecraft.server.level.WorldGenRegion)(ChunkGenerator.java:259)     at net.minecraft.world.level.chunk.ChunkGenerator.int getBaseHeight(int,int,net.minecraft.world.level.levelgen.Heightmap$Types,net.minecraft.world.level.LevelHeightAccessor)(ChunkGenerator.java:259)     at net.minecraft.world.level.chunk.ChunkGenerator.net.minecraft.world.level.NoiseColumn getBaseColumn(int,int,net.minecraft.world.level.LevelHeightAccessor)(ChunkGenerator.java:259)     at net.minecraft.world.level.chunk.ChunkGenerator.void lambda$applyBiomeDecoration$4(net.minecraft.world.level.WorldGenLevel,net.minecraft.world.level.StructureFeatureManager,net.minecraft.world.level.levelgen.WorldgenRandom,net.minecraft.world.level.chunk.ChunkAccess,net.minecraft.world.level.ChunkPos,net.minecraft.world.level.levelgen.structure.StructureStart)(ChunkGenerator.java:259)     at com.google.common.collect.ImmutableList.null forEach(null)(ImmutableList.java:422)     at net.minecraft.world.level.chunk.ChunkGenerator.com.mojang.serialization.Codec codec()(ChunkGenerator.java:258)     at net.minecraft.world.level.chunk.ChunkGenerator.net.minecraft.world.level.chunk.ChunkGenerator withSeed(long)(ChunkGenerator.java:258)     at net.minecraft.world.level.chunk.ChunkGenerator.void applyCarvers(net.minecraft.server.level.WorldGenRegion,long,net.minecraft.world.level.biome.BiomeManager,net.minecraft.world.level.StructureFeatureManager,net.minecraft.world.level.chunk.ChunkAccess,net.minecraft.world.level.levelgen.GenerationStep$Carving)(ChunkGenerator.java:258)     at net.minecraft.world.level.chunk.ChunkGenerator.void applyBiomeDecoration(net.minecraft.world.level.WorldGenLevel,net.minecraft.world.level.chunk.ChunkAccess,net.minecraft.world.level.StructureFeatureManager)(ChunkGenerator.java:258)     at net.minecraft.world.level.chunk.ChunkGenerator.void buildSurface(net.minecraft.server.level.WorldGenRegion,net.minecraft.world.level.StructureFeatureManager,net.minecraft.world.level.chunk.ChunkAccess)(ChunkGenerator.java:258)     at net.minecraft.world.level.chunk.ChunkGenerator.void spawnOriginalMobs(net.minecraft.server.level.WorldGenRegion)(ChunkGenerator.java:258)     at net.minecraft.world.level.chunk.ChunkGenerator.int getBaseHeight(int,int,net.minecraft.world.level.levelgen.Heightmap$Types,net.minecraft.world.level.LevelHeightAccessor)(ChunkGenerator.java:258)     at net.minecraft.world.level.chunk.ChunkGenerator.net.minecraft.world.level.NoiseColumn getBaseColumn(int,int,net.minecraft.world.level.LevelHeightAccessor)(ChunkGenerator.java:258)     at net.minecraft.world.level.chunk.ChunkStatus.java.util.concurrent.CompletableFuture lambda$static$11(net.minecraft.world.level.chunk.ChunkStatus,java.util.concurrent.Executor,net.minecraft.server.level.ServerLevel,net.minecraft.world.level.chunk.ChunkGenerator,net.minecraft.world.level.levelgen.structure.templatesystem.StructureManager,net.minecraft.server.level.ThreadedLevelLightEngine,java.util.function.Function,java.util.List,net.minecraft.world.level.chunk.ChunkAccess,boolean)(ChunkStatus.java:134)     at net.minecraft.world.level.chunk.ChunkStatus.java.util.concurrent.CompletableFuture generate(java.util.concurrent.Executor,net.minecraft.server.level.ServerLevel,net.minecraft.world.level.chunk.ChunkGenerator,net.minecraft.world.level.levelgen.structure.templatesystem.StructureManager,net.minecraft.server.level.ThreadedLevelLightEngine,java.util.function.Function,java.util.List,boolean)(ChunkStatus.java:274)     at net.minecraft.server.level.ChunkMap.java.util.concurrent.CompletableFuture lambda$scheduleChunkGeneration$20(net.minecraft.world.level.ChunkPos,net.minecraft.server.level.ChunkHolder,net.minecraft.world.level.chunk.ChunkStatus,java.util.concurrent.Executor,java.util.List)(ChunkMap.java:627)     at com.mojang.datafixers.util.Either$Left.null map(null)(Either.java:38)     at net.minecraft.server.level.ChunkMap.java.util.concurrent.CompletionStage lambda$scheduleChunkGeneration$22(net.minecraft.world.level.ChunkPos,net.minecraft.server.level.ChunkHolder,net.minecraft.world.level.chunk.ChunkStatus,java.util.concurrent.Executor,com.mojang.datafixers.util.Either)(ChunkMap.java:621)     at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1146)     at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478)     at net.minecraft.server.level.ChunkTaskPriorityQueueSorter.void lambda$message$1(java.lang.Runnable,net.minecraft.util.thread.ProcessorHandle)(ChunkTaskPriorityQueueSorter.java:58)     at net.minecraft.util.thread.ProcessorMailbox.boolean pollTask()(ProcessorMailbox.java:91)     at net.minecraft.util.thread.ProcessorMailbox.int pollUntil(it.unimi.dsi.fastutil.ints.Int2BooleanFunction)(ProcessorMailbox.java:146)     at net.minecraft.util.thread.ProcessorMailbox.void run()(ProcessorMailbox.java:102)     at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1434)     at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:295)     at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016)     at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665)     at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598)     at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Server thread Stacktrace:     at net.minecraft.world.level.levelgen.feature.structures.FeaturePoolElement.boolean place(net.minecraft.world.level.levelgen.structure.templatesystem.StructureManager,net.minecraft.world.level.WorldGenLevel,net.minecraft.world.level.StructureFeatureManager,net.minecraft.world.level.chunk.ChunkGenerator,net.minecraft.core.BlockPos,net.minecraft.core.BlockPos,net.minecraft.world.level.block.Rotation,net.minecraft.world.level.levelgen.structure.BoundingBox,java.util.Random,boolean)(FeaturePoolElement.java:75)     at net.minecraft.world.level.levelgen.structure.PoolElementStructurePiece.void place(net.minecraft.world.level.WorldGenLevel,net.minecraft.world.level.StructureFeatureManager,net.minecraft.world.level.chunk.ChunkGenerator,java.util.Random,net.minecraft.world.level.levelgen.structure.BoundingBox,net.minecraft.core.BlockPos,boolean)(PoolElementStructurePiece.java:88)     at net.minecraft.world.level.levelgen.structure.PoolElementStructurePiece.void postProcess(net.minecraft.world.level.WorldGenLevel,net.minecraft.world.level.StructureFeatureManager,net.minecraft.world.level.chunk.ChunkGenerator,java.util.Random,net.minecraft.world.level.levelgen.structure.BoundingBox,net.minecraft.world.level.ChunkPos,net.minecraft.core.BlockPos)(PoolElementStructurePiece.java:84)     at net.minecraft.world.level.levelgen.structure.StructureStart.void placeInChunk(net.minecraft.world.level.WorldGenLevel,net.minecraft.world.level.StructureFeatureManager,net.minecraft.world.level.chunk.ChunkGenerator,java.util.Random,net.minecraft.world.level.levelgen.structure.BoundingBox,net.minecraft.world.level.ChunkPos)(StructureStart.java:62)     at net.minecraft.world.level.chunk.ChunkGenerator.com.mojang.serialization.Codec codec()(ChunkGenerator.java:259)     at net.minecraft.world.level.chunk.ChunkGenerator.net.minecraft.world.level.chunk.ChunkGenerator withSeed(long)(ChunkGenerator.java:259)     at net.minecraft.world.level.chunk.ChunkGenerator.void applyCarvers(net.minecraft.server.level.WorldGenRegion,long,net.minecraft.world.level.biome.BiomeManager,net.minecraft.world.level.StructureFeatureManager,net.minecraft.world.level.chunk.ChunkAccess,net.minecraft.world.level.levelgen.GenerationStep$Carving)(ChunkGenerator.java:259)     at net.minecraft.world.level.chunk.ChunkGenerator.void applyBiomeDecoration(net.minecraft.world.level.WorldGenLevel,net.minecraft.world.level.chunk.ChunkAccess,net.minecraft.world.level.StructureFeatureManager)(ChunkGenerator.java:259)     at net.minecraft.world.level.chunk.ChunkGenerator.void buildSurface(net.minecraft.server.level.WorldGenRegion,net.minecraft.world.level.StructureFeatureManager,net.minecraft.world.level.chunk.ChunkAccess)(ChunkGenerator.java:259)     at net.minecraft.world.level.chunk.ChunkGenerator.void spawnOriginalMobs(net.minecraft.server.level.WorldGenRegion)(ChunkGenerator.java:259)     at net.minecraft.world.level.chunk.ChunkGenerator.int getBaseHeight(int,int,net.minecraft.world.level.levelgen.Heightmap$Types,net.minecraft.world.level.LevelHeightAccessor)(ChunkGenerator.java:259)     at net.minecraft.world.level.chunk.ChunkGenerator.net.minecraft.world.level.NoiseColumn getBaseColumn(int,int,net.minecraft.world.level.LevelHeightAccessor)(ChunkGenerator.java:259)     at net.minecraft.world.level.chunk.ChunkGenerator.void lambda$applyBiomeDecoration$4(net.minecraft.world.level.WorldGenLevel,net.minecraft.world.level.StructureFeatureManager,net.minecraft.world.level.levelgen.WorldgenRandom,net.minecraft.world.level.chunk.ChunkAccess,net.minecraft.world.level.ChunkPos,net.minecraft.world.level.levelgen.structure.StructureStart)(ChunkGenerator.java:259)     at com.google.common.collect.ImmutableList.null forEach(null)(ImmutableList.java:422) -- Feature -- Details:     Description: ResourceKey[minecraft:worldgen/structure_feature / minecraft:village] -- Generation -- Details:     CenterX: -50     CenterZ: 113     Seed: 5561137194577860831 Stacktrace:     at net.minecraft.world.level.chunk.ChunkGenerator.com.mojang.serialization.Codec codec()(ChunkGenerator.java:258)     at net.minecraft.world.level.chunk.ChunkGenerator.net.minecraft.world.level.chunk.ChunkGenerator withSeed(long)(ChunkGenerator.java:258)     at net.minecraft.world.level.chunk.ChunkGenerator.void applyCarvers(net.minecraft.server.level.WorldGenRegion,long,net.minecraft.world.level.biome.BiomeManager,net.minecraft.world.level.StructureFeatureManager,net.minecraft.world.level.chunk.ChunkAccess,net.minecraft.world.level.levelgen.GenerationStep$Carving)(ChunkGenerator.java:258)     at net.minecraft.world.level.chunk.ChunkGenerator.void applyBiomeDecoration(net.minecraft.world.level.WorldGenLevel,net.minecraft.world.level.chunk.ChunkAccess,net.minecraft.world.level.StructureFeatureManager)(ChunkGenerator.java:258)     at net.minecraft.world.level.chunk.ChunkGenerator.void buildSurface(net.minecraft.server.level.WorldGenRegion,net.minecraft.world.level.StructureFeatureManager,net.minecraft.world.level.chunk.ChunkAccess)(ChunkGenerator.java:258)     at net.minecraft.world.level.chunk.ChunkGenerator.void spawnOriginalMobs(net.minecraft.server.level.WorldGenRegion)(ChunkGenerator.java:258)     at net.minecraft.world.level.chunk.ChunkGenerator.int getBaseHeight(int,int,net.minecraft.world.level.levelgen.Heightmap$Types,net.minecraft.world.level.LevelHeightAccessor)(ChunkGenerator.java:258)     at net.minecraft.world.level.chunk.ChunkGenerator.net.minecraft.world.level.NoiseColumn getBaseColumn(int,int,net.minecraft.world.level.LevelHeightAccessor)(ChunkGenerator.java:258)     at net.minecraft.world.level.chunk.ChunkStatus.java.util.concurrent.CompletableFuture lambda$static$11(net.minecraft.world.level.chunk.ChunkStatus,java.util.concurrent.Executor,net.minecraft.server.level.ServerLevel,net.minecraft.world.level.chunk.ChunkGenerator,net.minecraft.world.level.levelgen.structure.templatesystem.StructureManager,net.minecraft.server.level.ThreadedLevelLightEngine,java.util.function.Function,java.util.List,net.minecraft.world.level.chunk.ChunkAccess,boolean)(ChunkStatus.java:134)     at net.minecraft.world.level.chunk.ChunkStatus.java.util.concurrent.CompletableFuture generate(java.util.concurrent.Executor,net.minecraft.server.level.ServerLevel,net.minecraft.world.level.chunk.ChunkGenerator,net.minecraft.world.level.levelgen.structure.templatesystem.StructureManager,net.minecraft.server.level.ThreadedLevelLightEngine,java.util.function.Function,java.util.List,boolean)(ChunkStatus.java:274) -- Chunk to be generated -- Details:     Location: -50,113     Position hash: 489626271694     Generator: csx@a5edcb4 Stacktrace:     at net.minecraft.server.level.ChunkMap.java.util.concurrent.CompletableFuture lambda$scheduleChunkGeneration$20(net.minecraft.world.level.ChunkPos,net.minecraft.server.level.ChunkHolder,net.minecraft.world.level.chunk.ChunkStatus,java.util.concurrent.Executor,java.util.List)(ChunkMap.java:627)     at com.mojang.datafixers.util.Either$Left.null map(null)(Either.java:38)     at net.minecraft.server.level.ChunkMap.java.util.concurrent.CompletionStage lambda$scheduleChunkGeneration$22(net.minecraft.world.level.ChunkPos,net.minecraft.server.level.ChunkHolder,net.minecraft.world.level.chunk.ChunkStatus,java.util.concurrent.Executor,com.mojang.datafixers.util.Either)(ChunkMap.java:621)     at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1146)     at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478)     at net.minecraft.server.level.ChunkTaskPriorityQueueSorter.void lambda$message$1(java.lang.Runnable,net.minecraft.util.thread.ProcessorHandle)(ChunkTaskPriorityQueueSorter.java:58)     at net.minecraft.util.thread.ProcessorMailbox.boolean pollTask()(ProcessorMailbox.java:91)     at net.minecraft.util.thread.ProcessorMailbox.int pollUntil(it.unimi.dsi.fastutil.ints.Int2BooleanFunction)(ProcessorMailbox.java:146)     at net.minecraft.util.thread.ProcessorMailbox.void run()(ProcessorMailbox.java:102) -- Affected level -- Details:     All players: 1 total; [add['Stanmarsh77'/129, l='ServerLevel[Cavetest]', x=-378.74, y=111.00, z=1670.23]]     Chunk stats: 7830     Level dimension: minecraft:overworld     Level spawn location: World: (0,94,0), Section: (at 0,14,0 in 0,5,0; chunk contains blocks 0,-64,0 to 15,319,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,-64,0 to 511,319,511)     Level time: 1016031 game time, 1561523 day time     Level name: Cavetest     Level game mode: Game mode: survival (ID 0). Hardcore: true. Cheats: false     Level weather: Rain time: 43419 (now: false), thunder time: 5282 (now: true)     Known server brands: vanilla     Level was modded: false     Level storage version: 0x04ABD - Anvil Stacktrace:     at net.minecraft.server.MinecraftServer.void tickChildren(java.util.function.BooleanSupplier)(MinecraftServer.java:879)     at net.minecraft.server.MinecraftServer.void tickServer(java.util.function.BooleanSupplier)(MinecraftServer.java:820)     at net.minecraft.server.MinecraftServer.net.minecraft.SystemReport fillServerSystemReport(net.minecraft.SystemReport)(MinecraftServer.java:820)     at net.minecraft.server.MinecraftServer.boolean isSingleplayerOwner(com.mojang.authlib.GameProfile)(MinecraftServer.java:820)     at net.minecraft.client.server.IntegratedServer.void tickServer(java.util.function.BooleanSupplier)(IntegratedServer.java:99)     at net.minecraft.server.MinecraftServer.void runServer()(MinecraftServer.java:684)     at net.minecraft.server.MinecraftServer.net.minecraft.server.MinecraftServer spin(java.util.function.Function)(MinecraftServer.java:270)     at net.minecraft.server.MinecraftServer.net.minecraft.SystemReport fillServerSystemReport(net.minecraft.SystemReport)(MinecraftServer.java:270)     at net.minecraft.server.MinecraftServer.boolean isSingleplayerOwner(com.mojang.authlib.GameProfile)(MinecraftServer.java:270)     at net.minecraft.server.MinecraftServer.void lambda$spin$2(java.util.concurrent.atomic.AtomicReference)(MinecraftServer.java:270)     at java.base/java.lang.Thread.run(Thread.java:831) -- System Details -- Details:     Minecraft Version: 1.18 Pre-release 1     Minecraft Version ID: 1.18-pre1     Operating System: Windows 10 (amd64) version 10.0     Java Version: 16.0.1, Microsoft     Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft     Memory: 580384968 bytes (553 MiB) / 4865392640 bytes (4640 MiB) up to 8589934592 bytes (8192 MiB)     CPUs: 24     Processor Vendor: AuthenticAMD     Processor Name: AMD Ryzen 9 3900X 12-Core Processor                 Identifier: AuthenticAMD Family 23 Model 113 Stepping 0     Microarchitecture: Zen 2     Frequency (GHz): 3,79     Number of physical packages: 1     Number of physical CPUs: 12     Number of logical CPUs: 24     Graphics card #0 name: NVIDIA GeForce RTX 3090     Graphics card #0 vendor: NVIDIA (0x10de)     Graphics card #0 VRAM (MB): 4095,00     Graphics card #0 deviceId: 0x2204     Graphics card #0 versionInfo: DriverVersion=27.21.14.6140     Memory slot #0 capacity (MB): 16384,00     Memory slot #0 clockSpeed (GHz): 2,13     Memory slot #0 type: DDR4     Memory slot #1 capacity (MB): 16384,00     Memory slot #1 clockSpeed (GHz): 2,13     Memory slot #1 type: DDR4     Virtual memory max (MB): 56998,23     Virtual memory used (MB): 50471,51     Swap memory total (MB): 24316,48     Swap memory used (MB): 552,26     JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx8G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M     Player Count: 1 / 8; [add['Stanmarsh77'/129, l='ServerLevel[Cremettre]', x=-378.74, y=111.00, z=1670.23]]     Data Packs: vanilla     Type: Integrated Server (map_client.txt)     Is Modded: Probably not. Client jar signature and brand is untouched; Server jar signature and brand is untouched