How do I make a condition of " 'player' is looking at 'event/target entity' "?

Started by FkSw FREK on

Topic category: Help with modding (Java Edition)

Last seen on 15:24, 16. Mar 2022
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make a condition of " 'player' is looking at 'event/target entity' "?

I'm trying to make a certain event happen if a player looks at an entity, similar to how looking at an enderman angers it. How do I go about that? If I can't, how do I code it?

Last seen on 15:24, 16. Mar 2022
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is it possible to do what I…
Sat, 01/30/2021 - 01:19

Is it possible to do what I'm trying to do with the latest snapshot?

Last seen on 15:24, 16. Mar 2022
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Still wondering how to do…
Tue, 11/02/2021 - 09:06

Still wondering how to do this even though 2021.2 is out.