Posted April 13, 20169 yr Hi guys, So I'm developing an adaptive music player for a school project. I got most of the stuff working but I can't figure out how to stop the vanilla minecraft music. I found a similar project and I suspect they used this method: @SubscribeEvent public void onBackgroundMusic(PlayBackgroundMusicEvent event) { if(SongLoader.enabled) event.setCanceled(false); } But this doesn't work, since PlayBackgroundMusicEvent is "@Deprecated". Do you guys know any other method? Many thanks, Slashpwn
April 13, 20169 yr What version of minecraft are you on? also, if you haven't already, you'll want to add an @SubscribeEvent on whatever function stops the music. - Just because things are the way they are doesn't mean they can't be the way you want them to be. Unless they're aspen trees. You can tell they're aspens 'cause the way they are.
April 13, 20169 yr Author Hey ! Thanks for the response. I'm on minecraft version 1.8 (updated the header). Yeah true, I already have the @SubscribeEvent, just forgot to copy paste it with the other piece of code.
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.