Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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.

 

  • 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(...).

  • 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.

  • 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 by Budschie

  • 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.

  • 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

 

  • Budschie changed the title to [1.15.2] [Solved] Game "freezes" when generating custom feature

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.