How do I make an entity disappear after the player spots it?

Started by MiTerSkyArk on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make an entity disappear after the player spots it?

Hello,

I'm making a scary mod and I need to figure out how to make an entity spawn near the player, then disappear shortly after the player sees it. How could I do this?