Started by
SuperMax64
on
Topic category: Help with Minecraft modding (Java Edition)
when i created a custom liquid block, it turned out in the game that it has absolutely no sound. No splash sounds when the player enters it, no flow sound, not even bubbles when splashing. Also, there is no liquid fog inside the liquid. How can this be fixed? I tried to create liquid in another mod but the problems are the same.
Add sounds in the blocks properties, either import custom ones or use the vanilla water sounds. If youve got that then you need to make a procedure, when entity collides with block. Then just play sound vanilla water splash. If you want the sound to get louder depending on player velocity then use delta movement x y z and use that to get an integer and add it to the sound. For the ambient sound, idk theres probably an option in properties, if not then use a on tick update, make the block tick every 20 ticks that way a sound of 1 second will loop continuously. Use the play sound vanilla water flow sound on tick update. Idk if its actually 1 second but just make the tick the same as the sounds length in ticks, 20 ticks = 1 second. Idk what you mean about the bubbles.