Hey everyone Neil here coming back with another episode so last episode we talked about a couple episodes we talked about recipes and smelting so I figured now would be a good time to start talking about tools so let’s go ahead and open up our workspace like so and There’s a couple of things that we need to get out of the way so let’s go ahead and jump right in I’m going to go to my items class like so we’re going to open this up and up here where we have our declarations we’re going to call this Tools and we are going to do public static tool material and we are going to call this um let’s call this vanadium than a the tools but we’re going to keep that all one word and um let’s go ahead and leave it like that we’re going to go Ahead and import tool material and let’s go ahead and if you hold down your control I’m holding down left control it’ll turn this kind of into a link type thing we can click on that what this is going to do is just going to add us let Us go ahead and look at our tool material class that comes out of Minecraft so what we see here is the four five four five yeah 5 different embedded they’re not embedded like the vanilla kind of item materials we have would we have stone iron emerald when it come We’ll just think of this as diamond the harvest levels three and then gold now what we have below here is five different variables right we have our harvest level and we see the comment here which essentially kind of explains what that harvest level is so harvest Level right so you can use a wooden pickaxe to to mind like coal and iron ore but you can’t use it to do like red stone of course or gold or the lapis or anything like that right you can mind with it but when the ends up happening Is you go through you mind that block and as soon as the bra block breaks it doesn’t return anything it just disappears right so that’s what the harvest level is max uses essentially this is the number of uses that the material allows so we see right here we Have 59 uses for wood 131 for stone 250 a diamond one is 1561 and a gold only allows 32 uses next we have the efficiency on proper material so this is the strength of the tool material against blocks which it is effective against so what does that mean for us Efficiency on proper material as long as it is within that harvest level this is how efficient is going to be damage versus entity and then of course we have our enchant ability so those five different variables are listed here right so we can see what they are for Each of those on ours really what we want to do is we wanted to determine how strong it is so what I’m going to do is I’m going to set this I’m going to go ahead and set this up to where it’s as good as diamond but Doesn’t last as long so what we’re going to do is we’re going to put in a space and we’re going to type in enum helper this is a forge event hook type thing not really either of those things but what this allows us to do is utilize a Forge function that allows us to go ahead and put our own tools in so we’re going to name these vanadium tools and what we need to do now is set those five variables so i’m going to type these in real fast i’m going to do three which essentially means that it’s harvest Level is going to be the same as the diamond diamond pickaxe so i can actually mine obsidian with this bad boy I’m only going to actually give it about 800 uses though so it’s not going to be nearly as as it’s not going to last nearly as long as a diamond pickaxe What’s say for example I’m going to give it a max you snow and efficiency on proper material will actually go ahead and leave that the same we’re going to leave that as an eight point 0 float next we’re going to have a damage versus entity I’m going to make that a little Bit better and we’re going to put that as a four-point-oh float and enchant ability we’re going to go ahead and leave that as a 10 just like so um so what do we need we need and actually we need an equal sign right there so let’s go ahead and import Enum helper and there we go so now we’ve got a head and we’ve created our tool material like so so now what we’re going to do is we’re going to come down and under a little bit farther here under tools in our tool material let’s go ahead and create our different tools so We’re going to have public static item and we are going to have a vanadium pick X I’m going to just do a little copy paste here and we’re going to have five total tools the next one is going to be an X the next one is going to be a spade Or shovel we’re going to call it a spade because that’s in line with vanilla code oh and a sward let’s make this a little a like so so there we’ve got our five different items so now what we want to do is we want to go ahead and actually initialize Now let’s go ahead and register these items so we’re going to come down here we put this above our in got so we will just go ahead to comment tools we’re going to do gain registry register register item let’s just do this manually and it is going to be a Vanadium and ADM pick X and that is going to be equal to a new ng vanadium pick X and I want to make sure this is a class that we’re going to have to go through and actually create and what we’re going to do is we need to pass Along our on localized name so let’s do that vanadium pick x we need to pass along our tool material which is going to be vanadium tools will just copy and paste that bad right there and let’s go ahead and put our name again in again one more time so Quotes vanadium pick X so now what we want to do is we want to go ahead and create this class we’re going to go ahead and put this in our items class like so and do do do no we don’t want to do that we don’t want to do that you Don’t want to do that no let’s keep things clean items we’re going to do a new package and we are going to have tools and we let’s just go ahead and pick that up and we’re going to drop the tools right there and do a little save yes update our references doesn’t like Something here do to do to do to do to do to do we’ll come back to this okay so let’s take a look at our what this needs to be so what we’re going to do is we’re not going to extend item we’re actually going to extend item pick X like so We’re going to import that and what we’re going to do is we’re going to create our constructor we’re going to say public ng vanadium easy easy copy paste pickaxe what are we going to pass along we’re going to pass along a string which is going to be our unload eyes Name and we’re going to bring along our tool material as well which we are just going to call material in here we are going to do super and we’re going to drop in our material we are going to say this dot set on localized name is going To be our run localized name and let’s go ahead and stick it in our oh where are we going to do where are we going to put this into our creative tab which will be ng global dot ng creative tab there we go pretty easy pretty straightforward right so really what we Want to do is we want to we want to repeat this multiple times I’m stuck tools why I think that has to do with how i have my grouping set up whether it’s hierarchical not there we go let’s come back here see why this doesn’t like this do i register Block because it’s not a block it’s an item silly goose alright let’s say that and we’re going to again we’re just going to copy and paste this in multiple times and we are going to kind of go down the line here and drop in our other Variables now when I first did this on my development work space I made a couple of boo-boos so I want to make sure that I don’t repeat that again you’ll see that I am just dropping these in right here making sure that each of my lines are all the same there we go Do to do to do to do so let’s go through and we will just manually type these and then we can go in and create the classes for them spay ed this is going to be the ho and this would be the sword super cool yeah yeah okay so let’s go ahead And create this class it is going to be under tools like so much like we did with our pic x or x is going to do the same it’s going to extend item ax like so import that let’s go ahead and add the constructor but in addition to Tool material of course we want to do a string and it is going to be our on local iced name like so lip to do this dot set on localized name and localized name so we’re going to make sure that it gets into our creative tab this dot set Creative tab ng global dot and she create a tab though so visibility protect it let’s change this to public like so there we go sup likes that now let’s go ahead and just repeat this with our spade dot tools this is going to extend item Spade import that We will do our constructor that’s public so that’s good string on localize name and we are going to have this dot set on localize names that’s of course just like last time creative tab this G global dot set creative tab so get rid of the to do all that jazz and that’s Good so we’re going to head back over here we are going to do create our class let’s bend under tools extends item hope import constructor its public we’re going to again pull over our string on local eyes name and it will be this set on localized name on localized name beautek Again and get rid of that to do and now all we have to do is our sword so let’s do our sword tools extends item sword constructor like so yeah yeah hmm hmm I’m thinking I’m thinking I’m thinking I’m thinking yeah we’re good we’re good cool so that’s actually all of the coke Work that we have to do for those guys now let’s take a look at how we are going to render these bad boys doo doo doo doo doo hmm I’m going to go ahead and just choose clothes all on these and we’re going to open up our render glass our item render Class like so we’re going to come right here tools and we are going to have reg item ng items dot Canadian pick X we will do our copy paste on this x so we’re going to have our pick X and have our X going to have our spade are ho-how And sort now I’ve already gone ahead and created some textures for these so what I’m going to do now is I’m going to drop these into the correct location so we’re going to come down here to our item textures and I’m going to grab these real quick like there there there And I’m going to just paste those in right like so there we have them right in between are you got now we need to look at our models for them and as you guessed it what we’re going to do is we’re going to jump into our mod development folder and we’re going to Look at our vanilla assets and really what we’re going to do is we’re gonna just replicate the JSON files like here is our diamond axe right so you kind of diamond axe we’re going to select all of this like so we’re going to come over Here and we’re going to do a new other untied text file and we’re going to paste this bad boy in so we of course need to put in our mod ID and we’ve got our X so we are going and name this correctly this is going to be in adium Acts like so we’re going to save as and we’re going to come down and drop it into our models item right here vanadium acts just like our on localizing make sure to put jason at the end of it so let’s actually jump in and one make sure that our items are Appearing and to make sure that that initial texture loads up probably going to see some errors in the background for our missing models for our other classes yeah you’ll see vanadium pickaxe right there don’t have a model for that so jump in New World and let’s see what We’ve got here got our sort our pick a car x that and that it didn’t show up for our X so let’s check and find out what’s up with that what is up with that hmm center console see what it says we’re looking for vanadium acts native spades babe sword sword Huh that’s interesting Oh she’ll put off this is what i have in the original ok that’s weird well let’s do some troubleshooting figure it out so our textures right looking for items and we’re looking for vanadium acts and of course we can’t open that them again There’s the axe so why did you hit render correctly misspelled something I ok I’m senior reason why that should be working which is obviously something that I’m missing vanadium acts there it is everything looks good do we need a block stay for this not a Black state but uh no we don’t need a block model for it so what am I doing wrong yes like you tell me hmm it’s good right there that’s weird um you know what we’re gonna do we’re going to press ahead and we’re going to trouble a do this in a Little bit so what we’re going to do now is we’re going to come back here and we’re going to look at diamond pickaxe we’re going to grab the code for that you’ll see that it opened up right here and it’s for the outside he goes to the Outside it’s an outside thing I there we go yeah so this is going to go for a pickaxe it sees outside let’s see here pickaxe vanadium there we go and we’ll go ahead and file save as and drop this into assets ng models item like so this will be vanadium pick X Like so sweet I’m still irked as to why that other one isn’t working I need to do this dang it so highlighted f 2 dot Jason and you know what I’m pretty sure that all of these are actually the same so just to be sure I’m going to check my development environment This is our speed 0 90 135 to do to do to do today to do to do to do to do to do to do to do to do to do good so what we’ll actually do is we will just go that was our Spade let’s make sure our Sword is the same okay file save as Oh save as our sword and our spade like so now let’s actually go ahead and open up our lang file and put those bad boys in here that Eric completely threw me off i’m all for klimt now So we are going to do item dot the lowercase an ATM pick X dot name is going to be our then ATM pick X like so almost done alright cool so let’s jump in and see what’s up with this why is this not working I might have to step Away for a sec and figure it out what we’re gonna do is we’re going to watch the console for errors of pop up here there’s one there’s another vanadium an axe the mania max ng item max rendered all of them except the accidental as a pickaxe I know I did that that’s what are you for copying and pasting oh boy oh boy let’s close all these because we’re going to be open up quite a few of these shame on me when I copy and paste in cheap items item this will actually be Oh like this you Guys probably saw me while I was doing that you’re like a dude dude you’re missing something and actually you know what I’m going to do here is in all of the vanilla code for the shovels it shows up as a spade but when it’s defined up here it is actually shovel so I’m going to do that like that now let’s figure out what’s up with this ax you have to ax is it could it be vanadium axe x.x that’s right texture name is right so what is up with this exception loading doesn’t look like it’s any of my classes in cheat item There’s got to be something that I’m missing here well you know what I’m going to do is I know that my pictures good i’m just going to delete this and just create a new one so we’re going to grab this like so copy that paste it in here we’re going to Change it to X we are going to save it as source resources assets ng models item alright as Samuel Jackson says in Jurassic Park hang on to your butts let’s check now so I don’t know maybe you guys saw something I didn’t leave a comment below but it looks like it Worked at this point yep there we go so what we can do is get rid of all this stuff sword grab our pickaxe shovel shovel and X so let’s race now make sure that these are all behaving like they should cool that volume is super loud cut down tree I have a feeling that we’re going to be killing a sheep be here in a second zero yummy yummy lamb chops so that behaves the way that it’s supposed to okay has durability that’s good if we hit actually uh Lucy here if we hit f3 + H Maybe we have to do here f3 + H there we go what it does is it actually shows us our durability on these so we’ll see that 800 durability or shovel cool so 788 787 so we see that going down let’s find something to dig that’s In the big right there I think we got something over here we can date yeah we do like so our bauxite ore sweet and durability on that went down by one super cool alrighty I like comment subscribe all that stuff let me know if you have questions below I’ll Try to get to them in the meantime thanks and have a great day Video Information
This video, titled ‘Minecraft Modding 1.8.9 – S3E9 – Tools’, was uploaded by Neale Gaming on 2016-02-21 02:02:56. It has garnered 723 views and 21 likes. The duration of the video is 00:34:26 or 2066 seconds.