How can I make a Player only look in one direction?
//ads -- adsterra.com -- native banner
?>
I am making a map for Minecraft and I want to make the Player only be able to face a certain wall.
Is there any way that I could do that?
Best Answer
You can achieve this with the /tp repeating. For example:
/tp @p ~ ~ ~ 90 0
The ~ ~ ~ means that their x, y and z won't be changed, but their yaw (left/right) will be set to 90 and their pitch (up/down) to 0.
You will need to put this command in a repeating command block or some other form of clock.
Pictures about "How can I make a Player only look in one direction?"



How do you test a player for a specific direction?
2. Type the CommandHow do you test a player in a certain area bedrock?
Firstly, find your position on the map. Press F3 and jot down your X, Y & Z coordinates located on the left. Then type into the chat bar /tp [target player] <x> <y> <z> [<y-rot> <x-rot>] replacing <x> , <y> and <z> with your coordinates you wrote down. Then, change <y-rot> and <x-rot> with the angles you want.One Direction recording 'FOUR' the album #10YearsofOneDirection
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Kaique Rocha, Yogendra Singh, Artem Podrez, Yan Krukov
