Topic category: Help with Minecraft modding (Java Edition)
Hi everyone! I'll try to cover as much information as possible to make it clear what I'm trying to do and what kind of help I need.
I'm making a custom client-side mod that would imitate ''madness'' effect, inspired by Salvation Lobotomy mod. There should be briefly-appeared images (jumpscares) and different audio/noises. All of these things will activate randomly during the game. I want to lighten up the fact that I am avoiding anything that depends on server side.
So, what problems I am working on right now?
1. Overlays. I need images to appear randomly during the game process and to hold on for about 2-3 seconds. Rn I was able to code the base structure, but the image doesn't hold for longer than 1 second and the "random" thing depends on player's tick (perhaps I should use something else), because of that the image appears too often.
Also notice: I am adding several images to the game. So in the perfect situation the player should peacfully play and then - boom - jumpscare! An eerie picture which he looks at for 2-3 second. Then 5-6 minutes later - boom - different picture, same scenario. Then another 3 minutes later - suddenly boom - another creepy picture!
2. Sounds. I would greatly appreciate help with this topic too. Ideally there should be two scenarios with sound effects: the first group of sounds will just randomly play while gameplay, the second group of sounds will appear WITH overlays. You see jumpscare - you hear creepy noises. Honestly I am not sure how to manage this.
I've done a huge work collecting photos and ogg. files for this project and I intend to finish it no matter the troubles I face! Would admire your help and any advice you give, thanks in advance!