How to detect if entity is looking up/down?

Started by Nintwendo on Sat, 06/12/2021 - 12:10

Topic category: Help with MCreator software

Last seen on 20:00, 27. Jul 2021
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to detect if entity is looking up/down?
Sat, 06/12/2021 - 12:10

So I need to be able to detect if the player is looking up or down. I figured I could use the block for "if entity is facing (north/south/east/west/up/down)", but while it works fpr the four cardinal directions, it doesn't seem to be able to detect if the player is looking straight up or down. Maybe this is because they are still "facing" east even though they are looking down? If that is the case, then what does it even mean to be "facing" up or down, and how can I detect if the player is looking up or down?

Last seen on 10:51, 28. Jul 2021
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You have to check if the …
Sat, 06/12/2021 - 12:25

You have to check if the "entity head pitch" is at a certain degree (like 180° or something).