Started by
LadyMoo
on
Topic category: Help with Minecraft modding (Java Edition)
Thanks for taking the time to read my post, I need guidance - as I have been at it for a week - with getting a motor sound to play while I'm riding my airship in the air! Sounds simple enough, I've tried-- Timers (crash my game), Key bindings (only plays sound while on the ground...oof...) Piles of suggested code with checks and logic loops, (if the sound does play it plays like 20 copies of the same sound... double oof...) The key bindings might work if I could get the sound to loop but not play multiple copies at once, I just cant figure out the code for that.
Just use the "step sound" inside the entitys visual and sound settings.
Step sound doesn't work right when the mount is in the air, it stops playing! Step sound only works on the ground and not when the entity is in the air unfortunately, not good for a motor sound. Also the step sound creates a problem playing many copies of itself over and over. :(
Use the same sound for step sound and living sound. Do not fade out the sounds. This is how I make my flying mounts "flying sound".
I was trying to get the sound to happen only while it was being ridden or even just moving. I didn't really want a motor running constantly. I really thought key binds would be the ticket, but its playing to many at once.