Posted May 17, 20205 yr Hello! As the title suggests, I have a problem with structure generation using features. The problem is following: Everytime my test structure should generate, the game "freezes" in a strange manner. It is pretty much unresponsive to any input, but it doesn't say that it crashed either. I located the problem in this file: https://github.com/Budschie/Deepnether-Mod/blob/master/src/main/java/de/budschie/deepnether/worldgen/TestFeature.java#L46 Due to some debugging I know that code that comes after this won't execute. To be a bit more precice: It freezes after this line: https://github.com/Budschie/Deepnether-Mod/blob/master/src/main/java/de/budschie/deepnether/structures/StructureBase.java#L210 But I have no idea what causes this "crash". Thanks for any help.
May 17, 20205 yr Author @Shaunak I'm a bit confused. What do you mean with "tweaking your settings to your computer needs"?
May 17, 20205 yr 1 minute ago, Budschie said: I'm a bit confused. What do you mean with "tweaking your settings to your computer needs"? I'm pretty sure he's a mod user, not a mod maker, and doesn't really know what he's saying.
May 17, 20205 yr Author @diesieben07 That wouldn't work, because I have to add tile entities to that world, and an IWorld won't provide me a method of doing that other than calling getWorld().setTileEntity(...).
May 17, 20205 yr Author @diesieben07 But can I copy a tileentity information from one tileentity to another just using getTileEntity()?
May 17, 20205 yr Author @diesieben07 I'm copying my blocks, tileentities etc. from a worldedit-like structure file and placing that into my world. The advantage is that I can easily built structures manually, without having to spend hours figuring out how to generate a simple structure procedurally.
May 17, 20205 yr Author @diesieben07 8 minutes ago, diesieben07 said: Doesn't vanilla already have this system with the structure blocks? ? It has a maximum of blocks that you can put into one structure. 7 minutes ago, diesieben07 said: So I am not sure why you are "copying" things. I have to set the tile entity because I create it using TileEntity.create(compound) when placing a structure. Edited May 17, 20205 yr by Budschie
May 17, 20205 yr Author @diesieben07 Do flags in the setBlockState method affect tileentity placement? Because if I try to get the tile entity via IWorld.getTileEntity(...), it will return null.
May 18, 20205 yr Author @diesieben07 When I get the tileentity my game crashes with following message: "We are asking a region for a chunk out of bound | -15 -28"
May 18, 20205 yr Author https://github.com/Budschie/Deepnether-Mod/blob/master/src/main/java/de/budschie/deepnether/worldgen/TestFeature.java https://github.com/Budschie/Deepnether-Mod/blob/master/src/main/java/de/budschie/deepnether/structures/StructureBase.java
May 18, 20205 yr Author Spoiler java.util.concurrent.CompletionException: net.minecraft.crash.ReportedException: Feature placement at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273) ~[?:1.8.0_232] {} at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280) ~[?:1.8.0_232] {} at java.util.concurrent.CompletableFuture.uniCompose(CompletableFuture.java:975) ~[?:1.8.0_232] {} at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:940) ~[?:1.8.0_232] {} at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:456) ~[?:1.8.0_232] {} at net.minecraft.world.chunk.ChunkTaskPriorityQueueSorter.lambda$null$1(ChunkTaskPriorityQueueSorter.java:44) ~[?:?] {re:classloading} at net.minecraft.util.concurrent.DelegatedTaskExecutor.driveOne(DelegatedTaskExecutor.java:83) ~[?:?] {re:classloading} at net.minecraft.util.concurrent.DelegatedTaskExecutor.driveWhile(DelegatedTaskExecutor.java:123) ~[?:?] {re:classloading} at net.minecraft.util.concurrent.DelegatedTaskExecutor.run(DelegatedTaskExecutor.java:91) ~[?:?] {re:classloading} at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1402) ~[?:1.8.0_232] {} at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) ~[?:1.8.0_232] {} at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) ~[?:1.8.0_232] {} at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) ~[?:1.8.0_232] {} at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157) ~[?:1.8.0_232] {} Caused by: net.minecraft.crash.ReportedException: Feature placement at net.minecraft.world.server.ChunkManager.lambda$null$18(ChunkManager.java:540) ~[?:?] {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:527) ~[?:?] {re:classloading} at java.util.concurrent.CompletableFuture.uniCompose(CompletableFuture.java:966) ~[?:1.8.0_232] {} ... 11 more Caused by: java.lang.RuntimeException: We are asking a region for a chunk out of bound | -15 -28 at net.minecraft.world.gen.WorldGenRegion.getChunk(WorldGenRegion.java:125) ~[?:?] {re:classloading} at net.minecraft.world.IWorldReader.getChunk(IWorldReader.java:105) ~[?:?] {re:classloading} at net.minecraft.world.gen.WorldGenRegion.getChunk(WorldGenRegion.java:97) ~[?:?] {re:classloading} at net.minecraft.world.IWorldReader.getChunk(IWorldReader.java:97) ~[?:?] {re:classloading} at net.minecraft.world.gen.WorldGenRegion.getTileEntity(WorldGenRegion.java:181) ~[?:?] {re:classloading} at de.budschie.deepnether.structures.StructureBase.place(StructureBase.java:259) ~[?:?] {re:classloading} at de.budschie.deepnether.worldgen.TestFeature.place(TestFeature.java:49) ~[?:?] {re:classloading} at net.minecraft.world.gen.feature.ConfiguredFeature.place(ConfiguredFeature.java:45) ~[?:?] {re:classloading} at net.minecraft.world.gen.placement.Placement.lambda$place$0(Placement.java:77) ~[?:?] {re:classloading} at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) ~[?:1.8.0_232] {} at java.util.stream.IntPipeline$4$1.accept(IntPipeline.java:250) ~[?:1.8.0_232] {} at java.util.stream.Streams$RangeIntSpliterator.forEachRemaining(Streams.java:110) ~[?:1.8.0_232] {} at java.util.Spliterator$OfInt.forEachRemaining(Spliterator.java:693) ~[?:1.8.0_232] {} at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) ~[?:1.8.0_232] {} at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) ~[?:1.8.0_232] {} at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) ~[?:1.8.0_232] {} at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) ~[?:1.8.0_232] {} at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_232] {} at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:485) ~[?:1.8.0_232] {} at net.minecraft.world.gen.placement.Placement.place(Placement.java:76) ~[?:?] {re:classloading} at net.minecraft.world.gen.placement.ConfiguredPlacement.place(ConfiguredPlacement.java:31) ~[?:?] {re:classloading} at net.minecraft.world.gen.feature.DecoratedFeature.place(DecoratedFeature.java:18) ~[?:?] {re:classloading} at net.minecraft.world.gen.feature.DecoratedFeature.place(DecoratedFeature.java:12) ~[?:?] {re:classloading} at net.minecraft.world.gen.feature.ConfiguredFeature.place(ConfiguredFeature.java:45) ~[?:?] {re:classloading} at net.minecraft.world.biome.Biome.decorate(Biome.java:294) ~[?:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.world.gen.ChunkGenerator.decorate(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.doGenerationWork(ChunkStatus.java:195) ~[?:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.world.server.ChunkManager.lambda$null$18(ChunkManager.java:529) ~[?:?] {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:527) ~[?:?] {re:classloading} at java.util.concurrent.CompletableFuture.uniCompose(CompletableFuture.java:966) ~[?:1.8.0_232] {} ... 11 more
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.