Ambient Noise

Started by TheGreenFax on Tue, 09/08/2020 - 02:55

Topic category: Help with modding (Java Edition)

Last seen on 18:39, 29. Jul 2021
Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Ambient Noise
Tue, 09/08/2020 - 02:55

So, here's the problem. I've created a sound that sounds like wind, and I'm trying to get it to play at a random time. However, I'm not sure how to do this.

Is there a way to get this sound to play at a random time in my dimension with procedures?

 

Thanks.

Last seen on 22:49, 17. Mar 2021
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
On player update tick> if…
Tue, 09/08/2020 - 13:22

On player update tick> if Random (0-1) = 0.01 (this will have it a 1% chance each tick, you might want it even less like 0.001), play sound *sound* at X Y ZNo idea if this will actually work, but it should in theory.

Last seen on 18:39, 29. Jul 2021
Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Doesn't seem to work, but…
Tue, 09/08/2020 - 15:42

Doesn't seem to work, but maybe I'm doing something wrong?

On player update tick

if Random (0,1) = 0.01

do play at x, y, z, level: 1 pitch: 1 sound: CUSTOM:ambientsound