Hi, I'm playing in version 1.15.2 and wanted to ask how a command block can be used to query whether the player is in the end or in the upper world. I have a boss bar and I want it to be hidden in the overworld and shown in the end. How would that be?
Execute if entity @p [nbt = {Dimension: "minecraft: ###"}]