Topic category: Help with Minecraft modding (Java Edition)
I'm working on my mod "A Craftin' Time", and when I try to load a world, the game crashes:
14:55.58 [Server thread/INFO] [minecraft/IntegratedServer]: Starting integrated minecraft server version 1.12.2
14:55.58 [Server thread/INFO] [minecraft/IntegratedServer]: Generating keypair
14:55.58 [Server thread/INFO] [FML]: Injecting existing registry data into this server instance
14:55.59 [Server thread/INFO] [FML]: Applying holder lookups
14:55.59 [Server thread/INFO] [FML]: Holder lookups applied
14:55.59 [Server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@55e7140c)
14:55.59 [Server thread/ERROR] [minecraft/MinecraftServer]: Encountered an unexpected exception
java.lang.IllegalArgumentException: Invalid dimension a_craftin_time:timerift
at net.minecraft.world.DimensionType.byName(DimensionType.java:104) ~[DimensionType.class:?]
at net.minecraft.advancements.critereon.ChangeDimensionTrigger.deserializeInstance(ChangeDimensionTrigger.java:68) ~[ChangeDimensionTrigger.class:?]
at net.minecraft.advancements.critereon.ChangeDimensionTrigger.deserializeInstance(ChangeDimensionTrigger.java:19) ~[ChangeDimensionTrigger.class:?]
at net.minecraft.advancements.Criterion.criterionFromJson(Criterion.java:56) ~[Criterion.class:?]
at net.minecraft.advancements.Criterion.criteriaFromJson(Criterion.java:82) ~[Criterion.class:?]
at net.minecraft.advancements.Advancement$Builder.deserialize(Advancement.java:296) ~[Advancement$Builder.class:?]
at net.minecraft.advancements.AdvancementManager$1.deserialize(AdvancementManager.java:50) ~[AdvancementManager$1.class:?]
at net.minecraft.advancements.AdvancementManager$1.deserialize(AdvancementManager.java:46) ~[AdvancementManager$1.class:?]
at com.google.gson.internal.bind.TreeTypeAdapter.read(TreeTypeAdapter.java:69) ~[TreeTypeAdapter.class:?]
at net.minecraft.util.JsonUtils.gsonDeserialize(JsonUtils.java:435) ~[JsonUtils.class:?]
at net.minecraft.util.JsonUtils.fromJson(JsonUtils.java:485) ~[JsonUtils.class:?]
at net.minecraftforge.common.ForgeHooks.lambda$loadAdvancements$0(ForgeHooks.java:1356) ~[ForgeHooks.class:?]
at net.minecraftforge.common.crafting.CraftingHelper.findFiles(CraftingHelper.java:822) ~[CraftingHelper.class:?]
at net.minecraftforge.common.ForgeHooks.loadAdvancements(ForgeHooks.java:1338) ~[ForgeHooks.class:?]
at net.minecraftforge.common.ForgeHooks.loadAdvancements(ForgeHooks.java:1312) ~[ForgeHooks.class:?]
at net.minecraft.advancements.AdvancementManager.reload(AdvancementManager.java:70) ~[AdvancementManager.class:?]
at net.minecraft.advancements.AdvancementManager.<init>(AdvancementManager.java:61) ~[AdvancementManager.class:?]
at net.minecraft.world.WorldServer.init(WorldServer.java:162) ~[WorldServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:123) ~[IntegratedServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.init(IntegratedServer.java:160) ~[IntegratedServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:552) [MinecraftServer.class:?]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_232]
14:55.59 [Server thread/ERROR] [minecraft/MinecraftServer]: This crash report has been saved to: C:\Users\Benonius\MCreatorWorkspaces\a_craftin_time\run\.\crash-reports\crash-2020-03-27_14.55.59-server.txt
14:55.59 [Server thread/INFO] [minecraft/MinecraftServer]: Stopping server
14:55.59 [Server thread/INFO] [minecraft/MinecraftServer]: Saving players
14:55.59 [Server thread/INFO] [minecraft/MinecraftServer]: Saving worlds
14:55.59 [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'New World'/overworld
14:55.59 [Server thread/INFO] [FML]: Unloading dimension 0
14:55.59 [Server thread/INFO] [FML]: Applying holder lookups
14:55.59 [Server thread/INFO] [FML]: Holder lookups applied
14:55.59 [Server thread/INFO] [FML]: The state engine was in incorrect state SERVER_STARTING and forced into state SERVER_STOPPED. Errors may have been discarded.
14:56.01 [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629 ---- Minecraft Crash Report ----
// You're mean.
Time: 3/27/20 2:56 PM
Description: Exception in server tick loop
java.lang.IllegalArgumentException: Invalid dimension a_craftin_time:timerift
at net.minecraft.world.DimensionType.byName(DimensionType.java:104)
at net.minecraft.advancements.critereon.ChangeDimensionTrigger.deserializeInstance(ChangeDimensionTrigger.java:68)
at net.minecraft.advancements.critereon.ChangeDimensionTrigger.deserializeInstance(ChangeDimensionTrigger.java:19)
at net.minecraft.advancements.Criterion.criterionFromJson(Criterion.java:56)
at net.minecraft.advancements.Criterion.criteriaFromJson(Criterion.java:82)
at net.minecraft.advancements.Advancement$Builder.deserialize(Advancement.java:296)
at net.minecraft.advancements.AdvancementManager$1.deserialize(AdvancementManager.java:50)
at net.minecraft.advancements.AdvancementManager$1.deserialize(AdvancementManager.java:46)
at com.google.gson.internal.bind.TreeTypeAdapter.read(TreeTypeAdapter.java:69)
at net.minecraft.util.JsonUtils.gsonDeserialize(JsonUtils.java:435)
at net.minecraft.util.JsonUtils.fromJson(JsonUtils.java:485)
at net.minecraftforge.common.ForgeHooks.lambda$loadAdvancements$0(ForgeHooks.java:1356)
at net.minecraftforge.common.crafting.CraftingHelper.findFiles(CraftingHelper.java:822)
at net.minecraftforge.common.ForgeHooks.loadAdvancements(ForgeHooks.java:1338)
at net.minecraftforge.common.ForgeHooks.loadAdvancements(ForgeHooks.java:1312)
at net.minecraft.advancements.AdvancementManager.reload(AdvancementManager.java:70)
at net.minecraft.advancements.AdvancementManager.<init>(AdvancementManager.java:61)
at net.minecraft.world.WorldServer.init(WorldServer.java:162)
at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:123)
at net.minecraft.server.integrated.IntegratedServer.init(IntegratedServer.java:160)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:552)
at java.lang.Thread.run(Thread.java:748)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.12.2
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_232, BellSoft
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode),
Memory: 432612232 bytes (412 MB) / 758644736 bytes (723 MB) up to 1894252544 bytes (1806 MB)
JVM Flags: 0 total;
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP 9.42 Powered by Forge 14.23.5.2768 5 mods loaded, 5 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
| State | ID | Version | Source | Signature |
|:------- |:-------------- |:------------ |:-------------------------------- |:--------- |
| UCHIJAA | minecraft | 1.12.2 | minecraft.jar | None |
| UCHIJAA | mcp | 9.42 | minecraft.jar | None |
| UCHIJAA | FML | 8.0.99.99 | forgeSrc-1.12.2-14.23.5.2768.jar | None |
| UCHIJAA | forge | 14.23.5.2768 | forgeSrc-1.12.2-14.23.5.2768.jar | None |
| UCHIJAA | a_craftin_time | 1.2.0 | modid-1.0.jar | None |
Loaded coremods (and transformers):
GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
Profiler Position: N/A (disabled)
Player Count: 0 / 8; []
Type: Integrated Server (map_client.txt)
Is Modded: Definitely; Client brand changed to 'fml,forge'
14:56.01 [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629 #@!@# Game crashed! Crash report saved to: #@!@# .\crash-reports\crash-2020-03-27_14.55.59-server.txt
14:56.01 [Client Shutdown Thread/INFO] [minecraft/MinecraftServer]: Stopping server
14:56.01 [Client Shutdown Thread/INFO] [minecraft/MinecraftServer]: Saving players
14:56.01 [Client Shutdown Thread/INFO] [minecraft/MinecraftServer]: Saving worlds
AL lib: (EE) alc_cleanup: 1 device not closed
:runClient FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':runClient'.
> Process 'command 'C:\Program Files\Pylo\MCreator\jdk\bin\java.exe'' finished with non-zero exit value -1
I apoligize if that was way too much to look at, but I wasn't sure what all was important.
I don't know what this means, but I haven't changed anything about the dimension "Time Rift" or it's biome. It is likely something to do with upgrading to MCreator 2020.2 since this hasn't happened in 2020.1. This crash happens when loading any world, even a new one. Please help! I need to test so many things about the mod!
1.12.2 does not support dimension switched advancement criterion trigger.
Ah, that was it? Well, thank you so much, I was getting worried!