How to detect if entity is looking up/down?

Started by Nintwendo on

Topic category: Help with MCreator software

Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to detect if entity is looking up/down?

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?

Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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).