Posted October 20, 20196 yr So I created a custom dimension with a custom Chunk Generator Type, though when using it instead of the NetherGen "CAVES" Type, I crash upon loading any world. I am unsure on how to go about solving the problem of "net.minecraft.world.gen.ChunkGeneratorType@1e4d1e5d (name minecraft:dn_caves) is being added too late." The Crash Report: ---- Minecraft Crash Report ---- // Oops. Time: 10/19/19 8:47 PM Description: Exception in server tick loop java.lang.ExceptionInInitializerError: null at dev.theagameplayer.visionarymod.world.dimension.DeepNetherDimension.createChunkGenerator(DeepNetherDimension.java:51) ~[?:?] {} at net.minecraftforge.common.extensions.IForgeWorldType.createChunkGenerator(IForgeWorldType.java:101) ~[?:?] {} at net.minecraft.world.server.ServerWorld.lambda$new$3(ServerWorld.java:170) ~[?:?] {} at net.minecraft.world.World.<init>(World.java:104) ~[?:?] {pl:accesstransformer:B} at net.minecraft.world.server.ServerWorld.<init>(ServerWorld.java:169) ~[?:?] {} at net.minecraft.world.ServerMultiWorld.<init>(ServerMultiWorld.java:17) ~[?:?] {} at net.minecraft.server.MinecraftServer.loadWorlds(MinecraftServer.java:404) ~[?:?] {pl:accesstransformer:B} at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:76) ~[?:?] {pl:runtimedistcleaner:A} at net.minecraft.server.integrated.IntegratedServer.init(IntegratedServer.java:97) ~[?:?] {pl:runtimedistcleaner:A} at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:622) [?:?] {pl:accesstransformer:B} at java.lang.Thread.run(Thread.java:748) [?:1.8.0_222] {} Caused by: java.lang.IllegalStateException: The object net.minecraft.world.gen.ChunkGeneratorType@1e4d1e5d (name minecraft:dn_caves) is being added too late. at net.minecraftforge.registries.ForgeRegistry.add(ForgeRegistry.java:348) ~[?:?] {} at net.minecraftforge.registries.ForgeRegistry.add(ForgeRegistry.java:308) ~[?:?] {} at net.minecraftforge.registries.NamespacedWrapper.register(NamespacedWrapper.java:56) ~[?:?] {} at net.minecraftforge.registries.NamespacedWrapper.register(NamespacedWrapper.java:65) ~[?:?] {} at net.minecraftforge.registries.NamespacedWrapper.register(NamespacedWrapper.java:34) ~[?:?] {} at net.minecraft.util.registry.Registry.register(Registry.java:240) ~[?:?] {} at net.minecraft.util.registry.Registry.register(Registry.java:236) ~[?:?] {} at dev.theagameplayer.visionarymod.world.gen.VisionaryChunkGeneratorType.register(VisionaryChunkGeneratorType.java:20) ~[?:?] {} at dev.theagameplayer.visionarymod.world.gen.VisionaryChunkGeneratorType.<clinit>(VisionaryChunkGeneratorType.java:14) ~[?:?] {} ... 11 more A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.14.4 Minecraft Version ID: 1.14.4 Operating System: Mac OS X (x86_64) version 10.15 Java Version: 1.8.0_222, AdoptOpenJDK Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), AdoptOpenJDK Memory: 216519304 bytes (206 MB) / 1090519040 bytes (1040 MB) up to 1908932608 bytes (1820 MB) CPUs: 4 JVM Flags: 1 total; -Xss1M ModLauncher: 3.2.0+60+b86c1d4 ModLauncher launch target: fmluserdevclient ModLauncher naming: mcp ModLauncher services: /eventbus-1.0.0-service.jar eventbus PLUGINSERVICE /forge-1.14.4-28.1.0_mapped_snapshot_20190719-1.14.3-launcher.jar object_holder_definalize PLUGINSERVICE /forge-1.14.4-28.1.0_mapped_snapshot_20190719-1.14.3-launcher.jar runtime_enum_extender PLUGINSERVICE /accesstransformers-1.0.0-shadowed.jar accesstransformer PLUGINSERVICE /forge-1.14.4-28.1.0_mapped_snapshot_20190719-1.14.3-launcher.jar capability_inject_definalize PLUGINSERVICE /forge-1.14.4-28.1.0_mapped_snapshot_20190719-1.14.3-launcher.jar runtimedistcleaner PLUGINSERVICE /forge-1.14.4-28.1.0_mapped_snapshot_20190719-1.14.3-launcher.jar fml TRANSFORMATIONSERVICE FML: 28.1 Forge: net.minecraftforge:28.1.0 FML Language Providers: [email protected] minecraft@1 Mod List: main Visionary Mod {[email protected] DONE} forge-1.14.4-28.1.0_mapped_snapshot_20190719-1.14.3-recomp.jar Forge {[email protected] DONE} client-extra.jar Minecraft {[email protected] DONE} Player Count: 0 / 8; [] Data Packs: vanilla, mod:visionarymod, mod:forge Type: Integrated Server (map_client.txt) Is Modded: Definitely; Client brand changed to 'forge' The Class the error is located in (VisionaryChunkGeneratorType): package dev.theagameplayer.visionarymod.world.gen; import java.util.function.Supplier; import net.minecraft.util.registry.Registry; import net.minecraft.world.World; import net.minecraft.world.gen.ChunkGenerator; import net.minecraft.world.gen.ChunkGeneratorType; import net.minecraft.world.gen.GenerationSettings; import net.minecraft.world.gen.IChunkGeneratorFactory; import net.minecraftforge.api.distmarker.Dist; import net.minecraftforge.api.distmarker.OnlyIn; @SuppressWarnings("rawtypes") public class VisionaryChunkGeneratorType <C extends GenerationSettings, T extends ChunkGenerator<C>> extends ChunkGeneratorType { public static final ChunkGeneratorType<DeepNetherGenSettings, DeepNetherChunkGenerator> DNCAVES = register("dn_caves", DeepNetherChunkGenerator::new, DeepNetherGenSettings::new, true); private final boolean isOptionForBuffetWorld; private final Supplier<C> settings; @SuppressWarnings("deprecation") private static <C extends GenerationSettings, T extends ChunkGenerator<C>> ChunkGeneratorType<C, T> register(String key, IChunkGeneratorFactory<C, T> factoryIn, Supplier<C> settingsIn, boolean canUseForBuffet) { return Registry.register(Registry.CHUNK_GENERATOR_TYPE, key, new ChunkGeneratorType<>(factoryIn, canUseForBuffet, settingsIn)); } @SuppressWarnings("unchecked") public VisionaryChunkGeneratorType(World world, IChunkGeneratorFactory<C, T> p_i49953_1_, boolean p_i49953_2_, Supplier<C> p_i49953_3_) { super(p_i49953_1_, p_i49953_2_, p_i49953_3_); this.isOptionForBuffetWorld = p_i49953_2_; this.settings = p_i49953_3_; } public C createSettings() { return (C)(this.settings.get()); } @OnlyIn(Dist.CLIENT) public boolean isOptionForBuffetWorld() { return this.isOptionForBuffetWorld; } } Edited October 20, 20196 yr by A-Game
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.