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

Started by FkSw FREK on Mon, 01/25/2021 - 03:41

Topic category: Help with modding (Java Edition)

Last seen on 05:12, 19. Feb 2021
Joined Jun 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do I make a condition of " 'player' is looking at 'event/target entity' "?
Mon, 01/25/2021 - 03:41

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 05:12, 19. Feb 2021
Joined Jun 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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?