Game does not recognize custom dimension type - "java.lang.IllegalStateException: Unregistered dimension type"
The game crashes upon creating a custom world with a dimension type defined as either an object, or as a string referencing a file under dimension_type/type.json, thus preventing custom dimension types from being used.
I've provided two versions of the file used to import the world settings, one defining the dimension type as an object, and the other referencing a file within the test datapack I've also attached.
Description: Exception in server tick loop java.lang.IllegalStateException: Unregistered dimension type: cgy@60fd51a1 at net.minecraft.server.MinecraftServer.a(SourceFile:407) at net.minecraft.server.MinecraftServer$$Lambda$4243/2071520293.get(Unknown Source) at java.util.Optional.orElseThrow(Optional.java:290) at net.minecraft.server.MinecraftServer.a(SourceFile:407) at net.minecraft.server.MinecraftServer.l_(SourceFile:333) at emv.d(SourceFile:68) at net.minecraft.server.MinecraftServer.w(SourceFile:646) at net.minecraft.server.MinecraftServer.a(SourceFile:255) at net.minecraft.server.MinecraftServer$$Lambda$4065/2101823524.run(Unknown Source) at java.lang.Thread.run(Thread.java:745)
Created Issue:
Game Does Not Recognize Custom Dimension Type
The game crashes upon creating a custom world with a dimension type defined as either an object, or as a string referencing a file under dimension_type/type.json, thus preventing custom dimension types from being used.
I've provided two versions of the file used to import the world settings, one defining the dimension type as an object, and the other referencing a file within the test datapack I've also attached.
The game crashes upon creating a custom world with a dimension type defined as either an object, or as a string referencing a file under dimension_type/type.json, thus preventing custom dimension types from being used.
I've provided two versions of the file used to import the world settings, one defining the dimension type as an object, and the other referencing a file within the test datapack I've also attached.
(1.16.2 Pre-Release 1) crash-2020-07-30_00.23.26-server.txtDescription: Exception in server tick loop java.lang.IllegalStateException: Unregistered dimension type: cgy@60fd51a1 at net.minecraft.server.MinecraftServer.a(SourceFile:407) at net.minecraft.server.MinecraftServer$$Lambda$4243/2071520293.get(Unknown Source) at java.util.Optional.orElseThrow(Optional.java:290) at net.minecraft.server.MinecraftServer.a(SourceFile:407) at net.minecraft.server.MinecraftServer.l_(SourceFile:333) at emv.d(SourceFile:68) at net.minecraft.server.MinecraftServer.w(SourceFile:646) at net.minecraft.server.MinecraftServer.a(SourceFile:255) at net.minecraft.server.MinecraftServer$$Lambda$4065/2101823524.run(Unknown Source) at java.lang.Thread.run(Thread.java:745)
Game Does Not Recognize Custom Dimension Type - "crash-2020-07-30_00.23.26-server.txt
GameDoesNotRecognizeCustomDimensionType - "crash-2020-07-30_00.23.26-server.txtGame does not recognize custom dimension type - "java.lang.IllegalStateException: Unregistered dimension type"
relates to
is duplicated by
Thank you for your report!
However, we are already tracking this issue, and this report is a Duplicate of MC-196534, which has been marked as Awaiting Response - please provide all details on how exactly to reproduce this bug on the parent ticket, and answer the question in the latest comment - and the report will be reopened.
If you want, you can upvote the parent ticket, and enable watching to receive any updates about it. Please also use the search function in the future to prevent duplicate reports.
Quick Links:
📓 Issue Guidelines – 🛠 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
💬 Mojira Subreddit – 💬 Mojira Discord
this is not a bug, there have been changes to the file structure in 1.16.2 pre1. please refer to changelog and edit your files accordingly.
1.16.2 pre-1 only changes the datapack file structure according to the changelog . However the game still crashes after creating custom world using "import settings" with the provided json format (i.e. defining custom dimension_type as an list object). This should be a bug.
Can confirm a crash when renaming the dimension after generating it. It has registered the dimension already but under a different name (which it attempts to re-create)EDIT: This is working fine with the updated datapack provided. Have you tried testing the issue in 1.16.2 pre2 ?
Crash still occurs in 1.16.2 pre-2
Update: This bug occurs only when "import settings" is used. The game goes fine if dimension, dimension_type and biome are fully defined in datapacks.
Update: The issue is fixed in 1.16.2 pre-3