Stop music block from making sound when deactivated

Started by Jaki on

Topic category: Help with modding (Java Edition)

Last seen on 12:53, 2. Apr 2024
Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Stop music block from making sound when deactivated

I made a block that makes sound when activated with redstone. The sound is about 3 seconds long and looped, the shortest I can make it is 1 second. The problem is that when the block is broken or redstone is deactivated, the sound keeps playing. /stopsound isn't an option because when you have multiple of the block, all of them go silent (unless it has some secret use that I don't know of). Is there a way to make only one block stops it's sound and let the others keep playing? Thanks.