Despawning custom entity when leaving world

Started by Troscalon on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Despawning custom entity when leaving world

I am making a small mod and i am trying to make when the player leaves the game, my custom NPC will despawn.

Any help?

 

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can try to do it through…
Wed, 02/07/2024 - 17:30
You can try to do it through the if and check the number of players in the world