Hell’s going on guys dirty work see here and welcome back to another minecraft morning 1.12 point two tutorial in this tutorial we’re going to be going over sounds so let’s get started firstly we’re going to actually have the sound in our entity class which we created in The last video so we’re gonna remove these and that should be okay so now we’re going to just change this to handler and now we’re gonna create this class so in handlers you want to create a new class and call it sounds and make sure it’s sounds and not sound because Minecraft Unni has sound so it would be a bit weird and we’re going to do public static sound event and we’re going to call this test underscore ambient and then you want to copy this you want to paste it twice and first one you’re going to rename Cuba hurt and the second One we’re going to change to death and then we’re going to import sound event from net dot minecraft util dot sound event finish then we’re going to create a method which is public static void register sounds in here we’re gonna put a test underscore ambient equals register sound Not register sounds we’re just a sound and we’re going to put entity dot test dot text underscore ambient and really oh yeah we need to create this method so we need to go down and go private static sound event register sound and here we’re gonna put string name open this up And put resource location location equals new resource location reference dot not ID dot mod ID plus name then we need sound event of event equals a new sound event of location now we need event dot the set registry name to name and forge board registries dot sound events don’t Register event finally you need to return event just like that and then you can copy this line just here and you can paste it twice oh and I para forgot to copy the T first one Hertz second one hurt third one death and just change this to Hertz and change this to It death and give that save now not entity test we just need to import this control shift oh because I save and that error is gone now we just need to cool this in our registry handler so just pop into registry handler and go down to pre In it and at the end we’re going to do sounds handler register sounds just like that now you actually need to create the sound and have the sounds Jason so what you want to do is you want to go ahead and go to assets your mod ID And you need to create a new package called sounds entity dot txt or your your mod entity or whatever sound you’re going to have as your thing then you need to create a new untitled txt file and in here you need to open a bracket tab in open some speech marks entity dot Test dot test underscore ambient colon and then put another bracket tab in and we’re gonna put category hold on open to more speech marks entertain dot tests and categories entity and then a subtitle subtitle : to speech marks in here we’re going to put entity dot test Dot test and report and be in and then we need to do sounds open a square bracket and open a triangle bracket like that then tab after that so that we can purge name in speech marks : and here we’re gonna put tutorial mod : entity for / test will slash test under For and the end and then put comma open to speech marks stream : true come out of this and go like that and we could probably put this angle onto one line to make it look better and so I’m just going to push this up just like that and Then you can go back to here and end it like that just put that at the end now what you can do is you can copy this yeah but first we’re gonna save it as a Jason so you can get some formatting so source main resources assets tutorial mod and Just keep it in this tutorial mod package and you need to call it sounds dot Jason okay okay close it and reopen it then you have this so we’re going to copy this paste paste you need to put a comma and a comma this one needs to be Hertz this One needs to be death and change just to death change this to Def change this to But what I don’t what did I do well I somehow got rid of all that it changed this to hurt and change this one to hurt and that should be it now inside your sounds got entity dot test you need to have your sound and you Need to make sure they are dot o GG now for example if you have an mp3 what you can do is you can google mp3 – oh GG if you google that you should find this one so audio got online will just convert or this one I used this one personally but You can try this one this one’s okay i-i’ve been more successful with this one though and you basically you just browse the file and you can convert it to an OGG so yeah and you need to name them I’ll see whatever name is here so test underscore ambient and it puts the OP Dot ODG on the end but automatically so now let’s run the game and we will check that’s it works so yeah see you guys in the game alright so guys I just got in the game and it works it works but what I did is slightly wrong so in sounds Handler I accidentally put a plus here instead of a comma and that didn’t work so it has to be a comma and not plus so yeah just 5 wrench a silly little mistake of mine but if you hear you And they go you see all the sounds work yeah so if you guys didn’t enjoy this video please do be sure to smash your face into that like button and subscribe if you really enjoyed please do be sure to share it and yeah I will see you guys In the next video which will be a furnace which has two inputs and one output as requested by walrus gamer so yeah I will see you guys then good bye Video Information
This video, titled ‘Minecraft Modding Tutorial 1.12.2 – Episode 22 – Sounds’, was uploaded by TurtyWurty on 2019-04-16 12:08:20. It has garnered 1092 views and 19 likes. The duration of the video is 00:12:42 or 762 seconds.
Hey guys, it’s TurtyWurty, in this tutorial we cover how to add sounds. It is a very simple thing to do yet not many people know how to do it. I have listed a few MP3 to OGG converters below as well as my discord server which you can join if you have any issues or need help. As well as that I have put the sounds.json file below as it is a pain to type out. I hope you guys enjoy!
GitHub: https://github.com/DaRealTurtyWurty/Tutorial-Mod 1: https://convertio.co/mp3-ogg/ 2: https://audio.online-convert.com/convert-to-ogg 3: https://www.onlineconverter.com/mp3-to-ogg
sounds.json: https://hastebin.com/bokadefedi.json My Discord Server: https://discord.gg/d5cGhKQ