How to make a potion effect that plays random sounds

Started by Birb_ on Tue, 11/22/2022 - 00:22

Topic category: Help with modding (Java Edition)

Last seen on 01:46, 24. Nov 2022
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to make a potion effect that plays random sounds
Tue, 11/22/2022 - 00:22

So the premise here is pretty simple: I'm trying to make an "insanity" potion effect where every tick there is a chance that a random sound is played. Among these sounds are: mob noises, footsteps and cave sounds. The only problem here is I have no idea how to do this. Some guidance would be much appreciated!