detect when mob despawns

Started by CodaZeal on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
detect when mob despawns

Is there a way to run a procedure when a mob is about to despawn?

If it is not possible to detect when the mob despawns without the use of a custom despawning procedure, what would be the most lag friendly way to implement it?

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can try using global…
Sat, 07/09/2022 - 13:57

You can try using global trigger: entity leaves the world 

Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There is no trigger with…
Mon, 07/11/2022 - 13:46

There is no trigger with that name.