Playing A Sound Once A Full Armor Set is Equipped

Started by Hunstagamez on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Playing A Sound Once A Full Armor Set is Equipped
Fri, 11/26/2021 - 07:32 (edited)

Hello,

 

I'm trying to make the HEV FVOX suit from the Half-Life Franchise.

Cut to the chase when I equip the full set it plays repeatedly and rapidly and I'm not very sure how to run the sound just once.

https://imgur.com/a/aEdktTh

 

Edited by Hunstagamez on Fri, 11/26/2021 - 07:32
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Have you tried removing the …
Wed, 12/01/2021 - 00:33

Have you tried removing the "repeat" block?

I assume since its running on player tick, its just reading you have the gear in your inventory, so its just performing the script over and over.

Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think it has something to…
Sat, 08/06/2022 - 11:52

I think it has something to do with your "HasWornHEV" variable...

You're checking a local value, but setting a global value which would mean those are 2 separate variables.