To recreate this issue, make a datapack that has it's own dimension. Then put it in a world and do `/execute in ` and see the list of dimensions. Everything should be there including vanilla dimension and the datapack dimension. Exit the world and remove the datapack from the world's datapack folder. Then re-enter the world and repeat that command. The Nether and/or End will be missing. If you put the datapack back on, the missing dimension will still not return but the datapack dimension and overworld will still be avaliable.
Here is a video of me using a datapack in unmodded Minecraft and when I removed the datapack, the end went missing even though the datapack only makes a new dimension called "the_nether_2"
Video: https://streamable.com/o3cnq8
Datapack:
A friend looked into it and seems to be dependent on the order of the dimensions processed in this line of code in GeneratorOptions.CODEC (yarn names. Let me know if I should convert it to mojmap)
SimpleRegistry.createCodec(Registry.DIMENSION_OPTIONS, Lifecycle.stable(), DimensionOptions.CODEC).xmap(DimensionOptions::method_29569, Function.identity()).fieldOf("dimensions")
Here, the vanilla dimensions are returned missing when DimensionOptions#method_29569 is called it seems. The codec here might be the issue. The desired behavior is that the codec reads all the dimensions that exists and skips the ones that do not exist in the DIMENSION_OPTIONS registry instead of failing and removing dimensions that should still exist.
Thank you for your report!
However, we are already tracking this issue, and this report is a Duplicate of MC-197860, which is a report that has not been resolved yet.
If you want, you can upvote the parent ticket, and enable watching to receive any updates about it - if you believe you have any information that may be important for this issue, please leave a comment on the parent. 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