Hello and welcome to your sixth Java low and welcome to your sixth the Minecraft mounting tutorial in this tutorial we will be making a new enum tool material so your mod can be compatible with other mods so let’s open up our the regular enum tool material and delete are Actually we’re going to copy not nevermind it’s going to delete it and return it to how originally was so now we need a copy and paste the whole enum tool material and then create a new Java class called enum tool and then whatever you want I’m just going to put mod Inside this paste the enum tool material class rename NM tool material to eat up to a mod and stuff like that so now you make our old emerald actually I’m just gonna control Z this back copy put it in there and is not working because when you add a semicolon make Sure it sound calm at the end because that does not work too well so then here it’s not necessary but I do it I’m anyways we put all day I really don’t know what that does actually but oh what the heck so they’re made your new enemy To a mod now what you have to do is part that’s actually it’s not actually hard but it just takes a little bit make a new Java class called item tool and then let’s just put mod open up the existing item tool copy and paste that Rename your stuff the item to a mod and then down here it says protected enum tool material you need to put protected enum tool mod then that should be all from here except for this here I need to put in them to a mod also and then in Them tool nod along with this stuff change to eat them to a mod there you go it works that’s all for the item tool class next we need to make another new Java class called item pick axe mod and we’ll have to copy the original item pick axe Oops let me do that copy and paste this whole thing put in here same stuff as before in tool mod m tool mod make sure you also have to extend item tool mod or also will not work inside this if you want actually no that’s not Important what I was going to say if you want your block to be mined faster by certain tools put it here in this blocks effective against so I guess I’ll do that come on work okay mog underscore emeralds dot animal door there you go that works and this is important if you Want to hear I’ll just explain it what this basically is is if you want your emerald or to only be able to be mined with like let’s say an iron pick you do this copy and paste one of these make it if block is equal equals to monitor score emeralds dot Emerald ore and the harvest level three is diamond two is iron so we’ll put to this makes it so you have to have an iron pick to mine it so we’re done here ya think we’re done here close these next we need to make a item tool shovel Um nope oops I’m sorry make an item spade a new item spade out of it today um put item best spade mob do the usual change this change that you don’t have to change anything else next making item X if you want to skip ahead in the video I’m pretty sure There’s nothing else important if there is out put an annotation correcting myself next we make item sword new class item sword mod the usual copy and paste enum tool mod you know tool mom into a mom and him to a mom that is all for This by the way you can just extend item it’s fun next we’ll make a new item ho close this out item ho oh come on hindu there we go that’s all for this and I believe that’s all for those my mouse ran out of batteries I’ll be right back okay i’m Back with fresh new batteries let’s start it again go to your mod emeralds and I need to change these two enum tool mod what I’m going to do is just find a num tool material replace with a numb cool mod or place all there we go bunch Of errors here but what you need to do is that mod after all these because you created a new classes of all these you need to do that there you go that should work now so I’m going to recompile and test it we’ll see you guys then Okay hey guys I’m back and as you can see i got my stuff and it’s working your ability works and everything except for the hoe the hoe doesn’t work for some reason oh i’ll have to fix it so i’ll probably be fixed in the video so I’ll see you guys later then Video Information
This video, titled ‘Minecraft Modding Tutorial 6- Extending your EnumToolMaterial(modloader)’, was uploaded by Zac Wood on 2011-07-30 23:49:21. It has garnered 2359 views and 13 likes. The duration of the video is 00:11:05 or 665 seconds.