What is up all my geeks and gamers techique 10:19 here coming at you with another Forge modding tutorial now last episode we created a bunch of tools and I told you guys that I didn’t know how to make the email matul materials now I Do know how to make that but I’ll get to that in a second but first what I get want to tell you is I want to relate back to the first video I told you guys that when you run the command and you CD you want to run gradall W setup dev Workspace eclipse now that’s fine and all but I found a better way to do it you want to run grata l– w dot bat setup decomp workspace and i just spilled that completely wrong work space and then you want to run that and then you want to run gradall w dot bat Eclipse separately now what that’s going to do now is it’ll enable you to look at all of the all of the example files from minecraft so say you want to open a shovel and you want to open item Spade there we go if you hold ctrl and click an item like Item tool it’ll go to that default file and you can look and see all of the things that you want to see like so like I said we’re gonna create the tool materials and we can look at the defaults so let’s do that right now so we’ll start off by doing public Static tool material enum tool Tyrael sapphire equals enum helper I spelled help the helper dot add tool material now let me just import stuff real quick so you like to import ok that’s good good you know add tool material there you add to a material now It has all of this stuff here the name the harvest level the one thing we want to start with is the name and that’s going to be sapphire no cash harvest levels so what we’re going to do now is we’re going to control click to a Material and it’ll bring us to all the tool materials and here are the examples the defaults so emerald equals diamond so the harvest level it has is three obviously now that means that you will be able to harvest everything up to obsidian and it will harvest at a decent Amount so let’s change the harvest level to four just so that it’s better then the next one is max uses diamond is only 1561 so let’s change our hours to last a really long time we’ll go three thousand efficiency on this one 8.0 F as you can see diamond is very efficient so We can do that it’s okay how about so it’s okay 8.0 F let’s change it to 11 point Oh F just to make it a little bit better than diamond um let’s see let’s see and you can see down here it tells you what it does so let’s see we have All the stuff damage versus entity max uses harvest level this number uses the material allows wood equals 59 stone equals 131 an equals 250 diamond equals 1561 gold equals 32 the level of material this tool can harvest 3 is diamond to his iron one a stone and 0 is Wooden gold that means it can harvest the same stuff so actually let’s change it their hearts to everything as you can see the harder so the number of uses this material allows that’s the next uses basically that’s efficiency the strength of this tool G against blocks Which it is effective against so this is how strength strong it is against the things that I can do damage this is just how much damage the lowest tool will do which I believe is a shovel so it’ll raise everything by a little bit so we can change that to cyclone OS let’s Check and enchant ability now I don’t know if you guys knew this but gold has this enchant ability level is the how good your enchants can be is basically what it comes down to and gold I don’t know if you guys knew this but gold can Be enchanted the easily so you can put feather falling on gold boots with level 1 enchant that’s what that 22 means and it looks like wood is pretty good as well so we can actually make it so that this is either really hard or really Easy to in chant now I’m gonna make it so that it’s really easy and you get good enchants quickly so I put 30 and there we go we’ve created our tool material and now we just have to put it down here with our tools so to add that we’re going to Put rather than to material emerald we’re gonna put SAP sapphire mod dot enum tool material sapphire and there we go it’ll put it in there we can copy this and just paste it down here wherever it says Toma – emerald because we’re no longer using that okay there we Go now that’s all set now let’s get into the main thing of today’s modding tutorial and that is the armor so we’re gonna create a new class called and we’re gonna call it sapphire armor I’m going to do that and here we are now we’re gonna make this extend item armor And this is gonna go private string those armor types equals new string brackets Curly’s and this is going to be the names helmet so vine chestplate sapphire legs sapphire and boots sapphire and then we’re just gonna close the crease at the end and there’s Michael oh no not clear Sammy oh yeah put a semicolon okay I have to implement any murmur and it’s gonna give us an error because it needs a construct so we’re gonna do public sapphire I’m Anna and this is gonna be our material Theriot comma int render index index comma int armor type Open bracket close It let’s see what do we have here and we need to do super material oops I accidentally hit caps on my material comma render index comma on a site and that gets sort of all ours okay we’re gonna go outside of this bracket right here and we’re gonna type At override I think you have to implement override it needs a body so we’ll do public string get armor texture item stack stack comma and 2 T and 2 T comma int slot comma string layer now we have to implement itemstack as well as entity I think you have to Implement the net minecraft entity maybe not hold on let me check this real quick which entity yeah it’s it’s minecraft entity entity it’s just giving me an error because it needs the inside so first let me explain what all these things do so the items stack is Basically what stack it’s like what item it is the entity is what it goes on which in this case it’s going to be human in slot is gonna tell you tell it where the slot is where you put the armor and layer is gonna put it on the Character and display the correct layer so let’s get into this if stack dot get item dot equals and the object is gonna be sapphire mod dot helmet sapphire and then outside of that one we’re gonna do these two and then we’re basically okay so let me actually Go back into the main class here and let’s first create the actual armor that way it doesn’t give us the errors so let’s start with public static item helmet sapphire side : int helmet sapphire ID equals photo seven semicolon okay so we have the helmet let’s just Copy we don’t have two three four and this is gonna become chestplate and this is gonna become chestplate it’s gonna come 508 I’ve gotta come legs legs 509 and this is gonna become boots boots rough time so now we have all those I think that you get ready yep all Right like it sir to the air there I sing so because I haven’t saved it now the hell the hell do I have to actually register it maybe let’s try this I’m a sapphire equals new new sapphire armor not let’s just go on with this because that’s Gonna take too long so let’s just keep going with this it’s gonna be stack basically the same thing duck get item and then dot equals object is gonna be sapphire not just like sapphire that’s like that it’s gonna be this why is it not like helmet stack dot get item that Equals object a sapphire not dot sapphire and we’re gonna put at the end of that we’re going to put a curly out and after getting here we’re gonna have returned and this is gonna be where the texture is so it’s gonna be textures slash armor / sapphire underscore one underscore one dot PNG Cold sign horn what’s wrong here I added a return statement right there do you not see it like what the hell is wrong you do you not see the return statement okay first of all why is helmet Safire glitching out like what’s going on here let’s just carry on and We’ll figure that out in a second so we’re going to create another is if stack dot equals dot thanks sapphire return return sapphires : textures slash armor slash sapphire underscore two got pinched that’s slash check okay I’ll be right back once I figure this out all right so I Figured out what the problem was the problem was that I forgot to put else return null at the end that was why it was saying that it didn’t have a return statement you need that else return no at the end obviously okay so let’s carry on at override under the override public void Register icons I icon register right now I can’t register me to be imported we’re gonna add if this equals equals sapphire mod I keep hitting the caps lock sapphire mod dot helmets a fire under that we’re gonna have this dot item icon equals reg dot register icons quotes SAP Sapphire calling helmet this is just gonna be where your textures are and then we’re just gonna copy these two lines right here and paste on up times two three four and we’re going to change them to chest plate he’s like textures chest plate but I’m not sure I’ll check that later Just wait there’s a new legs I believe my textures name is legs and there we go okay so that’s all done now let’s go back to our main class and we’re gonna create the enum armor material so let’s go up to the top right under our tool material we’re going to Another public static there’s gonna be armor material material enum I’m a material sapphire equals enum helper dot add our material okay so we’re gonna have all this stuff and once again we’re gonna ctrl click our material and we have all our stuff so it starts off with A name again we’re gonna do sapphire once again there you go durability durability amount I have here the durability is this is the durability at 33 on that one let’s just do Sydney now under reduction amounts it requires you to put new int those brackets and then inside of those bracket and then You make a curly bracket and inside the curly bracket we have all these damage resistance things now the damage or just resistance we have three eight six and three so damaged you’re done return okay holds the damage reduction each one points is half a shield on the GUI of Each piece of armor so helmet plate legs and boots this is the helmet plate legs and boots one point is half a shield so as you can see Artur takes up all of them because there’s obviously 8 9 10 11 17 20 there’s 20 there’s actually 10 10 Armour bars and that takes up 20 half armor bars so if we wanted to make this like extremely opie we could make it like 5 7 mm wait what is this in order of helmet then plate plate is always the highest so we could do what you do like Five ten eight and three okay so that totals up to a total of fifteen eighteen twenty six total halves which means it takes up 13 which means it’s not even gonna fit on the GUI but it will have enough the last thing we have is enchant ability this is just like the enchant Ability over the last thing I think the numbers are just higher yeah gold is still the best obviously higher number we’re gonna change this to oh stop let’s change this to 30 as well just like blessum and there’s your semi coal alright and we’re gonna do down half and We’re gonna register these items we’re gonna have helmet sapphire equals new sapphire armor and this is gonna be sapphire mod.com our materials fi and I believe that’s all we put in that box I mean in that parentheses oh no we put the idea of it there’s gonna be five and the number That it is how much zero chest plate is one leggings is two boots is three now the actual thing only goes up to five but so we have to I mean four so we have to create a new thing so we’re gonna do rendering registry dot add new armor Renderer pre thing and it’s gonna be five just like we wanted and there we go at the end of this we’re gonna do dot set come on dot set and localize name and this is gonna be helmet I believe that’s on pudding oh yeah we Have to set the creative tab dot set set Creve have creative tabs dot tab tap combat where I’m putting it and there we go so let’s just copy this baby and we’re gonna go one two three and now we just have to change all the names this is gonna be just linked and It’s also gonna be one and it’s gonna be chest just go from left to right legs that’s gonna be a two and that’s gonna be all right here Thanks I’m gonna be boots too many O’s boots three boots I’ll go on to combat we’re gonna register yet another item Game registry dot register mm item helmet name okay let’s just copy this again to date legs and boots there we go all errors have been vanished actually let’s open up our desktop folder here and we’re gonna I don’t know if I put the textures I did okay for the Armor textures and stuff I’m just make sure I’d chest plate and helmet like so okay um let me just live this up well it’s loading up let me just make sure so when you are making your armor textures you’re probably just gonna want to copy the diamond textures because there’s too My texture files and just recolor them or do whatever you want to because it Maps them a certain way it’s just create a new one actually you don’t have to yeah so it’s your gonna just want to copy it no I think it crashed yep oops let’s Close that cancel let’s run it again and we’ll create a new world actually because it looks like that one may be corrupted probably so let’s just create anyone yeah it Maps the textures in a certain order not sure what that order is but that’s why I just took me old Lots of lag here alright so let’s go into our combat tab here is our armor helmet chest Lee legs boots well throw these Boop uh looks like the leggings texture is broken is that from well obviously it’s not this part so it’s sapphire – did I spell It wrong I bet I spelled it wrong let me see what it’s named real quick download desktop let me make sure I have the right thing textures armor looks like I have it right honey just copy them me looks like the same thing sapphire : textures armored sapphire 2 Dot PNG that looks correct I mean I’ll show ya still not working black huh that’s weird that’s never happened before huh let’s only just do this this one works remember any spelling errors which I can’t find a spelling error will actually create it to get messed up so I’m not still messed up hmm did I type it wrong me if stick is that it because of that stupid space right there I swear to God if that was the problem yeah probably was because I don’t think you can have a space in between an if Because then it’s like it’s getting an issue of nothing so no that didn’t fix it all right so it wasn’t that space like sapphire right okay yeah mm-hmm should work I don’t see why it wouldn’t hmm maybe if I do if maybe it’s because I forgot that getting item got beat it Get item dot equals and then have that maybe it’ll work sapphire textures armor sapphire to PNG that’s correct I mean it was right oh there we go it worked yeah it was because I actually forgot to put dot get item I guess oops yeah that’s a mistake there we go Now it’s all fixed though so as you can see we got our swaggy Armour on here oh yeah look and swagging that purple-ish alright so that’s gonna end it for today thank you guys so much for watching i’m sorry about some of the technical difficulties that’s just you know normal You’re gonna have some technical difficulties along the way make sure you don’t make stupid mistakes like i do makes but don’t make spelling mistakes cuz it’ll definitely affect what you’re gonna do so once again thanks for watching next week or next video should I say we’re gonna be making a new Creative tab specifically for sapphire so you guys can look forward to that once again thanks for watching don’t do it I’ve been a blemish me I’m gonna English um don’t forget to hit that like button if this helped you I love to see all your guys feedback I’ve been getting A lot of positive feedback on these tutorials it seems like you guys like it so that’s why I’m gonna keep doing them so don’t forget to hit that like button show your support we’ve comment on what other things I should do out of the creative tab and I Think I’m going to do food and yeah I’ll see you guys next time peace Video Information
This video, titled ‘[1.7.2]Minecraft Forge Modding Tutorial #4 – Armor!’, was uploaded by techgeek1019 on 2014-03-22 16:31:58. It has garnered 9058 views and 59 likes. The duration of the video is 00:35:38 or 2138 seconds.
Check out my other tutorials here: http://bit.ly/TechgeekTuts
Don’t forget to Subscribe: ►►►http://bit.ly/SubToTechgeek1019◄◄
src code: http://bit.ly/ModdingFiles
Forge Download: http://files.minecraftforge.net/ Email: [email protected]
Social Media ● Twitter: https://twitter.com/techgeek1019 ● Facebook: https://www.facebook.com/techgeek1019youtube ● Instagram: http://instagram.com/techgeek1019
Intro template supplied by GoldSolace: http://www.youtube.com/user/GoldSolace
Intro Music by Approaching Nirvana : http://youtube.com/user/approachingnirvana Song: Tracer Buy it here: http://bit.ly/1223eap
Thanks for watching all my geeks and gamers! Remember to rate, like and subscribe if you haven’t already!