Ambient Noise

Started by TheGreenFax on

Topic category: Help with modding (Java Edition)

Last seen on 17:20, 3. Mar 2024
Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ambient Noise

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:
  • 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 17:20, 3. Mar 2024
Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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

Last seen on 04:20, 11. Apr 2024
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It should, you just have to…
Tue, 09/08/2020 - 16:15

It should, you just have to have some luck and patience 

Last seen on 07:58, 16. Apr 2024
Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
add it as your dimension's…
Wed, 08/30/2023 - 21:34

add it as your dimension's biome's ambient noise. they added that in a new update.

Last seen on 21:45, 9. Mar 2024
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
On player tick update. With…
Thu, 08/31/2023 - 03:52

On player tick update. With the random number like TheReallyFatChicken suggested. do play at x, y, z, level: 1 pitch: 1 sound: CUSTOM:ambientsound. But switch the x,y,z's to Entity's x,y,z's position