Hey guys this Thomas here we take no vision and welcome to the next episode of our minecraft modding tutorial series in this episode we’re going to be updating to the brand-new minecraft version that just came out one point sixteen point one and this is a reupload Of a video I did a couple days ago I’m reloading because I missed a few key steps that I think are very important to know so if you did already update your mod I recommend you still watch this video anyway and yeah so I just want to Mention though that you can follow along this tutorial series if you’re in 1.15 you can stay in 1.15 the process should be pretty much exactly the same except for a few key things here and there so you can stay if you want but I really recommend that you update alright so to Get started you want to go to your package explorer over here and you want to find your build.gradle and once you find this file here with little elephant icon double-click this to open it and this file is what essentially downloads the dependencies and the mappings for Forge so we need to change those two things in order to update so what you want to do is come to the first link in the description and it’ll take you to this paste bin here that I made and I have two lines essentially of stuff that We need to copy and replace so we can do the first line here which is line 28 and we can copy it and you want to navigate as it says here to line 28 and your build.gradle so go to line 28 right here line 28 and it might be line 29 for you Or 27 that’s not really that big of a deal or just replace the lines as mappings channel a snapshot version this line essentially so we’re gonna delete this delete it and we want to paste in the new one and the new one should be two zero two zero zero seven zero one And then a dash and then one point sixteen point one alright so the mappings are now updated now we need to go back to the paste bin and get the second line here copy the second line copy and we need to navigate to line 92 As it says here so go to line number 92 and your build.gradle and again it it might be 93 or 91 for you just replace this minecraft line right here so delete and paste it in and you want to make sure that basically we’re replacing it with forge one point 16 Point one so if it says one point 16 point one there then it should be all good now all you have to do to make sure that these changes take into effect is come up to this little tiny button that appeared in the top right corner it should be a Little elephant with a like a circular arrow a blue arrow circle and if you click this button this will rebuild the project with your build.gradle and you’ll see down here in the bottom corner it does say building and it only took a few seconds for me but it might Take a long time for you might take upwards of 10 minutes so let that run and when you’re done come back okay so now we’re officially running on forge one point sixteen point one but you will notice if you go to a class like for example registry handler That there are some errors now and that’s because some of the code and 1.16 has been changed to be a little bit different than one poin so we’re gonna run through a few of these changes so that you know what to do in the future And how to fix your code now so first thing we should do go to your registry handler class here and let’s deal with these deferred register errors here so in 1.16 a forge made deferred register a private constructor so you can no longer instantiate a deferred register objects So now you have to do is use a static create method so to do that we want to replace our new deferred register and triangle braces here with just a furred register deferred register dot create and then I’ll fix the error right there so we can just copy this and paste it Again remember to replace the new deferred register and triangle braces with Doc create and in the future when you create deferred registers now instead of creating the object remember you have to now call this static method and dot create so just remember that for future reference next thing we need to Change is the whole item here so if you made a tool a whole then you’ll notice that it needs to take in a new argument so in the past Howe items only took in the attack speed and not the actual damage value so you couldn’t change a Hose damage but now you can do that with anyhow items so we need to add a comma here and in front of that comma a new value a new integer value and I’m going to put one year and what this value is going to set just like all the other tools we Have here it’s going to set the damage of the of the tool how much damage it does and if you remember from our tools video this is being added on top of our base damage and the vanilla damage so I believe our base damage for this Ruby Tool type was like three + Vanilla’s 4 so if I actually I want this how items value of 1 so I’m actually going to put negative 3 here because that’s gonna subtract from our base mod item tier Ruby base damage 4 of 4 to give us a Value of 1 so not super important but just remember that this value here is essentially going to be the damage value for your hoe item all right so now that’s fixed next thing we can do is come up to our armor package here and you want to open up your mod armor Material now inside of here you’re going to get a little air up here because you need to implement a new method so click on implement methods and we want to implement this new method and it’s not mapped yet so it’s not gonna have a like nice name for you it’s gonna be called Function underscore blah blah blah but essentially what this is doing is accessing a knock-back resistance value so in 1.16 the new nether eight armor adds a knock-back resistance value i believe it knock a resists knock back by like half it cuts it in half so now we Need to actually add this as a value to all armor types and you can disable this if you want so i’ll go through that right now but what you want to do is first add a privates final floats names let’s just name it knock back resistance Okay so we also need to add this into our constructor so add a flow just knock back resistance and we want to of course assign this variable so this dot knock back resistance is equal to knock back resistance okay all good we need to make sure that our Method here our function method returns this dot knock back resistance so we can actually access it and then finally we need to add our knock back resistance to our our armor material type or enum so at the end of this final argument we passed into this parameter you want to Add a comma and then add in a knock back resistance value this value can be and you anything really I don’t think there’s any max if you set it to zero this will just disable knock back resistance from the armor set this is what all like vanilla sets do you except For nether right so if you want your armor set to just be like a regular armor set with no knock back resistance just set it to zero that’s what I would recommend but if you want it to be like a nether right armor where it has a Little bit of darker back resistance you can set it to one keeps going off-screen sorry you can set it to 1 and that will add a be exactly like nether right armor you could add it to like three if you really wanted to have no knock back Resistance at all so you can play around with that as you want but I’m going to set this to zero and remember that now in the future whenever you make a I all my material or a mod armor material enum here you are gonna have to now add a Knock-back resistance as well so do this for all of your items and we are done with this this class here so the next thing you want to change if you go to your blocks class here so let’s just get rid of some of these classes up here Just so there’s more space now let’s open up a ruby block so in Ruby block there’s a few things we have to change some of them are our parent right here and some of them we actually don’t know about because they’re not they haven’t been methods in the past so first thing We need to fix if you have a block that accesses this method dot light value to set the the light value of this block to essentially make it a glowing block this method no longer exists in 1.16 so what you have to do instead now is actually use the method dot set Light level and you want to pass in a lambda statement for a to in function and we can do that by essentially just doing value with a little arrow and then setting this to whatever number was in your light value so mine was 15 so I’m Just gonna set this to 15 and we can get rid of this dot light value function all right so the next one we need to set is a new method that you have to add to every single block class that you have so do this for every single class in Your blocks package or any class that extends block and you want to add the dot set requires tool method now the reason we need to do this is a new method in 1.16 if you don’t add this in 1.16 your blocks will actually be able to be harvested by fit like the player’s Fist it’ll also completely ignore the harvest level and act like it doesn’t even exist so if you want a harvest level here if you want this to actually mean anything you do have to add this this method to every single block class that you have So I’m gonna also add it to our Ruby or block that we set in one of the previous videos right below here so again remember to set that in every single block class very important unless of course you want your or do not require tool and then you don’t need it but That’s very rare I think that people would have that so definitely add this method alright and now we are done updating all of the code to 1.16 so this will run perfectly now and you can come up to the screen triangle and run the Game and I will see you in the game to test this out okay so we’re inside of the game and you can see that we are on the forge beta here and we are on minecraft 1.16 point one and if we open our mods button here we can see that we Do have our mod here it is loaded and one thing I would encourage you to do is just jump into a world real quick preferably a brand new generated world and just make sure in your creative inventory that your custom tab is there and that all of your items are there This just means that everything is working great and then we’ve successfully ported over our mod to 1.16 all right so the last thing we can do is come over to our resources folder go to your meta m folder open this up and open up your mods tu ml And what you can do is change your version number here from one point fifteen point two to one point sixteen point one the newest version and this is purely cosmetic and it will show up when you click on that mods button but other than that this really isn’t that Important so again just a cosmetic thing but now that we’ve set that we are completely done porting our mod over to 1.16 so thanks guys so much for watching I hope you learned a lot and I’m really sorry about the re-upload but hopefully this clears up any of the things that I Missed and the last time I reloaded it or uploaded it for the first time so thanks so much for watching and I will see you in the next episode Video Information
This video, titled ‘Minecraft 1.16: Forge Modding Tutorial – Updating (#10)’, was uploaded by TechnoVision on 2020-07-13 10:34:37. It has garnered 34898 views and 742 likes. The duration of the video is 00:11:29 or 689 seconds.
Learn to code a Minecraft mod from scratch in this complete tutorial series! In this episode, we update our mod to 1.16.1, update our mappings, and work through some of the new API changes.
— Important Links —
● Pastebin: https://pastebin.com/U7JQWHBp ● Discord: https://discord.gg/ZsB3Eha ● GitHub Repository: https://github.com/TechnoVisionDev/Minecraft-1.16-Modding-Tutorial.git
— Music —
● Chill Out Media – Minute Mix
— My Channel —
● Subscribe: http://tinyurl.com/zbc7mwy ● Instagram: https://www.instagram.com/tomm.peters ● Twitter: https://twitter.com/TechnoVisionTV
#minecraft #modding #tutorial