Let’s make custom armor with gecko lib oh right we found this back into the other ones more and in this tutorial we’re going to be looking at how you can add custom armor with gecko lib specifically a custom armor model and this is going to be the custom armor Model amethyst armor in this case and you can see it while it definitely is custom right it has a custom texture and all of that and is once again a blockbench file right here now this blockbench file including all the other files are available to you in the Description below for download what you need for this blockbench file of course is once again the gecko lip animation utils plugin so that’s very important when when you have that then you should be good to go and then we want to start exporting some stuff so the first thing We want to go to file export and then export gecko model that’s going to be the amethyst underscore armor.go.json there you go that’s the first one then we want to go to animate now in this case this doesn’t have any animation that plays now you can still add those Animations similar to when you have the entity or the item or the block those are exactly the same functioning exactly the same in this case I just don’t have an animation associated with it but that’s fine and we still want to go to animation export animations confirm as the amethyst underscore Armor.animation.json file there you go and then last but not least we wanted to get the PNG so just right click save as and that’s the amethyst underscore armor.png so those are one scan of three files that we can immediately add to our assets so the animation Json file of Course goes into the animations folder the Geo file goes into the jio folder and the textures I’m actually going to make a custom directory in there called armor and that’s where the amethyst underscore PNG goes so that is pretty much the the first step is done for the Textures we also want to add the textures for the item that’s going to be basically the boots and the leggings and all of that that is going to be in the textures item folder those are going to be these ones right so this is the boots And the helmet and so on and so forth so that else of course also needs to be added and they’re also available to you for download in the description below now there’s a couple of steps so the first Port is going to be how you can basically add normal armor as well so This would work if you didn’t want to use gecko lib as well this can also work and then the second part is basically how to add all of the gecko lip stuff which is pretty much just going to be a model and a renderer and then changing The item class again but the first thing that we need is in the item package we want to get the mod armor materials class and this is going to be a very interesting class it’s going to be modeled after a class that already exists so you can press shift twice and You can search for armor materials and you should find the armor materials in net Minecraft world item right here and you can see this is this is an enum and it contains basically leather chain iron gold and so on and so forth so all of the different vanilla armor materials Are included here and what we’re going to do is we want to position our cursor here on the netherride and we want to drag it all the way down not including the last closing curly bracket then press C and then go into our custom one right here we want to say implements the Armor material interface right here and then instead of hovering over anything we just want to paste this in now we’re going gonna get one error or we’re gonna get multiple errors here but and we’re going to fix that by changing the name right here of the Constructor from armor Materials to mod armor materials and now almost everything goes away except for the util.make right here and this error can easily be fixed by changing it from a class to an enum and now all of a sudden no more errors should be present you can also take a look at the mod Armor materials class once again in the GitHub repository Linked In the description just to make sure but basically that is the idea this is just a normal enum and if you want to have a second one right so maybe you’re going to have like two or three different Armors then they need to be separated by commas right so you can see this is the opening parenthesis this is a closing parenthesis then a comma then it has to have a different name right so each individual armor obviously has to have a different name and then here you can see The last one opening parenthesis this is the closing parenthesis and the closing parenthesis ends the last one ends with a semicolon that’s the general idea so do keep that in mind and then you should be good to go now we want to rename this to amethyst and we want to rename this To Amethyst as well now you can also play around with those numbers this is going to be the durability multiplier so all of the all of the normal durabilities right for the boots the chest plate and so on are going to be multiplied by this number maybe for Amethyst we want this to be a little bit less you know something like that these are the defense capabilities for your boots leggings chest plate and so on that is the general ID here and then this is the enchant ability so just you know how good the enchantments are and Things like that this is the toughness and this is the knockback resistance in this case and that is of course the ingredient that you are able to repair this with so in our case maybe which should be an amethyst chart but you can also of course take a look at the armor Materials and pretty much just from well what you can see here you should understand what most of this basically means where that is all that we need in this class in this case so we can actually close this and we can continue to well create our items well we can Continue to create the items so in the custom package we’re going to right click new Java class this is the amethyst armor item and this will extends the armor item class there you go we’re going to hover over this quick Constructor matching super if once again These annoy you click on them shift F6 and then we can just rename them this is going to be the type and this is going to be the properties there you go and that’s actually for now all that we needed because now we’re going to make the custom items first and foremost and Then we’re gonna make all of the geckalip stuff in a moment so we’re just going to duplicate the animated block item here we’re just gonna make this the amethyst underscore helmet changing the class to the amethyst armor item this one takes in first the armor materials.methyst comma and then we can Start typing in type and you can see this is of course the helmet and don’t forget to change the names this is amethyst underscore helmet and then we can just duplicate this three more times this is going to be the chest plate and there’s also going to be the name here Chest plate there you go and this is going to be the chest plate type there you go this is going to be the leggings leggings here as well and then this is of course also leggings type there you go and then this is going to be the Boots and this is going to be the boots as well and then here last but not least boots amazing now if you have data gen then you can simply go to your item model provider right here and just add the not the sampling item but just a Simple item you can just duplicate that four times and then you can basically get the amethyst helmet the amethyst chest plate the leggings and the boots down here there you go and we can immediately just run run data because in this case nothing else needs to be added If you don’t have the Run data it’s just going to be normal item model files that point to your textures so it’s it’s pretty much just normal items and while this is running I also added the translation which at this point really should not be anything crazy in this Case it’s just normal translations all right that is basically the armor added the data General ran through now if you don’t want to use gecko lip right if for some reason you’re like oh I actually didn’t want to use gecko lip or maybe you want one armor that doesn’t use yet Clip you can go to the external libraries and take a look at client extra 119 4 and you can go to assets Minecraft textures and then under models you are we will find armor and then you can for example see the iron layers and this is going to be what you have to Make then for your custom armor so this has to be the name that you’ve given in the mod materials right so if we were to go back to our mod materials this name right here so it’s amethyst underscore layer underscore one needs to look kind of like this and then the other one Needs to be anthis underscore layer underscore 2 and it would be under the Minecraft namespace so it would be assets Minecraft textures models armor and then amethyst underscore layer underscore 1 and underscore 2. that you can also do otherwise we can proceed with gecko lip models and with the gecko Lip rendering stuff but this of course we need to change the armor item and for that we need to implement the Geo item interface right here once again we’re gonna have all this implement the methods in this case and what we’re gonna need is once again a private animatable instance cache called cache Which is equal to a new single animatable instance cash passing in this and we can immediately just return it right here absolutely Splendid the actual register controllers once again I will be copying this over because it is literally just the same that it is in The in all the other items right but the block item of the animated item it’s always the same and in this case the idle animation isn’t even doing anything in this case then we also don’t really need to get the animated tick so that’s actually also fine the only other thing We need to do is we need to overwrite the initialize client method once more and once again we’re gonna just make a deliberate error here so I don’t forget it but that is going to be that and for this of course we need the renderer and To get the renderer we need to also get the model so in our client package we’re going to make the amethyst armor model and we’re also going to make the amethyst armor renderer starting with the model we’re going to extend the Geo model of type amethyst armor item there You go and we’re going to hover over this implement the methods those are once again the three methods right the get model resources the texture and the get animation resource so I’m just going to be copying those over because they’re just resource locations that point to The Json file the Json file and the PNG file that we’ve exported from blockbench nothing crazy going on here and the renderer is going to be a gor Miranda of type amethyst armor item we’re going to hover over this once more and we’re going to delete the parameter in the Constructor and we’re going to make a new amethyst armor model absolutely Splendid and that is what we need for the initialize client method I’m going to actually copy over the method itself because it’s actually going to be fairly straightforward so you can basically see that we once again make a new icon item Extension over here in this case which is going to be an anonymous class it has a renderer inside of it and then we’re just going to make sure that if the render is null then we’re going to make a new renderer in this case we’re also calling prepare prep for render this is Extremely important that we have done this as well and then we’re just returning that renderer that’s all that we’re doing here so nothing crazy going on and that should pretty much be it and funnily enough those are actually also all of the steps that we need to do Except for we also want to add this to the creative mode tab because otherwise I will forget this again because I this is this has been the new creative mode tab stuff has been some pretty crazy well there we go now also all four items added there and that should be that so Now we can run the client and see if everything works all right finds us back in Minecraft and let’s just take a look and as you can see there we go the amethyst things have been added to the game and let’s see when we put them on absolutely Splendid so it is definitely A custom armor now you know it might look great I will I will really admit that that I’m not the best modeler but it definitely is a custom armor as you can see and it looks I mean it’s it’s pretty fun right it at least is a custom Armor so that’s pretty awesome and you know you can of course now add all sorts of crazy other things including some custom animations if you are so inclined to but otherwise it’s pretty cool right that’s gonna be for this tutorial right here I hope you found this useful and You learned 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: Geckolib 4 – Custom Armor Model | #14’, was uploaded by Modding by Kaupenjoe on 2023-04-26 14:59:56. It has garnered 3249 views and 51 likes. The duration of the video is 00:10:45 or 645 seconds.
In this Minecraft Modding Tutorial, we are adding a custom Armor Model with Geckolib 4 to Minecraft 1.19.4 with Forge and Geckolib 4.
== 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/14-customGeckolibArmor Assets Zipped: https://url.kaupenjoe.net/mbkj35/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