Started by
Regele
on
Topic category: Help with Minecraft modding (Java Edition)
Hello,
So I want my custom sound to play randomly in my custom dimension... how can I do that?
Also I made a custom entity but the ambient sound is WAAAAYYY too often... how can I make it play less often?
Edited by Regele on Wed, 07/15/2020 - 10:55
It sounds like this video can help you.
https://youtu.be/pxE_OTsVq-E
remove the ambient sound from your entity's properties page. create a procedure for the event "On entity tick update". in the procedure do something like IF random(0,1) < 0.01 DO "play sound at ...". 0.01 is average 1 sound per 5 seconds, lowering that number will make the sounds less frequent.
thank you guys!