How do you make a custom mob that despawns when the player looks at it

Started by Welshy on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do you make a custom mob that despawns when the player looks at it

I'm trying to make a creature that spawns in caves and despawns when you look at it, does anyone know how to do that