How do I play sound when the block is being broken?

Started by parkurnic on

Topic category: Help with modding (Java Edition)

Last seen on 03:30, 17. Jun 2023
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I play sound when the block is being broken?

I need a sound to be played when the block is being broken, and the same sound to be stopped when player stops breaking block/block got broken. Tho I don't need it to be the breaking sound.

Last seen on 17:30, 27. Jun 2023
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
idk, try custom sound set …
Mon, 06/12/2023 - 14:50

idk, try custom sound set  in block properties and procedure that'll stop sound when (getblock at xyz) is destroyed?

Last seen on 17:30, 27. Jun 2023
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
here you go
Mon, 06/12/2023 - 15:33

here you go2

2

Last seen on 03:30, 17. Jun 2023
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh. Thank you alot. I also…
Tue, 06/13/2023 - 05:21

Oh. Thank you alot. I also want to ask a question that might not be related to topic, but how can you edit properties of vanilla blocks? I'm making a breakable bedrock mod.

Last seen on 17:30, 27. Jun 2023
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hm, i'd say it's better to…
Tue, 06/13/2023 - 13:28

Hm, i'd say it's better to just pick a texture or bedrock and use in new one block. 
And edit properties in there. 

If you want to make it non-breakable for creatures (as creepers), then use procedures or Sisser mod. 

Last seen on 04:08, 10. May 2024
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could just use a custom…
Tue, 06/13/2023 - 14:47

You could just use a custom sound set for the block in properties, and put your custom sound as the 'hit sound'.

Last seen on 17:30, 27. Jun 2023
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Isalick34, then this sounds…
Tue, 06/13/2023 - 20:08

Isalick34, then this sounds will repeat on every click, making it play x times at the same time.