While your command is functional do take note that the x_rotation tests for where the player is looking up and down (not left to right). If you want to test for where the player is looking side to side the y_rotation selector is required.
- waHt_iS
- Registered Member
-
Member for 5 years, 3 months, and 7 days
Last active Mon, Jun, 15 2020 00:37:56
- 0 Followers
- 4 Total Posts
- 0 Thanks
- To post a comment, please login.
-
Jan 12, 2019bbnumber2 posted a message on How do you detect if a player is looking between 2 directions?Posted in: Commands, Command Blocks and Functions
-
1
artemisgalt posted a message on How do you teleport a player relative to themselves using command blocks in 1.13?Posted in: Commands, Command Blocks and FunctionsNo problem!
-
1
artemisgalt posted a message on How do you teleport a player relative to themselves using command blocks in 1.13?Posted in: Commands, Command Blocks and FunctionsBasically, you want the command block to execute the teleport command as if it was the player so for that, you'd use /execute:
execute positioned as <username> run teleport <username> ~ ~4 ~
- To post a comment, please login.
1