mojira.dev
MC-249159

java.lang.IllegalStateException: Trying to access unbound value / Unbound values in registry - Valid dimension types or worldgen settings can be invalidated on world reload

The Bug

An error of this type occurs when the provided datapack fails to update experimental worldgen settings during a second world load leaving that world entirely inaccessible even when datapacks are removed from their directory.

Workaround

A possible fix would be to remove the affected worldgen settings from the level.dat (using a tag editor like NBT Explorer).

Although, as I'm not completely sure what causes this issue to occur, it seems that the custom dimension settings used to generate the new dimension are unable to be deleted if the game cannot locate those files in the datapacks (according to the game log).

Reproduction steps:

  • Create a world with the attached experimental datapack

  • Make sure the datapack is enabled in the world

  • Disable the datapack providing the experimental settings

  • Quit the game

  • Attempt to enter the world again

Linked issues

Attachments

Comments 2

Cannot confirm in 1.19.3 and 23w03a

Linking forward as a duplicate of MC-255158.

Jatzylap

(Unassigned)

Unconfirmed

(Unassigned)

1.18.2, 22w12a, 1.19 Pre-release 1, 1.19

Retrieved