Playing a sound when entity despawns

Started by CasualPengeo on

Topic category: Help with modding (Java Edition)

Last seen on 00:11, 14. Sep 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 18:42, 16. Sep 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 00:11, 14. Sep 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.

Last seen on 09:06, 16. Sep 2024
Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you make a procedure,…
Fri, 09/13/2024 - 08:52

you make a procedure, despawn entity, and wait 20 ticks=1 second, and play sound. and its ready. But you make a entity with only 1 heart. when this entity die, or hurt, your sound plays. you will make a screamer sound? right or not?