How to make a potion effect that plays random sounds

Started by Birb_ on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a potion effect that plays random sounds

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!