The bug
Every dimension's world border is operating independently. Changing the world border in one dimension doesn't effect the other dimensions, and in the case of the Nether and End, won't visually change location even though it has.
How to reproduce
Go into creative mode and do this command in the overworld:
/worldborder set 1000
Go to the Nether and
/tp
to the world border there:/tp @s 0 50 500
Do this command while in the Nether:
/worldborder set 10
It looks as though the world border hasn't moved at all.
/worldborder get
and see that it says the border is 10 blocks, even though you can see otherwise. It looks like the original 1000-block length border.
Stay within the bounds of the world border you see and put yourself in survival. You will die. The world border you saw wasn't the world border, it really did move to 10 blocks wide.
Go back into creative mode and re-enter the nether, this time teleport to the world border's centre.
/tp @s 0 50 0
Go into survival and walk around. The actual world border is invisible, but it's still at 10 blocks wide. You'll experience an invisible force hindering your walk.
Return to the overworld and do the
/worldborder get
command again. Now it tells you it's 1000 blocks, which it is... for that dimension.Repeat for the End, but use a number other than 10 to ensure that the Nether world border and the End world border are operating separately from each other as well as the overworld's.
If you do the/worldborder get
command in all three dimensions, you will get three different answers... and the Nether and End's world borders will not be where they look like they are. They will look like they have the same border as the overworld.Repeat the process, changing world border centres instead of size. Changing the worldborder's centre in the Nether won't be the coordinates you put in, they'll be divided by 8. All three dimensions can have different world border centres as they are all operating independently.
Linked issues
Comments 16
If you change the worlborder from the nether with the command
/execute in minecraft:overworld run worldborder set 10
It works fine
I can confirm it's still the case in 20w12a as well.
BisUmTo your command does put the border visuals in the nether to that area, but that also moves the worldborder in the overworld, which is not always what people want. Considering the coordinate system in the nether, one might want to limit the worldborder size in the nether to 1/8th the size of the overworld. I had one of my friends die on my private server due to also being able to walk over the worldborder due to there being no visual clue, which is how this bug was brought to my attention in the first place.
Basically the problem afaik is that no matter what dimension you're in, the visuals of the worldborder seem to match those of the overworld, but the actual worldborder can be set per dimension individually, which means there can be a mismatch between the visuals and the actual deadly area. If the overworld has the smallest worldborder, it'll only be a minor issue. If you have it the other way round however (like I did until I learnt about this bug and will again if this bug gets fixed), players have no idea that they're past the worldborder and will start taking damage, seemingly for no reason.
Potential code analysis in the duplicate MC-213713.
So, i'm not sure if this is related. My world border in the overworld, nether and end work, they are correct to the size i want it to be and the world border appears. However, the world border in my custom dimension, it works but does not have a visual appearance. Its completely invisible and the only way we notice we are going past the world border is the damage taken.
Still affects 1.14 full release