Compatibility
Minecraft: Java Edition
Platforms
Tags
Creators
Details
Wrap Around World
Seamlessly wrap players to the opposite side of a configurable boundary ā no mods, no plugins, just a datapack.
Overview
Wrap Around World adds a fully configurable fake border to your world. When a player crosses the boundary on any axis, they are instantly teleported to the opposite side ā creating a wrap-around, toroidal world effect similar to classic arcade games, or a globe earth.
The boundary size is adjustable at any time with a single command, and the effect is completely invisible to the player aside from the actionbar notification.
Features
- š Wrap-around teleportation ā crossing
+X,-X,+Z, or-Zsends you to the opposite side - š Fully configurable boundary ā change the border size live with one command, no reload required
- š¾ Persistent config ā border size survives world reloads
- ā” Lightweight ā a single scoreboard check per player per tick, nothing more
- š§± No mods required ā pure vanilla datapack, compatible with any server
Installation
- Download the
.zipfile - Place it in your world's
datapacks/folder:
saves/<your-world>/datapacks/wbtp_datapack.zip
- Run
/reloadin-game, or load into the world - You should see the confirmation message in chat
Note: The datapack must remain as a
.zipā do not extract it.
Usage
Check the current border size
/function wbtp:set_border
Prints the current boundary distance and the command to change it.
Set a custom border size
/scoreboard players set #border wbtp.config <size>
Examples:
| Command | Effect |
|---|---|
/scoreboard players set #border wbtp.config 3500 |
Default ā 7000Ć7000 block play area |
/scoreboard players set #border wbtp.config 1000 |
Compact ā 2000Ć2000 block play area |
/scoreboard players set #border wbtp.config 10000 |
Large ā 20000Ć20000 block play area |
The change takes effect immediately ā no reload needed.
How It Works
Every tick, each player's X and Z coordinates are read into scoreboards and compared against the configured #border value. If a player meets or exceeds the threshold in any direction, they are teleported to (border - 10) on the opposite side, landing safely 10 blocks inside the boundary to prevent a re-trigger loop.
Teleportation uses Minecraft's function macro system ($tp) introduced in 1.20.2, which is the correct modern approach for coordinate-based teleportation since direct NBT position writes were removed in 1.20.5.
Compatibility
| Version | Status |
|---|---|
| 1.21.1 | ā Fully supported |
| 1.20.5 ā 1.20.6 | ā Should work (untested) |
| 1.20.2 ā 1.20.4 | ā ļø Requires macro support ā untested |
| Below 1.20.2 | ā Not supported |
Known Limitations
- Coordinates are stored as integers ā sub-block precision is not preserved on teleport. Players land at whole-block coordinates.
- The boundary applies to all dimensions (Overworld, Nether, End). If you only want it in the Overworld, this would require a small modification.
- The Minecraft world border and this datapack's fake border are independent ā this does not replace or interact with
/worldborder.
License
This datapack is free to use on any server, in any modpack, or as a base for your own projects. Credit is appreciated but not required.


