Is there a way to force a player into looking in a certain direction?

Started by mslaffafadsasas on

Topic category: Help with modding (Java Edition)

Last seen on 12:39, 19. Sep 2023
Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is there a way to force a player into looking in a certain direction?

Set rotation blocks dont work on the player(visually at least + they dont alter the rotation in the f3 menu) so how to force a player into looking in a certain direction what i mean by that is physically altering the rotation values. Normal code will be appreciated as an answer but if you know how to do in blocks please send a screenshot or just say it very clearly.

Last seen on 18:38, 29. Nov 2023
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Even if you're not able to…
Sun, 09/24/2023 - 16:52

Even if you're not able to alter rotation using the code blocks, (which is weird, I'm pretty sure that should work), but I know for a fact you can manually alter player yaw and rotation using commands. If the codeblocks aren't working for this, try executing commands that set the player's rotation to the correct direction instead.