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??