Let’s make a custom three armor model with a geckolet oh right we found this back in jail once more and in this tutorial we’re going to be adding the gecko lip armor model so this is basically going to be a custom 3D armor model to Minecraft including of course Adding the armor so once again you’re going to be able to use some of this tutorial if you just want to add a normal armor however there are some steps that are different of course and this is a gecko lip armor tutorial so do keep that in mind once again I have a Custom blockbench file right here where the armor is it’s sort of an amethyst armor and now the blockbench file will of course be available including the Textra and all of the other stuff as well so that’s gonna be available download in the description below do keep in mind once again that you need The gecko lib animation utils plugin so do install that if you don’t have it and in this case there actually is no animation associated with this armor it’s just a very cool looking armor however the animations you can add those the same way that you have added animations with entities or blocks or Items or all of that so it basically functions the same way one important thing is that under the model settings it is set to armor and then you should basically be good to go now in your blockbench file when you download this particular file you will have this and Then that’s going to be basically fine as previously done we want to get the geojson file we do that by going to file export export gecko live model and that’s gonna be the amethyst armor geojson file there you go then under the animated tab going to animation export animations confirm that’s the amethyst Armor animation Json now in our case that just has one idle animation that does nothing but still we need the animation Json file exported regardless and then last but not least we also want the texture so just right click on this save as and that’s going to be the Amethyst underscore armor.png and then we can proceed to IntelliJ once again so we want to of course take the geojs file and put it into our Geo folder we want to take the animations Json file and put that in the animations folder and the texture I’m actually going to put that Under textures armor and then we’re going to put the PNG in there and that’s gonna be fine what we will also need is the actual armor items so that’s going to be the boots and all of that so I’m also going to copy those over those pngs Are of course also a available to you as well now that we have done this let’s proceed to add the actual armor itself so for an armor we need a armor material so we can basically do the following you can just press shift twice and look at The armor materials class so it’s this one from net microph item and you can see that it has well it has a bunch of stuff basically in it and the idea is that it has the lever chain iron gold so you can see those were all the different Types of armor that are in vanilla and this is an enum which is very important and it also implements the armor material those are basically the two things that are important the string identifiable is less important for us as of right now the basic idea is that in Our own item package we want to right click new Java class and we’re going to call this the mod armor materials and what we’re going to do is we’re going to change this from a class to an enum this is extremely important we want to implement the armor material interface Right here and then we’re not going to hover over this or do anything but what we’re going to do is we’re gonna literally take the netherrite so from above the nether right right here we want to go all the way down and we want to hold shift and then just click and Get all of this in here and you want to make sure that you copy it correctly okay you want to start from the nether right and go right down here and not include the closing curly bracket this is extremely important press Ctrl C to Copy and then Ctrl V to paste in now we will get a few errors here but that is absolutely normal because we have to change the name right here from what armor from armor materials to mod armor materials once that is done all errors should go away if you’ve copied it Correctly if you still have errors then you have copied it incorrectly please do keep in mind that all of the code is of course available to you in the description below in the GitHub repository so you can double check right there now we need to make a few changes Here so first of all we can get of the rid of this in a map the same with this one right here so we just wanted to have util.make all of the warnings here are fine some of this stuff couldn’t be written differently and it doesn’t quite Like the way that it’s written but overall everything here should work totally fine now when it comes to the actual armor this is it if you have if you want to have multiple ones this is a normal enum right so this is just a normal enum so if you have another one You separate them with com and they have to have different names so you can see now I have another right one you can see this is one of them right so netherite this is the open parentheses for this is the closing parenthesis for then a comma then comes the second one right which Where this one is open parenthesis this is the closing parenthesis and the last one is always ended with a semicolon this is basic stuff if you don’t understand that then I definitely recommend taking a look at some more Java specifically the advanced enums now we want to name this amethyst and we Want to name this amethyst as well you can of course change all of the things right so maybe we want a little less durability for it maybe the enchant ability is a little bit more right knockback resistance toughness we can change all of those numbers the same With the numbers here in the map because what you will see that that is the protection amount so basically this is how much protection each of the different armor types is going to give you right boots are gonna give you three leggings six chestplate 8 and helmets three and then there’s also base Durability this should always be the same and then that is basically multiplied by this durability multiplier in the get durability as you can see base durability get type times durability multiplied so nothing too crazy so you can of course change this however much you would like do keep in Mind that once again the name has to be unique and that is very important now we want to make some items but before we can make the item we actually need to make a custom item class so in our custom package we’re going to make the amethyst armor item and this will extend The armor item class and we’re going to deal with this first so we’re going to hover over this create Constructor matching super and you can see now we have the amethyst armor item Constructor in here and that is in theory for the actual armor itself all that we need so We’re now going to make the actual items so that’s going to be done right here let’s just duplicate the animated block that’s fine four times and that’s going to be amethyst underscore helmet let’s just copy the name over and let’s just change the name so that’s gonna be chest Plate amethyst chestplate this is going to be amethyst leggings and the last one is the amethyst boots let’s not forget to change the name inside of the register item method as well this is the amethyst underscore helmet and and then we can copy the name here again and just Change the helmet so this is going to be underscore chest plate and this is going to be underscore leggings and there’s gonna be underscore boots perfect and then instead of an animated block item this is of course an amethyst armor item now the amethyst armor item takes in Three parameters the first one is what we’ve made before and that is the mod armor materials dot amethyst comma and then we need to supply a type so the type is going to be just type.helmet and then comma and there you go we can once Again just copy this over or you can do it a line by line that is totally fine I’m just going to do with this a little bit faster over here and that’s gonna be okay change the classes and then the types over here as well that’s going to Be leggings and this is going to be boots once again it’s too fast no worries at all all of the code is available in the description below so you can basically double check it in the GitHub repository there as well right now we have our four items and we want To add them to the data gen that is the next thing so in the mod model provider we’re literally just going to duplicate the raw citrate screen four times here and we’re just gonna say helmet and this is the chest plate and this is the leggings and this is the boots and we Can actually immediately just run data gen because in this case the actual item models just point to well the item textures that we have right here and those should be named properly so everything should work exactly fine if you don’t have the data then of course Then you need the normal item model Json files that are well basically literally just pointed to the textures so nothing too crazy in this case that should be the item model files that we’ve just added so that’s absolutely Splendid and that is basically the armor now we’ve Done pretty much nothing with gecko lib except for the Geo and the animations Json files but you know that they don’t really do anything as of right now if you now wanted to proceed without gecko lip right and just have a normal armor that’s different basically when always Go down to the external libraries all the way to down here 119 4 and so on and so forth in the assets folder Minecraft under textures you should find under models you can see armor and those are the armor models so you can see that for example iron right there are two Different layers and those two layers is what you would need to basically create in order to will have your armor also display properly inside of the game you want to make the models folder the armor folder and then create amethyst underscore layer underscore 1 and Amethyst underscore later underscore 2 And then that should be that right now we can proceed with the gecko lip stuff and that is pretty much just a model and a renderer so in the client in the client package we’re going to make a new Java class called the amethyst armor model and another one which is going to Be the amethyst armor renderer there you go we’re of course once again going to start with the model now in this case this will of course once again extends the Geo model class and it’s going to have the amethyst armor item in here now this is actually going to throw an error Because the armor item right now is not a Geo item so we need this to implement the Geo item interface and then hover over this and implement the methods now these are once again the same methods that we’ve seen for both the animated item right here in the animated block Item so nothing insane it is pretty much all the same we want to implement the three methods now in this case once again I will just copy over what is being done here because we have seen this three times or four times now at this point it should be pretty much Self-explanatory and the rendra and this will extends the gor Miranda and of course once again of amethyst’s armor item hover over this create Constructor matching super we can delete whatever is inside of the renderer here and just make a new amethyst armor model there you go we can close that and we can Close the model and then in the actual armor item itself well we of course want a few things again the first one is a private final animatable instance cache called cache and this will be equal to a new single and animatable instance cache right here passing into this then a Private final supplier of type object indeed from Lang render provider equal to geoitem dot make rendra passing in this in the render provider we can just say this.render provider in the get animatable instance cache we can just say this dot cache and then I’ll once again copy over the register controllers And the predicate because well once again they are pretty much the same that we’ve seen every time right so the register here is just a controller that basically passes in the predicate and this is the predicate which basically just plays The Island animation on Loop now in our case our animation is pretty Much empty right it just says hey it’s just an idle animation this is actually very important we want to rename this to idle just making sure that this is named idle because it’s looking for the name idle right so this and this has to match the blockbench file should reflect that But just in case you can double check because otherwise you will get an output in the in the terminal the entire time that is going to say couldn’t find idle animation couldn’t find idle animation couldn’t find idle animation and of course that’s kind of annoying and I’m Also going to copy over the create renderer method because well at this point it is pretty much the same than the other item methods now you can see it is a little bit different because we’re overriding the get humanoid armor model method right here right but we’re Still creating a new amethyst or Miranda we’re then preparing it for the render that’s actually very important in this case and then we’re returning it there really isn’t anything crazy else going on here it is pretty much the same idea so this should be I mean self-explanatory in this case and those Are actually all of the steps that we need to take to basically add a armor and an extension a gecko lip armor to Minecraft yet there’s one more thing and that is to add it to the item group I have not forgotten this this time not With me so this is going to be the amethyst boots and then this is going to be the leggings and then the chest plate and then the helmet is why not go the other way around there you go so now those are added to the inventory as well I’ve also added the translation right here that’s that should be self-explanatory as well so let’s see already if you find ourselves in Minecraft and there you go the armor has been added so let’s put it on and here we go we are missing a texture that is Absolutely no worries so we can of course fix that in the amethyst armor model file right but you can see it definitely already is well a custom model but the texture is probably wrong in the identifier and you can see the texture here is called amethyst underscore armor here it’s called Amethyst underscore armor underscore texture so that is probably the reason why so let’s go into the game again and see if this fixes it alright we’re back in Minecraft and there we go the armor Works totally fine so this is exactly what we would expect to see and it might Look a little bit weird right so it’s like I’m not saying that it’s the best looking armor ever however you could definitely say that it is a custom armor right it definitely looks custom I’ve definitely seen better but regardless of that it is a custom armor and that’s Pretty freaking cool right but that is how you can add the custom armor with gecko lib thank you so much for watching 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 – Fabric Modding Tutorial: Geckolib 4 – Custom Armor Model | #14’, was uploaded by Modding by Kaupenjoe on 2023-04-24 14:59:51. It has garnered 3017 views and 72 likes. The duration of the video is 00:12:50 or 770 seconds.
In this Minecraft Modding Tutorial, we are adding a custom Armor Model with Geckolib 4 to Minecraft 1.19.4 with Fabric 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/Fabric-Tutorial-1.19.3/tree/14-customGeckolibArmor Assets Zipped: https://url.kaupenjoe.net/mbkj34/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