Make block update trigger once

Started by ChloeGirlGamer on

Topic category: Help with modding (Java Edition)

Last seen on 20:37, 24. Oct 2021
Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make block update trigger once

Hello again, I had figured out the redstone thing, however now i have a new problem.

I am working on a siren sort of thing, and I am having a problem with making the sound, i am interested in making the siren play only once per redstone signal, this works if i don't use the custom block, because i am sending updates per block tick, which seems to not be working, i was wondering, if anyone maybe knows how i can do this?

 

This is the block for the siren:

https://i.imgur.com/ZH7Ux0d.png

 

when the sound effect plays, it seems to play multiple times, where it seems to spam it, basically i'm wondering, if there is anyway to fix this at all, or make the sound just play once somehow.

hope someone knows how to do this, thank you

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
with NBT Logic Tags
Thu, 10/21/2021 - 21:46

with NBT Logic Tags

Last seen on 20:37, 24. Oct 2021
Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
could you give more detail?…
Thu, 10/21/2021 - 22:19

could you give more detail? i'm doing it, and i made it echo the result, but it just keeps saying "False"

false

can you give me more info?

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if get Global:Storming =…
Thu, 10/21/2021 - 22:42

if get Global:Storming = true AND Get NBT logic tag sus of block at x y z = false

do play sound

     set NBT Logic Tag sus to True