Posted May 30, 201411 yr What sound tutorial for 1.7.2 have you found best? Long time Bukkit & Forge Programmer Happy to try and help
May 30, 201411 yr I've found the vanilla json to be most useful: YourMod/eclipse/assets/sounds.json Pretty much everything you need is right there, and you then you just play the sound with player.playSound, world.playSoundAtEntity, etc. The parameters for the sound-playing methods are all pretty well documented. http://i.imgur.com/NdrFdld.png[/img]
May 30, 201411 yr Author Cool. I'll follow that. I've used build in sounds before, so should be simple. In the tutorials I looked at they were based upon previous versions and several people had implimented sound handlers. They didn't appear to be registering the handlers anywhere, so it looked just like simple classes. Sometimes hard to tell when they are just describing the changes from 1.6.4 versus 1.7.2 and not how to actually go from scratch. Long time Bukkit & Forge Programmer Happy to try and help
May 30, 201411 yr In the tutorials I looked at they were based upon previous versions and several people had implimented sound handlers. SoundHandlers are a thing of the past - they used to be used because sounds needed to be added to the sound pool during startup, but no longer. The SoundLoadedEvent really doesn't have a use anymore, as far as I can tell. Personally, however, I still create a "Sounds" class filled with public static Strings for my sound file names, for ease of reference. Looks a bit like this: public class Sounds { // BLOCK SOUNDS public static final String BREAK_JAR = ModInfo.ID + ":ceramic"; public static final String HIT_PEG = ModInfo.ID + ":hit_peg"; // etc. http://i.imgur.com/NdrFdld.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.