Hello everyone it is eyeglasses to doom your favorite doom character who just happens to be wearing glasses and today i am going to be starting my modding series the reason that i’m actually starting this series is for a simple reason I i am at all honesty quite new To modding and minecraft and i find that i do a lot better by teaching it so another thing that you should probably know is that this modding series my modding environment is completely based off of the one in is completely based off the one that mar shows and is Let’s mod series in fact I completely urge you to watch a series to watch v WS e series this series is just for me to help learn more and hopefully to help touch you touch not touch teach other people about Minecraft matic the series will be on github in fact i’ll put the Link to this series will be put on to github another thing that you should probably know is i am currently working on another mod for minecraft right now called science and magic called science and magic so just another thing i thought you might want to know what else What else what else um oh also um i will be teaching this series a little bit different from other series that I’ve seen I will not actually be going into these with i should say you need to plan because i do have a plan for most episodes or fractional episodes really But i will not be going into every episode saying oh i will not be going into a series like oh this episode we’re going to be doing blocks ingots bloody body ball it’ll really just be going me doing oh I’ve learned this let me show You how it’s done and then if please if anyone out there is watching us and they think they’ve found a better way to do it please contact me I am completely and willing to change do updates this series if there are any better I completely love I completely love constructive Criticism please note I said constructive please don’t be one of those people who say you you suck it’s just that doesn’t make me want to make this series doesn’t just not constructive at all so let’s get started the first thing we’re going to want to Do is we’re going to make the main class for the mods so we are going to do this we’re going to name this class glass touch me so you’ll see right here that I’m using this in the default package we don’t want to use the default package Not going to explain why we don’t want the default package we just don’t so we are going to do it this way we’re going to create a package that is can’t remember the exact word right now but Oracle standards so I’m going to use my url us San craft dot us Sam cracked Glass tub now if I really wanted to I could also make another package and this this package I’m not going to use this one I could also do it in a different way now this is a different um okay okay one second this is different from the Other all the way that i’m showing you because it’s a different way that you can package so that we can do the same thing so glass tut main not made there we go and then we could actually do it glasses of doom done mods dot glass top That’s just a different way we could do it I just want to use my domain name i’m paying for it so why the hell not so now we need to tell forge modloader that we are actually living among i just like to do this personally I just usually hit Enter once we do add mod for this right here at modest telling for Jamal voter that we’re loading a mod then you do import or ctrl shift 0 if i remember correctly and you add missing attributes that’s my then I do con comma not period comma Name comma no none that come back equals comma and version comma comma version equals and just because my OCD makes me do this again this is completely by choice you don’t have to do it that way I’m not going to do the network mod right now how to show how to make it Tuned to a network mod right now because it’s currently out of the confines of what we’re doing and then I actually do change this up a little bit more after this and I’ll show you now but I’ll not show you right now i’ll show you a Little bit later now we need to do the at reference now we need to do the at instance model that is not at instance mod never at instance why did I put a V can’t spell today one sec let me just do something copy it’s just one of those days that instance and See it actually imported at instance fact I’ll show you I’ll delete this import right now to show you to make a point real fast and then you see at instance now you do for indices now you do parentheses and then you put it in The mod ID which is going to end the mod ID I’m going to call it glass cut the name of the mod is going to be glass cut the version of the mod is going to be 0.01 so the mod idea of this mod is the Mod ID is glass that so we do the same thing right here glass cut and then we do a public static glass tut main yeah instance to print this season see right here in you see how it’s airing out you just Duke you can either do import or you can You control shift 20 or is it Oh control shift oh very up control shift oh not zero control shift oh don’t know why I said zero I can’t exactly remember why it goes like this I really can’t I just remember that it’s kind of important I believe it’s in case you actually want To register multiple mods within the same and not have to register multiple mods with it the same thing because just because this is right here doesn’t mean that you can’t have several different mods so let’s say I wanted to do world generation mod all my world generation Would be handled by let’s say glass tut world jen and then i had glass world tech I mean correct me if I’m wrong you can actually create two different main classes and it’s just so that way you can reference it within the same area I can’t remember that’s true or not Correct me if I’m wrong I beg you to correct me if I’m wrong but I believe that’s why it is just I think I’m wrong just yeah so then now we’re going to actually make the the event handlers so add event handler and I need to capitalize Ethan Chandler At event and that we’re going to do public void free in it parentheses FML pre I can’t spell right now so I’m just going to copy and paste it over pre FML pre initialization event event and then rectus the import an event handler the import FML even handler and then we do At event handler cliff Floyd in it in it parentheses FML initialization event event import the reason I’m not doing control shift zero it is because i personally don’t use it that much I it’s a little bit of a control issue it’s mine could be the OCD I don’t know Eventhandler and Boyd post in it parenthesis FML post initialization event eat it I’m just copying these overs because I I’m mod and yet on one of the excessively slow typers and I can’t spell so most of a lot of times and you’ll see that later on this series Now this is um right here is where we’re going to actually register the first so right now we’ve gotten everything we need to start making them on i’m not going to show you how to make the MC mod info right now it’s just i’m not going To at this exact moment i’m going to show you the first thing i want to do is actually make show you how to make a creative tab the reason i want to show you how to make a creative tab instead of a instead of a on one second i’m Going into my other directory real fast the reason I don’t want to show you how to do a there is no one should i do create tab is because I’m this is where I’m going to store all of my items for this mod now I might even make more Items the reason I do it that way is because I personally find it annoying to have to search through my items through vanilla crafting debt through vanilla tabs again it’s just one of my weird idiosyncrasies so one second I just have to pull something up okay but to prove To you that this right here is a mod it will work I just I just need to save this I will need to go no matter on configurations I’m going to duplicate that client logs last up I am going to quickly move add projects classed up Just do that little fast there we go apply there to prove that this is a mod and it will work just do that run real fast see right now i have 4 mods loaded glass tut mod sit it’s loaded it just doesn’t have anything working on it and there we Made a mod now um second another bit of my OCD popping back in there okay so right now we have made a we successfully made a mod now the first not as I said before the first thing I’m going to do is I’m going to show you how to make a To the world a creative tab but um let’s do it this way okay now in order before we make the creative to have I want to show you before we actually get into the code for the creative I’m going to actually change these two references i’m Going to make a reference class so i can reference my name’s my name’s my versions of my mod ID the reason i want to do this is because there are a lot of times in a mod where you want to actually reference its mod ID or name a Lot of times and it’s just i personally get really annoyed and i just it annoys me to have to constantly type out everything so i like to make a class called light will live metaclass i like to make a class called reference reference hopefully i spelled it right Artie yeah I think I spell direct reference and I like to store it in the lib package so and inside my lip package I have a one site I need to do one thing inside my lid package I hold all the names of my own names of my um all the Names all the static names well not all my static and I’m zaida names class completely dedicated to that so name is classically dedicated that so inside the reference file we are going to start referencing all of the all the important information for the sin of the Mod so first thing we’re going to do is we’re going to reference a the mod ID so public static so i can i’m just going to do this real fast lexa meet in the winter they don’t do that public static string mod ID equals quote and it was Glass tut now we’re going to make public static string mod underscore name equals glass cut now we’re going to do the version public actually I’m going to dig this way public oh by the way make sure you don’t capitalize things stupidly like I just did string in C version MC underscore Version equals one point six point four in public static string mod version version equals equals in then on MC version pc version + quotation marks dash plus a mutant version + this one point six point no got down zero point zero point one safe oh wait so Michael sit I up Oh Maybe because I can’t spell copy paste there you go and there we go what this does right and now what we’re going to do is we are going to change the mod ID to reference dot so I can’t spell right now reference dot mod ID okay Oh Something that I forgot to do and make sure you do this you need to put final right i forgot to do that that’s why i was getting an error there we go now which you see no more errors I’m just going to do this for the sake of time copy Paste dot my name and then this completely reference paste dot mod version in fact actually you can actually make change this and set a private-public you can make it private in fact i would recommend that you make it private so that way you don’t get unnecessarily clumped up stuff see it Still works now the reason that I do that is so that way i don’t actually have to type things out 40 million times so I that way I don’t have to type out glass tut I meant to show that to you early before I said we were going to get Started create ads but you’ll see in a second why I do that for creative tips so now we need to change this to reference dot let’s get rid of that reference that mod ID this stays the same you can’t do anything about that so now that that’s been made we can now get Started on making the our creative taps now I’m going to do this the same way I’m another thing I should quickly note is that in this tutorial series I’m not going to be putting everything into this class I just hate that bugs me when I see that so I’m going to make subclasses For a lot of things as subclasses and sub and make packages for a lot of things because it just it bugs me to no end when I see that so I’m going to make a new package for microwave tech tabs called package creative what creative tab make a new class Actually let make the new class in a second but the now too okay now that I made the creative tabs class I want to make a I want to make a class for my creative tabs so the first thing I need to do is okay one second be right back i Need to get a drink of water hello everyone i am back i am want to go get some water good and started I sorry about getting a little tongue twisted at the end I just need to get something to drink so now that we’ve finished that um you should be noticing that I’ve Actually changed the my reference thing up a little bit that’s because I started it and I realized hey that looks a little bit weird and confusing so I just changed it up a little bit i have added version v my mod ID the reason I did that was for because 1.64 dash version 1.6 it just shows what version of Minecraft it’s for you can also make its that way it won’t load without a certain Minecraft version i’ll show you how to do that in later so we’re going to do now is they’re actually going to create a creative tabs class now we’re first Thing we need to do is we need to go unto receive it says at instance we need to double we need to go down there I just I just do okay there we go then I’m going to do a public aesthetic creative tabs creative tabs Then I’m going to call it tab glass and then we are going to do people’s new and then I’m just going to just to make sure I type it out right and I should type it out right but just make sure copy I’m going to paste it right here creative Tabs last tab and then i’m going to call this reference i’m going to do reference.com our name and I should be getting an error for right here i’ll just do import and here is a little bit more tricky the reason that this is tricky is people actually know now it Gets a little bit more tricky i had to import this the reason this gets tricky is because it wants me to create a constructor tag glass it once we couldn’t change this constructor to creative tabs class steps but we don’t want that so I’m going to do undo that We want it substantive tips so what we’re going to do is actually we are going to do three attempts and then to get rid of that error we do extends creative tabs tabs do extensive tabs we import creative tabs then we need to construct ur string and there we go now Save this we should now if i remember right we should have a creative tab that works another sip of water and here we go itemgroup glass tut we don’t want that first of all first thing I’m going to show you is how to change the icon one second go back here no Don’t do the way I just did I am not sure whether I stopped it through here oh I pressed X Tom that doesn’t matter just won’t save your settings I shouldn’t if they don’t do that it still works profess um now that second I need Two down look at my notes ok now what we need to do is we need to go under here wait to do at side only parenthesis side that client the reason that we do this is because the server doesn’t understand block icons so the the server has no Need to see to see the server icon not the server to see the icon fourth look I’ll show you how to do this with custom icons later I just need to i’m just going to show you how to do it with vanilla for right now and then we’re going to do public static Public static no not public static public end I’m sorry because it looks up the thing because it looks up the icon by block ID and I’ll show you what I mean in a second return get tab icon item index parenthesis I it saying I didn’t import once like I’m going to Just copy it over for a second because i’m not sure why that didn’t work OH because I spelled a lot of things wrong in there that’s why and then I do return I just can’t spell today return and one second public god damn and yeah there You as I told you before this actually looks things up by block ID so that way let’s say that your block changes not your blood changes let’s say that your thing change your um icon changes and i’ll show you what i mean once I get Into the concept of block IDs in a later tutorial but it’s so that way your icon doesn’t change because the you register your icons to a block and then your blocks are called by item ID in the world and the reason that you call the Item ID is in case you change it it doesn’t change the block the only ones that you can really be safe about that are changing RV blocks that are in vanilla minecraft and I need to see the block ID for well I should just be able To do this block glass block because I should be able to do this this way dot glass okay one second i’m just going to do it this way I remember the block ID for glass so they don’t store their block ideas right here do they yes they do Okay that’s just fine glass glasses block ID is 20 so I’ll show you it’s doing it by block ID so i can just do it by 20 and it should work now let’s run this see now we have the item icon of glass so nothing’s in there yet because I Haven’t stored anything yet but eventually something will be so now that we got that work now we need to actually get the now we need to get it to read it so that way it doesn’t actually get that item groups tabs thing now before I tell You that I need to tell you why it as i said be why this why it didn’t work when I did that later um the reason that didn’t work was because I was relying on another method that I use to call my block ID so in all reality you can just Type it in like this the reason I did it that way was because i forgot that um because I’m so used to doing it a different way than um different way than the way that I just showed you mainly because it’s because of block IDs and then the concept of convicts and i’ll Tell you about configs once i get into block ids and block at ease in item ids and another and i’ll show you why that would work otherwise but just for now just realize that this only works because the block ID right here so one second i need to get something okay okay Okay so as I said be as i said before sis after so once you get the block ID of the item icon that you want to use or then i’ll show you how to use to change it to a custom item icon in a later tutorial probably next tutorial you got Debt most definitely next tutorial once you set the block ID of the of the item that you want you can just close out of this you’re set so the next thing we need to do is we need to actually register it because if you notice as i Said earlier you actually get a thing that says items groups dot guys tut now we don’t want that we actually want to change that to something else so what we’re going to do is I am going to create a I’m going to actually create a creative tabs language registry the Language registry I can’t explain things right now no language registry is what allows us to read it read it without getting those of weird weird things so I’m just going to call this gets going to do that and I’m going to make a method called i’ll call this language I chuckle a tab lang reg until sees no stupid mistake stupid stupid mistake and great water okay so now we need to actually go into there now we need to actually register it so we actually wouldn’t do is we’re going to register in the language registry that call doing Language yeah language one second of something there we go laying new age registry language registry dot instance dot add string localization and then we’re going to do item group that difference I dope looks like I need to itemgroup once again comment that up for a second painter I don’t remember exactly what The item group was items group glass cut comma and then we’re going to do it that’s hut and we’re going to call that e in underscore capital us underscore us comma reference dot my name save now if all goes according to plan hmm it’s interesting we try something else for fast String to add at localization at instance maybe it’s because glass cut needs to be catalyzed kill that show the wrong one there we go I just didn’t capitalize it right so now we have it named glass tut so now we have a special creative tabs That we can use for all of our own stuff so a quick overview of what we learned today sorry if it was a little bit hard to follow I will try and change that with my other tutorials we created a second no we created a mod and I showed You that you can trade a mod and yet have it do absolutely nothing and do absolutely nothing and I showed you how to make a creative tabs so in order to make a creative tabs you do public static creative tabs tab whatever you want the thing to be I’ll show you why You do this in a second well not in a second in my next tutorial then you do equals new then you name it the name of the class that you do creative tabs in the reason that I did it this way and I did the Korea caps is because in case You do multiple tabs so let’s say that science let’s say that in a mod let’s call it the tool the armor tools mod the armor tool parts mod or whatever you call it let’s say that in order to make the tools you need to have used parts so Then you have a parts tray of tab where you store all of your parts it’s just it’s the same concepts for why Vanilla has multiple tabs since in case it’s just too much stuff to all have in one tab so you just do that you name it Whatever you want creative tabs then you reference Monteith then you go into the creative tabs class and then you do extends creative tabs public creative tabs whatever you want the creative tabs class name to be string that label super label at site only because you only want The client side you want the client to read it the server has no need to know what the text is for it because was it and then you do public int get tab icon item index return block ID there has to be the block ID of the block so let’s say I Want it to be stone I change that to one I believe if i change that to one it should be the block ID the stone I’ll check it out because I can’t exactly remember if stones block ID is that still that is one of the weirdest bugs I’ve ever seen a microwaved see stone can literally change it to whatever you want um 30 change that I’m not sure if I can change that in debug mode in fact i’ll test it out right now I don’t think I can that would be awesome but I think A little complaint at me see I’m actually going to test something to see if it complains at me no it works it’s actually surprising so I can actually change that dynamically cool i’m going to actually do that right now just try 16 control this no okay oh it’s because It’s such a large file that’s why let’s just save it gresham that yep I crashed it because I am typed in s don’t do that anyway that was just me doing some stuff I really shouldn’t have been doing anyway don’t that was just me playing around so remember the block Eddie and Then you need to actually reference its name so that way it doesn’t give you word things make sure it’s spelled right otherwise it won’t work so I made a small method called language registry which I am actually going to cut and move into here but you won’t let me do it undo Yeah but you won’t let me do oh well don’t care it still works so that’s about it that is how to do that sorry took 40 minutes I was not expecting that this is so hopefully you understand how to microwave tabs and my next tutorial I Will show you how to make a basic block this is glasses of doom Sonia Video Information
This video, titled ‘Minecraft Modding(Forge) Tutorial #1 – Creative Tabs’, was uploaded by glassesofdoom on 2013-10-11 21:52:20. It has garnered 67 views and 2 likes. The duration of the video is 00:44:05 or 2645 seconds.
Sorry about seamless rambling here’s a link to the project on Github https://github.com/Glassesofdoom/Glasstut
Go check out Pahimar’s lets mod: http://www.youtube.com/user/Pahimar Go check out Vwse’s Codding in a Cup of java: http://www.youtube.com/user/VsweGoesMinecraft