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?
minecraft-commandsminecraft-java-edition
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:The
~ ~ ~
means that theirx
,y
andz
won't be changed, but theiryaw
(left/right) will be set to90
and theirpitch
(up/down) to 0.You will need to put this command in a repeating command block or some other form of clock.