How can I create a custom border using the same material as the world boundary?
When you reach the edge of a world at around X/Z 29,999,984, you encounter a barrier that can only be passed through teleportation.
I would like to use them as a barrier around a PVP arena to keep all the players from wandering too far. However, it doesn't seem to be a normal block like barrier blocks are. The minecraft wiki page on the world boundary doesn't mention them having a block ID or really any other way to move and control them.
I've also tried pressing F3 to see if that would reveal what the boundary's ID is, but it just shows the block behind it.
So, is there any way to move the world boundary, or use the same material as the boundary with /fill
and other commands?
Pretty easy:
/worldborder
You can set the diameter by /worldborder set <distance>
. For example /worldborder set 5
results in this (a square of 5x5 blocks):
Moving the border is also possible by using /worldborder center <x> <z>
, which will put the border around these coordinates.
The wiki does technically direct you there, it's just not very apparent. It says:
The boundary of the world has several "layers". The first layer is the world border, which lies at X/Z ±29,999,984 by default.
This has a link to the customisable world border, which you can modify with the /worldborder
command (archive).