Playing a sound when entity despawns

Started by CasualPengeo on

Topic category: Help with modding (Java Edition)

Last seen on 17:09, 26. Aug 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Playing a sound when entity despawns

I need help playing a sound when my entity despawns

Last seen on 00:31, 28. Aug 2024
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think there might be a…
Fri, 07/26/2024 - 19:17

I think there might be a procedure/global trigger that runs when an entity despawns. You could just check if the entity is your entity, and if it is, then play the sound.

Last seen on 17:09, 26. Aug 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
okay, I understand the…
Sun, 07/28/2024 - 22:07

okay, I understand the entity check and play sound but I'm confused on the global trigger that runs when entity despawns. I'm new to this program so photos would be really helpfull.