[NOT SOLVED] Mob detects when player is looking at them

Started by Hurricane_FNaF on

Topic category: Help with modding (Java Edition)

Last seen on 20:58, 20. Apr 2024
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[NOT SOLVED] Mob detects when player is looking at them
Fri, 02/23/2024 - 22:35 (edited)

I want to have a mob detect wether or not a player is looking at them, sort of like an enderman, how is that done?

Edited by Hurricane_FNaF on Fri, 02/23/2024 - 22:35
Last seen on 03:15, 26. Apr 2024
Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
on player tick update if…
Sun, 02/18/2024 - 01:22

on player tick update

if entity is within x y z (raytrace distance)

then make that entity do what you want

Last seen on 20:58, 20. Apr 2024
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How exactly do i do that?
Wed, 02/21/2024 - 22:37

How exactly do i do that?