• Recently Browsing

    No registered users viewing this page.

  • Posts

    • The log: [16:06:20] [Server thread/ERROR] [minecraft/ChunkManager]: Failed to save chunk [-8, -6] java.util.concurrent.CompletionException: net.minecraft.crash.ReportedException: Feature placement at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273) ~[?:1.8.0_252] {} at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280) ~[?:1.8.0_252] {} at java.util.concurrent.CompletableFuture.uniCompose(CompletableFuture.java:975) ~[?:1.8.0_252] {} at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:940) ~[?:1.8.0_252] {} at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:456) ~[?:1.8.0_252] {} 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_252] {} at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) ~[?:1.8.0_252] {} at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) ~[?:1.8.0_252] {} at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) ~[?:1.8.0_252] {} at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157) ~[?:1.8.0_252] {} Caused by: net.minecraft.crash.ReportedException: Feature placement at net.minecraft.world.server.ChunkManager.lambda$null$18(ChunkManager.java:529) ~[?:?] {re:classloading,pl:runtimedistcleaner:A} at com.mojang.datafixers.util.Either$Left.map(Either.java:38) ~[?:?] {re:classloading} at net.minecraft.world.server.ChunkManager.lambda$func_223156_b$20(ChunkManager.java:516) ~[?:?] {re:classloading,pl:runtimedistcleaner:A} at java.util.concurrent.CompletableFuture.uniCompose(CompletableFuture.java:966) ~[?:1.8.0_252] {} ... 11 more Caused by: java.lang.NullPointerException 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,pl:runtimedistcleaner:A} 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:518) ~[?:?] {re:classloading,pl:runtimedistcleaner:A} at com.mojang.datafixers.util.Either$Left.map(Either.java:38) ~[?:?] {re:classloading} at net.minecraft.world.server.ChunkManager.lambda$func_223156_b$20(ChunkManager.java:516) ~[?:?] {re:classloading,pl:runtimedistcleaner:A} at java.util.concurrent.CompletableFuture.uniCompose(CompletableFuture.java:966) ~[?:1.8.0_252] {} ... 11 more
    • The IStorage is for when your capability is used by other mods. The serialization in your capability provider (this is only for attached capabilities!) is for saving your capability data to disk.
    • I still don't know what causes this to happen, but I overrode the rendering method and manually checked for render indexes to call the appropriate limbs, and it all works now.
    • I tried to spawn a bush inside the nether I had many different tries but i can't get it to work.    I tried it with the BlockClusterFeatureConfig public static final BlockClusterFeatureConfig NETHER_QUARTZ_BUSH = (new BlockClusterFeatureConfig.Builder( new SimpleBlockStateProvider(BlockInit.NETHER_QUARTZ_BUSH.get().getDefaultState()), new SimpleBlockPlacer())).whitelist(ImmutableSet.of(Blocks.NETHERRACK)).tries(1).build();   and here is the code where it should generate the bush public static void generateBushesNether() { for (Biome biome : ForgeRegistries.BIOMES) { if (biome.getCategory() == Biome.Category.NETHER) { biome.addFeature(GenerationStage.Decoration.UNDERGROUND_DECORATION, Feature.FLOWER .withConfiguration(BiomeFeatures.NETHER_QUARTZ_BUSH) .withPlacement(Placement.COUNT_EXTRA_HEIGHTMAP.configure(new AtSurfaceWithExtraConfig((int)0.4F, 0.1F, 1))) ); } } }   I also don't know if there is a better way to generate things like flowers or bushes.   Any Ideas? Thanks in advance!
    • Ah okay so here's what I have on a custom class implementing ICapabilityProvider. The serializers confuse me and I'm not sure what they are for. Is it this when the capability is used in other mods, between server/client, or save/load? public class FissionProvider implements ICapabilitySerializable<CompoundNBT> { private LazyOptional<IFission> instance = LazyOptional.of(CapabilityRegister.FISSION::getDefaultInstance); @Override public <T> LazyOptional<T> getCapability(Capability<T> cap, Direction side) { return CapabilityRegister.FISSION.orEmpty(cap, instance); } @Override public CompoundNBT serializeNBT() { IFission fission = instance.orElseThrow(() -> new IllegalArgumentException("at serialize")); CompoundNBT nbt = new CompoundNBT(); nbt.putFloat("temperature", fission.getTemperature()); nbt.putLong("neutrons", fission.getNeutrons()); return nbt; } @Override public void deserializeNBT(CompoundNBT nbt) { //IFission fission = instance.orElseThrow(() -> new IllegalArgumentException("at serialize")); } } I'm confused on the serializers on the register as well.   public class CapabilityRegister { @CapabilityInject(IFission.class) public static Capability<IFission> FISSION = null; public static void init() { CapabilityManager.INSTANCE.register(IFission.class, new IStorage<IFission>() { @Override public INBT writeNBT(Capability<IFission> capability, IFission instance, Direction side) { return null; } @Override public void readNBT(Capability<IFission> capability, IFission instance, Direction side, INBT nbt) { } }, Fission::new); } }  
  • Topics

  • Who's Online (See full list)