Structure Loading crashes game

Started by trash.zdancewi… on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Structure Loading crashes game

I made some simple structures (withing the 32x32x32 limit) on my mod with only vanilla blocks, but when I go withing ~ 10 or 20 blocks of them my game freezes up and crashes. Here is the crash report:

Any ideas?

---- Minecraft Crash Report ----
// Who set us up the TNT?

Time: 6/15/20 5:24 PM
Description: Feature placement

java.lang.NullPointerException: Feature placement
    at net.minecraft.tileentity.CampfireTileEntity.func_213986_d(SourceFile:201) ~[?:?] {re:classloading}
    at net.minecraft.block.CampfireBlock.func_204509_a(CampfireBlock.java:164) ~[?:?] {re:classloading}
    at net.minecraft.world.gen.feature.template.Template.func_189962_a(Template.java:217) ~[?:?] {re:classloading}
    at net.minecraft.world.gen.feature.template.Template.func_186253_b(Template.java:166) ~[?:?] {re:classloading}
    at net.minecraft.world.gen.feature.template.Template.func_186260_a(Template.java:162) ~[?:?] {re:classloading}
    at net.mcreator.szsstructures.world.structure.CampSiteStructure$1.place(CampSiteStructure.java:65) ~[?:?] {re:classloading}
    at net.mcreator.szsstructures.world.structure.CampSiteStructure$1.func_212245_a(CampSiteStructure.java:40) ~[?:?] {re:classloading}
    at net.minecraft.world.gen.feature.ConfiguredFeature.func_222734_a(SourceFile:53) ~[?:?] {re:classloading}
    at net.minecraft.world.gen.placement.Placement.lambda$place$0(Placement.java:77) ~[?:?] {re:classloading}
    at java.util.stream.Streams$StreamBuilderImpl.forEachRemaining(Streams.java:419) ~[?:1.8.0_74] {}
    at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580) ~[?:1.8.0_74] {}
    at net.minecraft.world.gen.placement.Placement.func_214998_a(Placement.java:76) ~[?:?] {re:classloading}
    at net.minecraft.world.gen.placement.ConfiguredPlacement.func_215093_a(SourceFile:36) ~[?:?] {re:classloading}
    at net.minecraft.world.gen.feature.DecoratedFeature.func_212245_a(SourceFile:21) ~[?:?] {re:classloading}
    at net.minecraft.world.gen.feature.DecoratedFeature.func_212245_a(SourceFile:14) ~[?:?] {re:classloading}
    at net.minecraft.world.gen.feature.ConfiguredFeature.func_222734_a(SourceFile:53) ~[?:?] {re:classloading}
    at net.minecraft.world.biome.Biome.func_203608_a(Biome.java:281) ~[?:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraft.world.gen.ChunkGenerator.func_202092_b(ChunkGenerator.java:103) ~[?:?] {re:classloading}
    at net.minecraft.world.chunk.ChunkStatus.lambda$static$9(ChunkStatus.java:74) ~[?:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraft.world.chunk.ChunkStatus.func_223198_a(ChunkStatus.java:195) ~[?:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraft.world.server.ChunkManager.lambda$null$18(ChunkManager.java:519) ~[?:?] {re:classloading}
    at com.mojang.datafixers.util.Either$Left.map(Either.java:38) ~[datafixerupper-2.0.24.jar:?] {}
    at net.minecraft.world.server.ChunkManager.lambda$func_223156_b$20(ChunkManager.java:517) ~[?:?] {re:classloading}
    at java.util.concurrent.CompletableFuture.uniCompose(CompletableFuture.java:952) ~[?:1.8.0_74] {}
    at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:926) ~[?:1.8.0_74] {}
    at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:442) ~[?:1.8.0_74] {}
    at net.minecraft.world.chunk.ChunkTaskPriorityQueueSorter.func_219083_b(SourceFile:58) ~[?:?] {re:classloading}
    at net.minecraft.util.concurrent.DelegatedTaskExecutor.func_213148_e(SourceFile:83) ~[?:?] {re:classloading}
    at net.minecraft.util.concurrent.DelegatedTaskExecutor.func_213145_a(SourceFile:123) ~[?:?] {re:classloading}
    at net.minecraft.util.concurrent.DelegatedTaskExecutor.run(SourceFile:91) ~[?:?] {re:classloading}
    at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1402) ~[?:1.8.0_74] {}
    at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) ~[?:1.8.0_74] {}
    at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) ~[?:1.8.0_74] {}
    at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) ~[?:1.8.0_74] {}
    at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157) ~[?:1.8.0_74] {}

A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Server thread
Stacktrace:
    at net.minecraft.tileentity.CampfireTileEntity.func_213986_d(SourceFile:201)
    at net.minecraft.block.CampfireBlock.func_204509_a(CampfireBlock.java:164)
    at net.minecraft.world.gen.feature.template.Template.func_189962_a(Template.java:217)
    at net.minecraft.world.gen.feature.template.Template.func_186253_b(Template.java:166)
    at net.minecraft.world.gen.feature.template.Template.func_186260_a(Template.java:162)
    at net.mcreator.szsstructures.world.structure.CampSiteStructure$1.place(CampSiteStructure.java:65)
    at net.mcreator.szsstructures.world.structure.CampSiteStructure$1.func_212245_a(CampSiteStructure.java:40)
    at net.minecraft.world.gen.feature.ConfiguredFeature.func_222734_a(SourceFile:53)
    at net.minecraft.world.gen.placement.Placement.lambda$place$0(Placement.java:77)
    at java.util.stream.Streams$StreamBuilderImpl.forEachRemaining(Streams.java:419)
    at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
    at net.minecraft.world.gen.placement.Placement.func_214998_a(Placement.java:76)
    at net.minecraft.world.gen.placement.ConfiguredPlacement.func_215093_a(SourceFile:36)
    at net.minecraft.world.gen.feature.DecoratedFeature.func_212245_a(SourceFile:21)
    at net.minecraft.world.gen.feature.DecoratedFeature.func_212245_a(SourceFile:14)
    at net.minecraft.world.gen.feature.ConfiguredFeature.func_222734_a(SourceFile:53)

-- Feature --
Details:
    Id: minecraft:decorated
    Description: < DecoratedFeature [minecraft:decorated] >
Stacktrace:
    at net.minecraft.world.biome.Biome.func_203608_a(Biome.java:281)

-- Generation --
Details:
    CenterX: 7
    CenterZ: 2
    Step: SURFACE_STRUCTURES
    Seed: 2611351096875454260
    Biome: minecraft:forest
Stacktrace:
    at net.minecraft.world.gen.ChunkGenerator.func_202092_b(ChunkGenerator.java:103)
    at net.minecraft.world.chunk.ChunkStatus.lambda$static$9(ChunkStatus.java:74)
    at net.minecraft.world.chunk.ChunkStatus.func_223198_a(ChunkStatus.java:195)

-- Chunk to be generated --
Details:
    Location: 7,2
    Position hash: 8589934599
    Generator: net.minecraft.world.gen.OverworldChunkGenerator@76c76202
Stacktrace:
    at net.minecraft.world.server.ChunkManager.lambda$null$18(ChunkManager.java:519)
    at com.mojang.datafixers.util.Either$Left.map(Either.java:38)
    at net.minecraft.world.server.ChunkManager.lambda$func_223156_b$20(ChunkManager.java:517)
    at java.util.concurrent.CompletableFuture.uniCompose(CompletableFuture.java:952)
    at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:926)
    at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:442)
    at net.minecraft.world.chunk.ChunkTaskPriorityQueueSorter.func_219083_b(SourceFile:58)
    at net.minecraft.util.concurrent.DelegatedTaskExecutor.func_213148_e(SourceFile:83)
    at net.minecraft.util.concurrent.DelegatedTaskExecutor.func_213145_a(SourceFile:123)
    at net.minecraft.util.concurrent.DelegatedTaskExecutor.run(SourceFile:91)

-- Affected level --
Details:
    All players: 1 total; [ServerPlayerEntity['SZfox'/234, l='Mod??', x=-141.79, y=70.25, z=308.88]]
    Chunk stats: ServerChunkCache: 3133
    Level dimension: DimensionType{minecraft:overworld}
    Level name: Mod??
    Level seed: 9150797939054052
    Level generator: ID 00 - default, ver 1. Features enabled: true
    Level generator options: {}
    Level spawn location: World: (-176,67,208), Chunk: (at 0,4,0 in -11,13; contains blocks -176,0,208 to -161,255,223), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
    Level time: 321 game time, 321 day time
    Known server brands: forge
    Level was modded: true
    Level storage version: 0x04ABD - Anvil
    Level weather: Rain time: 57788 (now: false), thunder time: 103322 (now: false)
    Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
Stacktrace:
    at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:850)
    at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:782)
    at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:114)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:635)
    at java.lang.Thread.run(Thread.java:745)

-- System Details --
Details:
    Minecraft Version: 1.15.2
    Minecraft Version ID: 1.15.2
    Operating System: Mac OS X (x86_64) version 10.15.5
    Java Version: 1.8.0_74, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 1148249608 bytes (1095 MB) / 2147483648 bytes (2048 MB) up to 2147483648 bytes (2048 MB)
    CPUs: 6
    JVM Flags: 8 total; -Xss1M -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
    ModLauncher: 5.0.0-milestone.4+67+b1a340b
    ModLauncher launch target: fmlclient
    ModLauncher naming: srg
    ModLauncher services: 
        /eventbus-2.0.0-milestone.1-service.jar eventbus PLUGINSERVICE 
        /forge-1.15.2-31.1.0.jar object_holder_definalize PLUGINSERVICE 
        /forge-1.15.2-31.1.0.jar runtime_enum_extender PLUGINSERVICE 
        /accesstransformers-2.0.0-milestone.1-shadowed.jar accesstransformer PLUGINSERVICE 
        /forge-1.15.2-31.1.0.jar capability_inject_definalize PLUGINSERVICE 
        /forge-1.15.2-31.1.0.jar runtimedistcleaner PLUGINSERVICE 
        /forge-1.15.2-31.1.0.jar fml TRANSFORMATIONSERVICE 
    FML: 31.1
    Forge: net.minecraftforge:31.1.0
    FML Language Providers: 
        javafml@31.1
        minecraft@1
    Mod List: 
        forge-1.15.2-31.1.0-client.jar Minecraft {minecraft@1.15.2 DONE}
        SZ'sStructures.jar SZ's Structures {szs_structures@1.0.0 DONE}
        forge-1.15.2-31.1.0-universal.jar Forge {forge@31.1.0 DONE}
    Player Count: 1 / 8; [ServerPlayerEntity['SZfox'/234, l='Mod??', x=-141.79, y=70.25, z=308.88]]
    Data Packs: vanilla, mod:forge (incompatible), mod:szs_structures
    Type: Integrated Server (map_client.txt)
    Is Modded: Definitely; Client brand changed to 'forge'

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Create a bug report, and…
Tue, 06/16/2020 - 13:22

Create a bug report, and post full logs on pastebin, and in most or all cases, provide your workspace.

Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
java.lang…
Tue, 06/16/2020 - 14:07

java.lang.NullPointerException: Feature placement
    at net.minecraft.tileentity.CampfireTileEntity.func_213986_d(SourceFile:201) ~[?:?] {re:classloading}
    at net.minecraft.block.CampfireBlock.func_204509_a(CampfireBlock.java:164) ~[?:?]

why does this look like a Minecraft bug to me o_0

can you include some images of your structure setup? 

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks for the help. I have…
Tue, 06/16/2020 - 17:17

Workspace

Thanks for the help. I have some screenshots of the setup of my structures here:

Structure Settings 

(Most of my structures are in a similar format, the only changes between them are what biomes they spawn in)

Structure Setup

This is the setup in my superflat world for building my structures. The red marks a 32x32x32 space.

Structure Block Configurations

Here are the configurations in the structure block.

I will also file a bug report. Any ideas? Thanks!