World border

This article is about the customizable border. For the command, see commands/worldborder. For other uses, see Border (disambiguation).
See also: Distance effects
This article needs cleanup to comply with the style guide.
 [discuss]
Please help improve this page. The talk page may contain suggestions.
Reason:
  • (Various) grammatical mistakes make parts of the page difficult to read.
This article would benefit from the addition of more images.
 
Please remove this notice once you have added suitable images to the article.
The specific instructions are: Screenshots of shrinking (red) and expanding (green) world borders
This article is missing information about: exact color (hex code) of still, shrinking, and expanding world border
 
Please expand the article to include this information. Further details may exist on the talk page.
This feature is exclusive to Java Edition.
 
A world border
There is a related tutorial page for this topic!
 

The world border is the horizontal boundary of a dimension.

Features

The world border as seen from the outside using the /tp command.

World borders are square, with faces 29,999,984 blocks away from the world origin of their dimensions by default. They are animated with narrow, diagonal stripes that slowly shift up and to the right from the perspective of the inside.

The world border is tinted depending on if its size is changing and how. By default, when the border is not changing, the stripes are a translucent aqua color. If the border is expanding, the stripes appear green, and if the border is shrinking, they appear red.

The world border appears different depending on graphics settings. On the Fast and Fancy settings, it appears as light and translucent, but with the Improved Transparency option enabled, it appears considerably darker.[1]

The world border does not visually continue below altitude Y=-1024 nor above Y=1024, but it does continue function as a boundary.

Size

The world border is essentially a giant bounding box. By default, its center lies above Y=255.​[more information needed]

With commands, the center and width of the world border can be modified. The world border's physical barrier (as opposed to its appearance) always behaves in full-block increments from its origin. If the world border's width is set to a odd or non-whole number, the physical barrier's coordinates are rounded up to the next integer.

If the player uses an unlinked Nether portal at the world border in the Nether, the resulting portal will not be placed further than the world border in the Overworld, although part of the obsidian frame may generate past it.

Effects

On entities

All entities are unable to move through the world border.

If a dispenser or dropper is placed so that it directly faces the edge of the border, then items, projectiles, TNT, etc. can be fired outside of the edge of the border. Any items fired out of a dispenser float in midair; if an item is dropped from the player inventory, the item falls normally.

If a mob is spawned from a dispenser via a spawn egg, the mob behaves normally. Spiders can climb the world border, and endermen can teleport outside of it and Pillagers can walk through it.

Any players on the outside of the world border (with exception to those in Creative or Spectator mode) take constant damage as long as they are outside the border. The amount of damage depends on the distance to the border, with damage being inflicted when the player is outside an area that is 5 blocks wider than the world border on each side. Players typically cannot interact with blocks or entities outside the world border.

Additionally, while sneaking if they are less than one block outside the world border, some of the effects that occur while sneaking are changed or removed. These are:

  • Being prevented from walking off edges
  • Having movement slowed
  • Decreased eye level and third-person view, character model bending over slightly
  • Shorter hitbox
  • Fainter name tag in multiplayer[verify]
  • Moving through scaffolding: the player instead falls through it as if it were air

If the player was already sneaking before entering this area, their eye level and third-person view remains decreased.

While players themselves cannot move through the world border, even if they manage to go ahead of chunk loading, they can reach the other side of the world border through other means, including:

  • Letting the world border pass them as it is shrinking
  • Throwing an ender pearl through the world border
  • Consuming chorus fruit near the world border and being teleported beyond it
  • Dying and respawning, if the spawn point is outside the world border

Oddly, while standing inside the world border while close to it and looking at it at a negative angle, trying to use item (such as throwing projectiles, eating food, or shooting a bow) results in nothing happening.

Entities cannot spawn naturally outside the world border. They persist without taking damage if they spawned before the world border gets shrunk by a command.

On blocks

Players cannot normally place and destroy blocks, nor interact with objects outside of the world border, as there are no hitboxes. It is possible to place blocks outside of the world border, either by placing the block against one that is inside the world border or by using commands.

Most blocks still function outside the world border, and most redstone contraptions still function as well. Exceptions include falling blocks (such as sand and gravel), which drop as an item, and pistons or hoppers, which simply don't function. Explosions from TNT and other sources also work normally, destroying terrain outside of the border. Light from torches and other sources also remain unaffected.

Liquids flow through the world border, so long as they are placed inside the border.

Liquids can flow through the border and continue flowing until reaching their flow limit. Liquids cannot be placed on the outside of the border.[2] Liquids placed via a dispenser flow as normal. Mixing water and lava with a dispenser results in the flow of each liquid abruptly ending, presumably because the stone, cobblestone, or obsidian that would normally generate does not.

When set to invalid values

The world border size can be changed by manually editing the level.dat file. In any case, there remains a world boundary at 30 million blocks on both the X and Z axes.

  • When set to 0 or a negative number, the entire world is treated as outside the world border, and the border warning overlay appears throughout the world. No blocks can be mined and entities take damage unless they are within the border safe zone.
  • When set to NaN (Not a Number), the entire world is treated as outside the world border, but no border warning appears. No blocks can be mined, even in Creative mode, although entities do not take damage.
  • When set to Infinity or a number greater than 30 million, the border occurs normally.

Commands

Main article: Commands/worldborder

The /worldborder command can modify the size, center, damage and buffer of the world border, and can also make it grow or shrink gradually.

Data values

World data

Java Edition:

  • level.dat
    • [NBT Compound / JSON Object] Data
      • [Double] BorderCenterX: Center of the world border (X-axis).
      • [Double] BorderCenterZ: Center of the world border (Z-axis).
      • [Double] BorderDamagePerBlock: Damage taken per block moved outside the world border,
      • [Double] BorderSafeZone: Distance in blocks of the buffer zone where damage is not taken when outside the world border.
      • [Double] BorderSize: World border diameter.
      • [Double] BorderSizeLerpTarget: The border size after it has been changed. "Lerp" stands for Linear Interpolation, as the border changes its size in a linear fashion.
      • [Long] BorderSizeLerpTime: The time in milliseconds until the border size interpolation reaches the target size.
      • [Double] BorderWarningBlocks: Maximum distance away from the border until the border warning overlay appears on the player's HUD.
      • [Double] BorderWarningTime: Maximum time in seconds a contracting border is away from the player until the border warning overlay appears.

History

Java Edition

Java Edition
1.8April 24, 2014Dinnerbone tweets a previews of the "shimmery" world border textures, which were made by Ryan Holtz.
14w17aAdded the customizable world border.
14w18aPlayers cannot interact with blocks outside the world border anymore.
14w19a"Warning" and "damage" commands added.
A red-colored warning aura is seen when within a certain distance of the world border.
The border in the Nether is now the same size as that of the Overworld.
Traveling to the Nether no longer creates new portals outside the boundary.
14w20aIf the player is stuck outside the world border, they can freely fly/walk around, though they gradually lose hearts. Not possible to freely walk through the border from the inside.
14w26a"Add" command added.
14w29a"Get" command added, which shows the current size of the border.
Command blocks no longer work outside of the border. Unclear if this is a bug or intended.
14w30aHoppers outside of the world border no longer function.
14w31aThe time parameter of the world border size-changing can now be larger.
Only players take damage outside of the world border.
?The world border can be set to 60 million, but is visually and functionally clamped to a value below that.
1.1720w48aThe world border now follows the player vertically.[3]
?The world border no longer follows the player vertically, but is still correctly displayed outside of the world height bounds.
21w13aThe world border's faces are now all identically oriented, resulting in no V or ^ shapes forming at two corners.[4]
21w17aThe world border size is now stored as a double instead of a float.[5]
The max world border size has been shrunk to the value it would always maximally appear at, and cannot be set above that value with commands.
1.21.224w34aProjectiles such as arrows, tridents and fishing bobbers now bounce on the world border if hit.
1.21.925w36aThe world border is now dimension-specific.
This means that each dimension can have its own world border size, position, etc.
1.21.1125w43aThe world border interpolation is now dependent on game ticks instead of real time.
This means the world border will no longer move when the game is paused.
It will also respect any changes made by the /tick command.

Issues

Issues relating to "World border" are maintained on the bug tracker. Issues should be reported and viewed there.

Trivia

  • The reason the default world border is at X/Z ±29,999,984 is due to the fact that Dinnerbone put it 1 chunk (16 blocks) short of the edge so that there isn't a sudden "drop" off the edge of the world.[6]
  • Were a Minecraft world somehow wrapped around into a sphere, the resulting planet has a circumference of 60,000 kilometers or 9,549 kilometers in radius, twice as large as Earth.

Gallery

Screenshots

References

  1. MC-187669
  2. Due to MC-54119, this appeared possible, but it did not actually take effect. The said bug was fixed on 1.18
  3. MC-198864
  4. MC-212736
  5. MC-187664
  6. MC-53390 (comment #155580)

See also

Navigation