Content: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Background: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Pattern: Blank Waves Notes Sharp Wood Rockface Leather Honey Vertical Triangles
Welcome to TerraFirmaCraft Forums

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

  • Announcements

    • Dries007

      ATTENTION Forum Database Breach   03/04/2019

      There has been a breach of our database. Please make sure you change your password (use a password manager, like Lastpass).
      If you used this password anywhere else, change that too! The passwords themselves are stored hashed, but may old accounts still had old, insecure (by today's standards) hashes from back when they where created. This means they can be "cracked" more easily. Other leaked information includes: email, IP, account name.
      I'm trying my best to find out more and keep everyone up to date. Discord (http://invite.gg/TerraFirmaCraft) is the best option for up to date news and questions. I'm sorry for this, but the damage has been done. All I can do is try to make sure it doesn't happen again.
    • Claycorp

      This forum is now READ ONLY!   01/20/2020

      As of this post and forever into the future this forum has been put into READ ONLY MODE. There will be no new posts! A replacement is coming SoonTM . If you wish to stay up-to-date on whats going on or post your content. Please use the Discord or Sub-Reddit until the new forums are running.

      Any questions or comments can be directed to Claycorp on either platform.
Dulakaba

seeking modding info / tutorials on adding custom sound to 1.7.10

5 posts in this topic

Hi Guys,

I Have recently taken the plunge into the world of modding for 1.7.10. I am DEFINITELY in over my head here. I currently have eclipse working and am making progress, however I cannot for the life of me find a tutorial that details adding custom sounds to 1.7.10.

I have found lots of info on 1.6.4 and 1.8.9, but they differ from 1.7.10. I have found lots of info on the JSON file to organize the sounds and commands to play  the sound files once they have been added, but I can't find the info on how to register the sounds via a registration method. I know I must add some code to my main mod file and create a class file where I add the actual sound files to a sound pool, but every tutorial I find starts out with "find a tutorial on google about how to register your sound files.." then goes on to talk about calling the sound from the json and assets folder. None of them tell me the actual methods to add them. Currently my only hope is a tutorial in German that I hope might get me there.

My mod in process is the TFCshamanism mod, it seeks to add shamanistic practices to the early game.

Here is what i am trying to accomplish. among the items I am creating I have a rattle and a drum. on right click the rattle plays a custom rattle sound and activates a potion effect. The drum if right clicked with a drumstick plays a drum sound and activates a potion effect. I have my right click effects and can call a vanilla minecraft sound (like the bass sound for a note block or the enderman stare, however to get my custom sound I have to add them.

I know how to write a JSON and I know how to call the soundevent, what I don't know is how to add the sound to the sound pool. @subscribeForgeEvent is deprecated ( a 1.6.4 method) and it seems that the methods used in 1.8.9 differ from those sed in 1.7.10

My biggest problem is that I am an artist not a coder, thus I can easily make all the assets but am having a devil of a time coding them..

0

Share this post


Link to post
Share on other sites

Have solved my problem, in the end it all came down to a misplaced comma...

0

Share this post


Link to post
Share on other sites

Prior to this the last time I did any coding was learning BASIC on an Apple 2E in 1982. To my surprise I have been able to code quite a bit after just a week. Almost finished with my mod.

0

Share this post


Link to post
Share on other sites

Then you have aged well. In my experience a lot of people 50+ years of age have a hard time learning to use technology let alone code it. Though to be fair for a year it was my job to help those individuals so my experience is not necessarily representative.  

0

Share this post


Link to post
Share on other sites