world
Create a new world, (absolute), position: East/West, up/down, North/South.
world(0, 0, 0);
A world position is the distance in each direction from the world’s origin, which is (0, 0, 0). The distance is measured in blocks.
Read about how positions work in the positions reference.
Parameters
- x: the East (+x) or West (-x) distance from world coordinate 0, in blocks
- y: the up (+y) or down (-y) distance from world coordinate 0, in blocks
- z: the South (+z) or North (-z) distance from world coordinate 0, in blocks
Example
Teleport the player to a new world position that is 10
blocks above the world origin.
player.onChat("jump", function () {
player.teleport(world(0, 10, 0))
})