How can I do a command depending on where a player is facing?
//ads -- adsterra.com -- native banner
?>
I want to make things that go where a player is facing, for example a PrimedTnt move the direction a player is facing.
Best Answer
you can use
@p[rx=#,rxm=#]
to test someone's rotation
Pictures about "How can I do a command depending on where a player is facing?"



How do you test a player for a specific direction?
2. Type the CommandHow do you test a player in Minecraft in a certain area?
The center of interest of this post is another feature of Minecraft, and that is the use of commands in the game....How to select targets with Minecraft commands:TargetDescription@pTo target the nearest Player@rTo target a random Player@sTo target the person executing the command (yourself)2 more rowsMinecraft Player Facing Command
More answers regarding how can I do a command depending on where a player is facing?
Answer 2
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Vlada Karpovich, cottonbro, Vlada Karpovich, cottonbro
