I guess you’re minecraft here welcome to yet another video today we’re going to be adding some tools to the game so the first thing that we want to do is we’re going to actually add a comment because every tool has a tool material which is basically like all the stats about It so if you do slash this means it’s the comment to materials and it’s just going to say where all the materials are so public static tool material you can press control space to finish it off and i’m going to call this copper actually copper material and it equals to enum helper dot Add tool material now this has got quite a few stuff oh the name can just be the name little material so that’s gonna be copper now i’ve actually got this word document linked in the description for download this is gonna help us fill in these So as you can see these are the default harvest levels so i think ours is going to be like the same as iron so harvest level i’m going to put it as two now max uses see like the durability so diamond has one five six one ions 250 I’m going to make this one 300 efficiency so this is the mining speed so this is the normal mining speed so we want us to be like not as good as iron so i’m going to say about 5.0 f so 5.0 f damage so this is damaged versus entities actually swords At different ones so damage so i think ours is going to be the same so 2.0 and finally enchantability so this is like how it just determines like how when you enchant like what enchants you get so gold is 22 minus 14 and is going to have 12. So we’ve added that to all material now we’re actually gonna go and make a new package it’s going to be for items because we like with a block we can’t use this here this new item you actually have to make your own so in here you want to add a new class And we’re going to call it item mod pickaxe going to create another class item mod x you can create another class item mod ho another glass item mod shovel and yet another class item mod sort so all you have to do for these is really simple so just extends item pickaxe yep And then asset credit constructor for the tall material which you can do make sure this is public and then you actually i’m going to put the localized name in with it so string bundle and localized name so then we can just like set it so This dot set on local’s name or no close name now i can actually select this and copy it save that that’s all for that class now let’s go over to my item mod x and this extends item x just ctrl shift o to automatically import and then just paste this and change the Constructor and then all for that class and then same again item hoe ctrl shift o paste change to constructor save close extends item now is it i think it’s no it’s item spade they use spade i use chevolt does it really matter same thing actually you don’t need to Add that what am i doing just paste it and change to constructor it’s a lot repetition and i and this extends item sword and ctrl v change to constructor now we can in fact save now what we can do is i’m going to add another comment here for tools and This is actually going to be auditory so it’s public static item pickaxe copper and score pick um static item ho and that’s copper and it’s got ho public static public static item spay copper shovel shovel public static item sword copper let’s go sword now we can just control Shift o automatically import all these now we just have to initialize them so i’m going to do another comment here for tools so copper underscore pick equals a new item mod pickaxe and this is copper material and it’s going to be copper underscore pickaxe and i’ve no idea why this opened up here Now i just got we can actually copy and paste this to make our life a lot easier so one two three four and then just go through so a couple i do not change this to cover unschool axe and just import i should go axe axe shovel shovel shovel and sword Sword and sort draw shift o to import them again that’s opened up again now we can just register all these so i keep doing comments so i can like look back on this and see everything so register item let’s get a couple of these so copper pick And we can actually copy and paste this copper pit copper axe copper hoe cover shovel and copper sword and same for registering the renders just render copper pick and we can copy and paste this again so up here cup of herb axe cup shovel and copper sword Now this one in fact um obviously get everything done for that so i’m going to go into my resources and i’m going to just get some textures done and a lot so i’m just going to get names done as well so i’m going to leave a capsule item dot copper underscore pickaxe Dot name equals copper pickaxe you get the idea just copy and paste this a couple of times and that should be just done once we’ve done that i can save this now we can close that and now we’re going to get some models so back onto the word document that i made Now some other models will change so i’m actually going to copy this as you can see these these ones here in bold have changed so i’m just going to get rid of the boldness and we can just copy this from there and then what we’re going to do is go over to Models item and right click new text file paste and as before boe colon item slash copper it’s got a sword and i’ll direct your way back down to where it should be which is here copper underground sword dot js n and then you want to do it again So now we want to go on to the other one because this one also has to change a couple of stuff so i’m gonna defold it again i said d bold i don’t know what that’s doing okay just copy and then paste yep and save and All the way back down again in models item and this is going to be copper underscore pickaxe.jso and now don’t forget just to change this in here bioecolon item slash copper and now we can actually copy and paste this a couple of times so ctrl c Ctrl v and this is going to be copper undiscord axe and you want to open that as well and just change this to axe and i actually want to open that with so that’s pickaxe that’s the axe now we can paste it again so this is gonna be copper let’s go home And we can open this one up and change it to ho now we’re going to texture these in a second paste it again copper unscrew shovel and you can open up shovel and it’s going to be shovel what what no no don’t save wrong one that one copper shovel Okay so that’s all the models done now we can actually texture it so go back onto your um library thingy and get the resource pack again i love just being able to do this and it’s in items so find it so i’m going to just get iron sword so let’s open up this And you get the idea on how these textures work by now so ctrl a ctrl c ctrl n then i have to zoom in and let’s texture them that’s our saw so we can actually save this now so head over to wherever it is uh oh i’m putting my date um Put it in here and yep in textures items copper and just go sword save okay and then let’s open up all the others so shovel pickaxe i’m pressing control to do this shovel pickaxe uh axe hoe and that should be it so press enter they’ll just open folders and we can in fact Close these control a control c control n again let’s get texture in oh now that should be it so we can close this and now if we just refresh so right click refresh i should update everything and look at textures items and we have all them So we can actually run the game now and everything should work perfectly fingers crossed okay so the game is loaded so we have no errors in chat and you can see that it did in fact register it yep so everything’s going good so far um you shouldn’t worry about that that’s me Trying to do different tutorial and i really messed that up um yep get rid of diamonds so it yes so we actually have our copper sword here yep and it doesn’t do blocks i don’t know whether you the other ones will in fact be in tools so a couple of pickaxe cup axe Copper shovel and cup of now just to prove that these will work we can actually get some dirt and test out the hope and you see it works yep and um we can try it out in survival so game mode s and everything should be good that’s lovely speed And then obviously this will mine and like word would work and if i summon a creeper oh it’s on peaceful um someone pig and we can kill the pig and it works so that is all for today’s tutorial hope you enjoyed love seeing the next so yeah goodbye Video Information
This video, titled ‘Minecraft Modding Tutorial | Custom Tools (1.8.9)’, was uploaded by CJMinecraft on 2016-01-06 19:30:01. It has garnered 2115 views and 22 likes. The duration of the video is 00:17:22 or 1042 seconds.
Watch todays modding tutorial to discover how to add custom tools to the game.
Don’t forget to like, comment and subscribe!
Tool Material and Models – https://goo.gl/3ZHcyw
Links: ►GitHub – https://goo.gl/YkQYpu ►My Website – http://cjminecraft.theclever.me/ ►Modding Tutorial List – http://cjminecraft.theclever.me/modding-tutorials.html ►Modding Tutorial Playlist – https://goo.gl/ZnZWTd ►Facebook – https://www.facebook.com/CJMinecraft01/ ►Google Plus – https://goo.gl/3n1umj
For modding help or if you want to contact me, email me at [email protected]
My Schedule: Monday or Thursday: ►Modding Tutorial Wednesday: ►Minecraft Adventures Season 2