how do i make my entity despawn when the player looks at it?

Started by Kastle on

Topic category: Help with modding (Java Edition)

Last seen on 00:55, 5. Sep 2024
Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how do i make my entity despawn when the player looks at it?

MCreator 2024.2

 

Hello, I'm making a horror mod, and I would like to make my custom entity despawn when the player looks directly at it, I know it's possible to do this, but I have no idea how to do it, could someone explain to me how I do this with procedures??

Last seen on 17:26, 10. Oct 2024
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you can simply apply an…
Sun, 09/22/2024 - 11:55

you can simply apply an invisibility effect on it if the vector of the player's gaze along X and Z meets it