Greetings travel viewers and welcome to the second video of the minecraft modding for beginners oneplus 6.2 with forge in this episode we’re going to make our main class when that which is the class where we define every item block creative tab mob whatever we want to make in the mod So um let’s just get started so what you want to do is you want to locate it to minecraft slc with all the packages and we want to make a new package and we’re going to do that every time uh we make like a new what should we call it um Class three i guess so all the items will be in one package and all the blocks will be in one and you know just like that so first of all i’m going to start up with java buckets now let me just explain this real quick Uh yeah so in your mcp uh forge mcp source so forge mcp src and minecraft whenever we type in here we’ll make folders in in uh here no not there that’s the style of mine in here so for example java pockets will make a folder called java package if we put it Dot and we put mods it will put another folder in the java box folder call mark so i’m just going to demonstrate this got much i’ll make So um that should if i am not wrong yeah i see java buckets mod martium main in here will answer classes one after one so uh let’s just go ahead and right click this and make a new font or just press the cpu so we’re going to call this main class because You can call it whatever you want and yeah everything except there is some things that you don’t know you cannot put in there but you’ll see what you can put in there it will give you an error or something so this is our main file two things we’re gonna have to add Before your public class or these two lines which is required by ford so when you do add mod mod id equals what i usually put here uh let’s just make the other activity and then a name and then a version and these are all strings and you want to import mod And then all your impulse will be up here just you know like in my stylus mod i have this long list of imports going from here i don’t know it’s kind of long so what you want to put in here is i’m going to Put in i usually just put in the name of the mod so for the stylus mod that would be star wars mod i’m just going to put martium in these and the two first and then the version i put the version of the mod so this is version one And um the next one you want to do at network mod um brackets again client side required equals for that one uh require equals true true um what’s called a server side server side required equals false do not play around with these for now we’re going to do that in the future but Just make a decision now and you want to import a network so uh no errors except for these yeah so uh let’s just get down to the next thing now uh what we want to have here is our initialization so i’m just gonna make a comment called image yeah in this location Um and um we’re going to add our items blocks and armor and everything in there later on so what you want to do next is you want to have another app and here you type in it shorter version of inspiration um we want to make this method called Public void load just like the smart loader if you have watched my older tutorial and here you want to put fml which is forged loader Uh event and uh you just want to give a shorter name so i’m just gonna um And open up some curly brackets you want to import this and import in it and uh go ahead and press save now this is not the um definition Yes um this is where we will put like um [Applause] i guess the details we’re going to define the actual uh files that we’re going to use for our items and blocks and we’re also going to add names and registering and yeah kind of everything will be in there So yeah that’s basically what you need now one more method that we need in this file is Something i really never use it’s just the public and then you want to type in your name and then brackets open some code brackets just like that and then I am really curious about why do you give me errors this is everything we need for now And um yeah that’s pretty much it if things don’t fix themselves in the future i’m just going to go ahead and have a little development but um this is basically what you need and um yeah i guess that’s it for this episode which kind of short But um yeah this is all you need now actually just go ahead and make a new new phone class file you can call this whatever you want i’m gonna call this reference Um and i’m not going to add anything to this farm right now but we’re just going to have it i’m kind of irritated in this era let’s just think of where is it Well i hope you guys enjoyed this video i see you guys the next video where we will go ahead and um hopefully this arrow will oh hopefully these arrows will um get away and uh we will make our first i don’t know blocker item we’ll see at that time So you guys enjoyed and um as always have a great day or night and bye greetings and welcome to the first episode of the microphone for beginners So why don’t we Video Information
This video, titled ‘Minecraft Modding for Beginners: Tutorial 2 Setting up your MainClass.java [1.6.2]’, was uploaded by JavaBuckets on 2013-08-11 14:19:52. It has garnered 1946 views and 15 likes. The duration of the video is 00:08:00 or 480 seconds.
Greetings JavaViewers We hope you really enjoyed the video, and we would appreciate if you would Like the video! i mean it only take a second
In this Video I will be teaching you how to set up your MainClass.java If you want to see all the text tutorials as well link here: http://www.planetminecraft.com/blog/minecraft-modding-for-beginners-145146/
dont forget to Subscribe : And add this to your favorites
First Song: Vexare – Rattlesnake http://www.youtube.com/watch?v=Yxev1gL0ADk
Second Song: Rameses B – Meaning of life http://www.youtube.com/watch?v=h_lRtkshuPI
Third Song: Rameses B – Visionary http://www.youtube.com/watch?v=ykI7glq9LRE
Like us on Facebook : https://www.facebook.com/Javabuckets?ref=hl
Follow us on Twitter for updates on videos : https://twitter.com/JavaBuckets
Thanks For Watching
– Seb Community Bucket (Video Guy)