Hello, How do I get the direction the player looks at, and how do I use it? I want to teleport the player 2 blocks in that direction. Thanks.
I don't think it works but have you tried adding the players direction vector twice to the current position?
PHP: $v = $player->getDirectionVector();$player->teleport($player->add($v->x * 2, $v->y * 2, $x->z * 2));