Oh listen to these sweet sounds and let’s add custom sounds to Minecraft oh right we finish this back in Taylor once more and in this tutorial we’re going to be talking about how you can add sounds to Minecraft this is a fairly requested updated topic basically Because there are a few tiny changes in 119 3-4 I didn’t find them to be too challenging but regardless we’re just gonna add some sounds including a custom sound type so that is basically you know the hitting sound the breaking sound the walking sound and the placing sound for A particular block so we’re gonna do all that in this tutorial first of all in the tutorial more package we’re gonna right click new a package called sound in there we want to make a new Java class called mod sounds and a mod sounds class in this case has a deferred Register again so there’s going to be a public static final deferred register right here just tap to autocomplete of a type sound event from net Minecraft sound there you go sound under underscore events equal to a deferred register dot create Forge Registries dot sound events comma tutorial mod done mod ID here you go and weather is a deferred register there of course is a public static void register method with an eye event bus or event bus as a parameter and then we’re just going to call sound events that register passing in the event bus right here and so that we Don’t forget it we’re going to call the register method in our tutorial mode class we’re just going to go right here mod sounds dot register passing in the mod event bus right here and then we should be good to go the register sound events we’re actually going to make a Helper method right here so this is going to be a private static registry object of type sound event there you go and this is going to be called register sound event and the only thing that this needs is a string parameter called name and here we’re going to make a resource Location or ID that’s fine and I’m going to call make a new resource location of course passing in tutorial mod.mod ID and then just the name parameter right here and we’re going to return sound events so this is the Deferred register polling the register method passing in First of all the name right so this is once again the name parameter right here and then the second parameter is going to be a supplier of a new sound event now before you could just do new sound event right here but that no longer works now you just gotta do a sound Event dot create variable range that’s exactly right and then we can just pass in the ID that we’ve created right here and there you go that is pretty much all that we need to do for registering the sound now when it comes to the sounds That we want to have we are going to have one cool sound that’s going to be played when you right click the animated block and then we’re also going to have you know the break sound and all of the Walk sounds and all the things like that So first of all a public static final registry object of type sound event is going to be the cool underscore sound because I didn’t have any other name it’s going to registering a sound event and we’re going to call this the cool underscore sound there you go and what We can then do is just duplicate this once and then just call this the animated underscore block underscore break and be sure to change the name right here otherwise you’re gonna run into some shoes this is the block break and then we can duplicate this three More times as this is going to be the wall and then of course changing the name right here as well that’s quite important this is going to be the place this is going to be the place and then this is going to be the hit and this is Going to be the hit as well phenomenal that is going to be the four sounds that we need in this case and then also the cool sound now the four sounds right here have to be bundled in together into a public static final Forge sound type Org sound type there you go and that is basically the collected sounds of a block so this is the animated underscore block underscore sounds and this is equal to a new four sound type the first two float parameters as you can see it’s just the volume and the pitch and then We want to do mod sounds dot this is the break sound first and then what sounds dot this is going to be the walk sound next and then we have the mod sound starch lace sound this is a correct mod sounds dot dot hit and then the last one Is more sounds that walk again and to take a look at this we can go into this by pressing the middle Mouse button and you can see the first one is the break sound in and then we got sub sound play sound we got the hit sound and then the Full sound in our case we just doubled up the walk sound so that the walk sound and the force on are the same if you want to change that then you can of course do that as well right now our sounds are registered however you might Ask well wait a sec we didn’t even add any sounds how would those sounds you know be even there it’s like okay that is actually a very good point because they’re not right there yet but you have to add something in our assets folder so in the tutorial mode folder the first Thing we want to do is we want to create a new file instead of the tutorial mode assets folder and that’s going to be the sounds that are Json this is extremely important this is a very interesting Json file and the way that it works is I’m going to write out one and I’m going to copy all the rest because they’re basically always going to be the same this is going to be the animated block break now this name right here has to be the same name as we have given it right Here so that’s very important that those have to match and this is going to be a new object here in this case and then just gonna be there’s going to be subtitles so you can actually see we get this suggested to us this is because at The bottom right corner you can see Json sounded adjacent so it actually sees that this is a of type sound.json if it does not work for you if it doesn’t detect this it’s absolutely fine don’t worry about it basically it’s always going to look the same anyway and the Subtitles here the sounds tutorial Mod Dot animated underscore blocked and underscore break and this is of course just a translation key that you can add to your inner screw us Json file or any other translation James file and that is then going to be displayed if someone has subtitles on then that translated Thing will be displayed and then we have Sounds here as well and that sounds is going to be tutorial mod colon animated underscore block underscore break you’ll be aware that in the sounds right here it is a colon that separates them while in the subtitles it is a DOT that Separates them so do be aware of that it’s a very easy mistake to make now when it comes to the sound that we’ve specified right here this name and this name do not necessarily have to match although if you have only one sound I do highly suggest you know making the match Because this name is actually the name of the OGG file that we will now copy over in our tutorial mode assets folder we’re going to make a new directory called sounds sounds with an S at the end very important and I’m going to copy over all of the OGG files which are also Going to be available to you in the description below for download as well and the idea is you can see animated underscore break underscore block and you can see animated underscore block underscore break and you can see animated underscore block underscore break.org so that file is basically the Sound that we’re referring to right here and what’s very important is that they have to be proper OGG files you can’t just take an MP3 you know change the file ending to OGG that does not work I want to repeat it does not work you have To properly convert them to an OGG file and also always make sure your OGG files for your Minecraft sounds are in mono otherwise there are strange things that might happen and that is not what you want now for the rest of this I will just copy over the rest this is of Course all available to you in the GitHub repository as well and you can see pretty much it’s just the same thing right animated block hit animated block hit right here this guy and then we have the subtitle and then we have the animated Blockhead and the animated Block here right here so should pretty much be self-explanatory now once we have this we are almost done now we can actually you know call the sounds and have them appear so in our mode blocks class in the animated block so when you have any type of block in the block Properties what you can just do is you can just add a sound right here and then just say mod sounds dot animated block sounds and there you go that’s pretty much it now we’re also going to add a strength right here just of one F just So that we can hear the hit sound as well otherwise it would just break immediately and that’s not quite what we want and to play the sound we’re just going to go into the animated block right here and we’re going to overwrite the use method so this is the method That is called on right click and once again if the names you’re annoying you could just hover over them shift F6 and then we can just change the names right here there we go but the playing off the sound we actually only need to do level Dot play sound we’re going to pass in the player the second parameter is going to be the position so this is going to be the block pause the third parameter and you can see if you wait for a moment you can actually see all the different overloaded methods that we can do and See now we have a sound event so there’s going to be mod sounds Dot coolsound.get and a Sound Source this is of course blocks and then the last two are the volume and the pitch and that is pretty much going to be that and that’s Actually all that we need to do in this case to have our animated block first of all play a sound on right click and then also have different sounds for placing it down breaking it and stuff like that so let’s go into the game and hear if it Works all right advances back in Minecraft and we have an animated block here let’s just set it down awesome so that is definitely the custom sound let’s right click one of them and that is also the cool sound let’s just make a little bit of a walkway with them and then Okay this might sound like it’s Stone but it actually is not let me just sit down a little bit of stone and you will you will hear the difference there’s a stone and this is our animated block but it’s definitely a little bit different but that’s fine and then what we have is We have the breaking sound all right and then let’s go to the survival mode and then hit sound there you go awesome and that is how easy it can be to add some Custom Sounds to Minecraft all right but that’s gonna be for this tutorial right here hope you found this Useful and you learn something new and I’ll see you all in the next tutorial so yeah Video Information
This video, titled ‘Minecraft 1.19.4 – Forge Modding Tutorial: Custom Sounds | #15’, was uploaded by Modding by Kaupenjoe on 2023-05-03 14:59:54. It has garnered 2334 views and 40 likes. The duration of the video is 00:09:36 or 576 seconds.
In this Minecraft Modding Tutorial, we are adding a custom Block Sound Group as well as a custom sound to Minecraft 1.19.4 using Forge.
== SUPPORT ME ON PATREON == ▶️ https://www.patreon.com/Kaupenjoe
== COMPATIBILITY == ▶️ Compatible with 1.19.3 and 1.19.4 ✅ SHOULD BE Compatible with 1.20.X
== ASSETS & DOWNLOAD LINKS == GitHub Repo: https://github.com/Tutorials-By-Kaupenjoe/Forge-Tutorial-1.19.3/tree/15-customSounds Assets Zipped: https://url.kaupenjoe.net/mbkj37/assets
== 25% OFF FOR GAMING SERVERS == ▶️ https://www.bisecthosting.com/Kaupenjoe
== TAKE A LOOK AT MY COURSES WITH COUPON CODES == ▶️ NEW Forge Modding with Minecraft 1.20.X: https://url.kaupenjoe.net/CourseForge120X ▶️ Learn Forge Modding with Minecraft 1.18: https://url.kaupenjoe.net/CourseForge118 * ▶️ Learn Fabric Modding with Minecraft 1.18: https://url.kaupenjoe.net/CourseFabric118 * ▶️ Complete and Roblox Lua Game Development: https://url.kaupenjoe.net/RobloxCoupon *
== 1 MONTH SKILLSHARE FOR FREE == ▶️ https://www.skillshare.com/r/user/kaupenjoe *
== SUPPORT ME ON PATREON == ▶️ https://www.patreon.com/Kaupenjoe
== SOCIALS == Discord: https://discord.com/invite/yqxykanpWf Personal Twitter: https://twitter.com/Kaupenjoe
Instagram: https://url.kaupenjoe.net/tutorials/instagram Facebook: https://url.kaupenjoe.net/tutorials/facebook Twitter: https://url.kaupenjoe.net/tutorials/twitter TikTok: https://url.kaupenjoe.net/tutorials/tiktok Written Tutorials: https://url.kaupenjoe.net/tutorials/blog
== LICENSE == Source Code is distributed under the MIT License. Additional Licenses for other assets can be seen below or in the accompanying CREDITS.txt on download.
== ADDITIONAL CREDITS ==
== AFFILIATE DISCLAIMER == * Some of the links and other products that appear in the video description are from companies which I will earn an affiliate commission or referral bonus from or are my own products. This means that if you click on one of the product links, I’ll receive a small commission or additional kickback without any additional cost for you. This helps support the channel and allows me to continue to make videos. Thank you for the support!
== HASHTAGS == #Minecraft #MinecraftModding #MinecraftTutorial #Kaupenjoe