Posted September 6, 201312 yr Hi everyone. I want to make a Radio item that plays a set music when i use it but stops playing it when i release the Right mouse button. Anyway,i'm able to make the item,but how make it play the music ONLY UNTIL I HOLD the Right Mouse Button? Any help will be appreciated
September 6, 201312 yr if(!Minecraft.getMinecraft().sndManager.sndSystem.playing("your_music") && Mouse.isButtonDown(1)) { Minecraft.getMinecraft().sndManager.sndSystem.play("your_music"); }
September 6, 201312 yr Author Must my music be in Sounds (In the assets folder group) ? In ' your_music ' shall i use the "musicname.ogg" name or "musicname" ?
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.