Let’s add some custom three armor to minecraft all right we found us back in intellij once more and in this tutorial we’re gonna be adding a custom 3d armor to minecraft so this is going to be a custom 3d armor model for our citrine armor now one this is once again going To be something that we’re going to use blockbench for as well as geckolip because geckolip actually makes this very easy for us so let’s just take a look at a blockbench so i’ve already prepared a you know custom armor here i will say this it doesn’t look good the Texture is not the best and also overall it’s just not the greatest texture or the greatest model but it is definitely custom like that’s the only thing that you can definitely say about it is custom i think the helmet is fine the rest is arguably not the greatest but that’s Going to be okay the way that you can create this go to file plugins you need the geckolip animation utils right here this is very important and then you can basically proceed with this and then what you can do is you can make a gecko lib animated model and we can just call This test and then what you want to go for is you want to go to file geckolip model settings and change this to armor confirm and then you get well the basic steve outline basically in here and inside of these groups right so the armor head armor body armor right there Is where you put in your custom armor basically so you can just create you know if i you know where to go for the head right here i make a new cube right i can move it around there you go there’s the cube and then i can size it Up and down however much i like right now i would pretty much just you know put it in front of the face not quite what you have in mind usually but that is the general idea so let’s just get this out of here and then we can take a Look at this one once again so you can see the cubes are all in here so all in those groups here you can also see the texture like texturing it is also quite the challenge this is why i’ve literally just have the citrine you know blocks right here just so that you can Basically see it and i’ve also added you know a little bit of a black square at the bottom so that you know the steve basically just is completely black so i can sort of see a little bit better where i place everything but once again This is just a matter of trying out a bunch of stuff being open to experimentation try this out and then you can basically see however or you get along this blockbench file is also available to you for download as well in the description but how can you then Export this well you go to file export export geckolip model this will export a geo json file we’re going to just going to replace this there you go and then of course we also need this texture and then we actually have everything that we need so we’re going to switch back to Intellij and we’re going to start in the entity package in the client package we’re just gonna make a new package called armor and then instead of there we’re gonna make two new classes the first one is going to be the citrine armor model and then the second one is going to be The citrine armor renderer now those two are going to be needed but for those two to work we actually need a new armor item so this is very interesting so this is going to be our you know we have our mod armor item which is you know Workable but what we actually want is we want a custom one so let’s make another one so it’s going to be the citrine armor item there you go which will extends the geo armor item here and implements i animatable so this is once again like with geckolip here we’re Going to implement the register controllers and the get factory method and then what i will do is i will just copy over the contents of this the most of this so most of the contents are from the mod armor item because of course we still want our mod armor item to work And yes i understand we could also extends from remote armor item things like that don’t worry about it we’re just gonna copy it over and then you can see right we have the as full suit of armor on has correct armor on stuff like that the only thing that has changed is The has correct armor on method because there was a little bit of a bug that i have and since basically found so if you have a mod armor item be sure to change this method to this right here because otherwise you will actually run into an Issue if you have if you have an electron then the game is actually going to a crash because you can cast a analyter to an armor item so keep that in mind but that’s you know besides the point right now you can see most of this Is just form the actual armor item this of course isn’t the predicate as well as the factory and then this one as well those are of course the normal things for the eye animatable in this case but there isn’t anything interesting going on so our predicate here is very simple It just has an idle animation which actually we haven’t even defined like i have no animation in here right the animation here is empty because i don’t really want to have any sort of animation for this particular armor piece you can add animations as well of Course so once again feel free to try out stuff and just you know see how you can get on with that but then after we have the armor item here we now want to continue with the armor model so this is going to extend the animated geo model And then off citrine armor item we’re going to hover over this and implement the three methods this is the get a model location the get texture location the get animation file location this is the same as the raccoon model here so this is pretty much going to be you know Looking very very similar in this case this is just going to be a new resource location to tutorial mod mod id and then geo slash citrine underscore armor dot geo dot json and then let’s just copy this over for the other two here this would be textures slash models slash Armor and then citrine armor underscore texture is what i call it there you go.json and then the last one is in the animations folder and this is called actually armor underscore animation underscoreanimation.json because i have a custom json file for armor animations that you know have don’t have any animations basically so That’s the general idea and then this model is actually complete this is all that we need to do we can now proceed to the renderer which is also going to be fairly straightforward so what we want to do is we want to extend the geoarmor rendra once again of citrine armor item Here let’s hover over this and create constructor matching super and then what we want to do instead of passing in the model provider we want to make a new citrine armor model and then we also don’t need any type of parameter here what we do however want to have is the Following and i will be copying this over this is going to be basically defining the head bones and like all of the bones now what you will find here is that the legs are switched so you can see that the right leg bone is actually Pointing to the left leg i had an issue with this that you know the wrong legs would basically you know move i’m not 100 sure why that is i’ve checked that this is correct and it was correct i don’t know there might be a mistake so If this does not happen for you you know you can just switch them around these names right here the names in the strings are the names of these ones right here so this is should be the armor right armor right as you can see armor right arm actually and then this Is the same thing armor right arm you can see there you go with the same casing and all of this so this has to be written correctly make sure that and that should be fine you can also always take a look at the example that geckolip Provides so if i actually look at this we have the potato armor renderer here as well that is also very useful so you can basically take a look at this as well highly recommend it so just search for potato armor and you can basically find i mean how anything works as well Highly recommended as well what we also need to do now is we need to register this armor so what we’re going to do is in our events package in the mod eventbus events we’re just going to quickly duplicate this one right here now this is of course the register armor Renderers let’s say there you go and this is going to take the following event it’s going to take a final entity entity renderers event dot add layers and we’re going to call it event here and then what we’re going to do is we’re going to call geoarmor renderer dot register armor Renderer the citrine armor item very important.class and then a new citrine armor renderer so that’s also very important that we have this one right here for the modbus here as well so keep that in mind all right mini addendum right here it’s very important so before we had the register armor renderer Method inside of the entity renderers event add layers right here but this actually has to happen in a separate class where you set the value to disk dot client this is actually very important because otherwise this will also run on the server and when you then Try to run the server it will actually crash the server so this is why this needs to be in its own separate class you can see mode event client bus with the same event subscriber at the top here with the with modbus in this case but also the value disk client and then It should work in theory and just wanted to mention that quickly what we now need to do is we need to change all of our items to the citrine armor item so let’s go into the mod items class and change it right here this is no longer the Armor item this is going to be the citrine armor item we’re just going to copy the name here paste it in there you go for all four of them that’s also very important and then we still need the json file so this is going to be the Animation json file as i’ve said the animation json file i have well created a sort of a dummy one let’s say right so this is the armor animations here as you can see it literally just loops a you know empty idle animation so there literally is nothing to it and then we Still need the geo file this is the one we have we have actually exported from block bench here citrine armor geo there you go and that would be that we also need the texture of course this goes into the models armor and then this is the citrine underscore armor underscore Texture you can also make sure that this is correct in the model right this is where we’ve defined this textures models in the armor folder citrine underscore armor underscore texture not png so should be fine as well and that is all that we need to add right here So those are all of the steps that we need to go through to add some you know custom 3d armor model like i said of course the thing that really is going to take the most time is modeling the armor and then texturing the armor in a way That is well looks good i mean let’s just be honest because this is going to be quite uh quite a thing that you have to do but overall it shouldn’t be too crazy so this is everything that we need so let’s see if it works oh before we go In there actually is a little bit of an error and that’s right here it’s not the json file it’s a png file of course that sometimes happens when you just copy stuff over but there you go this is of course now fine and now let’s see if it Works all right so we find ourselves in minecraft and let’s see if i put on my armor and there we freaking go everything here working now you can see you know it’s a little awkward here especially on the legs where you know it doesn’t quite cover the legs but it’s Still i mean what it is is definitely custom so you can’t hold me for that and like i said it really is just for testing it out just for you know seeing how you can basically add it to the game but it’s really cool and honestly if you you know Add a little bit of variety like this to your armor it’s going to elevate your mod just i mean 10-fold it’s just going to be really freaking amazing especially for like later level armors right if you like add you know three different types of armor maybe the first one is normal and then The second one is a little bit more intricate with a custom model and then the third one is like really awesome so i just highly recommend playing around with this and yeah that’s how easy it is to add a custom armor model to minecraft right as always of course all of the Code is available to you in the description below in the github repository individual gist as well but otherwise this would be it for this tutorial right here i hope you found this useful and you’ll learn something new if you did i would very much appreciate a like and don’t forget to Subscribe for more tutorials just like this one many thanks also to my lovely patreon supporters for supporting the channel and i will see you all in the next video so yeah Video Information
This video, titled ‘Minecraft Modding 1.18.2 with Forge | CUSTOM 3D ARMOR MODELS’, was uploaded by Modding by Kaupenjoe on 2022-05-31 13:59:55. It has garnered 11843 views and 198 likes. The duration of the video is 00:11:47 or 707 seconds.
In this Minecraft Modding Tutorial, we are adding a custom 3d Armor Models with BlockBench and Geckolib in Minecraft 1.18.2 with Forge.
== MINECRAFT COURSES == ▶️ Learn Forge Modding with Minecraft 1.18: https://url.kaupenjoe.net/CourseForge118 * ▶️ Learn Fabric Modding with Minecraft 1.18: https://url.kaupenjoe.net/CourseFabric118 *
== ASSETS & DOWNLOAD LINKS == GitHub Repo: https://github.com/Tutorials-By-Kaupenjoe/Forge-Tutorial-1.18.1/tree/61-custom3dArmor Gist: https://url.kaupenjoe.net/yt311/gist Armor Files Zipped: https://url.kaupenjoe.net/yt311/assets
== TIMESTAMPS == 0:00 Intro 0:25 Looking at Block Bench and the Armor 0:47 Creating your own Custom 3D Armor Model 2:18 Exporting the 3D Armor Model 2:33 Creating the Custom Armor Renderer and Model Classes 2:51 Creating the Custom Armor Item Class 4:45 Coding the Armor Model Class 5:49 Coding the Armor Renderer Class 7:02 Looking at the GeckoLib Example 7:30 Registering the Custom Armor Renderer 8:07 IMPORTANT FIX for Registering the Renderer 8:47 Chaging the Items to our Custom Armor Item 9:05 Adding JSON & Texture Files 10:16 Fixing a typo 10:29 Demonstration 11:28 Outro
== 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 *
== 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 == Outro Musik by Kevin MacLeod: “That’s a Wrap” Kevin MacLeod (incompetech.com) Licensed under Creative Commons: By Attribution 3.0 http://creativecommons.org/licenses/by/3.0
== 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