Posted July 2, 201312 yr before 1.6.1 I've done the following to use a custom sound: public class ChocoCraftEventClient extends ChocoCraftEventCommon { @ForgeSubscribe public void onSound(SoundLoadEvent event) { try { event.manager.soundPoolSounds.addSound("choco_kweh.ogg", ModChocoCraft.class.getResource(Constants.CHOCOBO_SOUND_FOLDER + "/choco_kweh.ogg")); } catch (Exception e) { System.err.println("Failed to register one or more sounds."); } } } this is not working anymore, I now can only add the sound name with addSound. How do I connect the sound file with the name? running minecraft on Mac OS X - Sierra --- creating code since 1986 ... --- मेरा दिल भारतवासी है! http://www.arno-saxena.de/pictures/chococraft/banner_signature.png[/img]
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.