detect when mob despawns

Started by CodaZeal on

Topic category: Help with modding (Java Edition)

Last seen on 13:01, 21. Jul 2022
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?

Last seen on 15:21, 16. Oct 2023
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 

Last seen on 13:01, 21. Jul 2022
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.