pos
Creates a new relative position: ~East/~West, ~up/~down, ~North/~South.
pos(0, 0, 0);
A relative position is the distance in each direction from the player’s feet.
Read about how positions work in the positions reference.
Parameters
- x: the East (+x) or West (-x) distance from the player, in blocks
- y: the up (+y) or down (-y) distance from world player, in blocks
- z: the South (+z) or North (-z) distance from the player, in blocks
Example
Place a block of diamond above the player’s head.
blocks.place(DIAMOND_BLOCK, pos(0, 2, 0));