detect when mob despawns

Started by CodaZeal on Fri, 07/08/2022 - 16:19

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:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
detect when mob despawns
Fri, 07/08/2022 - 16:19

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 17:05, 2. Oct 2022
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
There is no trigger with…
Mon, 07/11/2022 - 13:46

There is no trigger with that name.