I want to check a player's current dimension using a scoreboard. For example, if a player is in the overworld,
scoreboard would be set to 1. Nether would be 2. And the End would be 3.
I have tried
execute if entity @a in minecraft:the_nether but that actually changes the coordinate's dimension.
Do you know any way to detect a player's current dimension?