diesieben07
What are you recommending instead of it.
I try to be clear as possible:
I want to have a function or variable, which is telling me in which dimension I are.
// 1.16.5
world.getDimension() == RegistryKey.getOrCreateKey(Registry.WORLD_KEY, new ResourceLocation("overworld"))
// 1.17.1
world.dimension() == ResourceKey.create(Registry.DIMENSION_REGISTRY, new ResourceLocation("overworld"))
This is working after more than 12 hours of searching, and now you are telling me I should not use it.
I dont want to get hints to find that on my own. I want to get a clear answer.
Which function.. which variable.. which statement can I use to get programmatically the dimension (or dimension ID) of the player?
Your hint with World#dimension() wasn't wrong, but my solution with that hint seems to be wrong. So please be clear! Or tell me where I should ask for it.