Hi Gracie democracy opportunity minecraft 1.10 mudding tutorial today I’m going to teach you how to set up your mod part two so last time we’ve got this environment variables up and you’ve got this environment for a mod we’ve we run it and do is play minecraft modded So yeah so we’ve got our development area sorted so what we want to do now is crack right into the code so first thing you need to do is make a package this is like sort of like folders we’re going to put it and if you have like a domain Like a website so say you’ve got C – minecraft dot-com or in Java it’s going to do comm dot c j minecraft but I don’t have that domain so I’m just gonna do CJ minecraft and then I’m going to do a bit of everything which is just where I’m Going to stick it and that’s a new package so that’s just our folders and I’m going to add a new class I’m going to call this bit of everything which is just going to be your main class which is that runs your whole mod so in here We also want to add a new class and we’re going to call this reference it’s where we’re going to store all that stuff about our mark so we want to add a public static final string and we’re going to call it mod ID and set it equal To nothing at the moment we need another one public static final string and it’s version and then you need another one a public static final string name and we’re gonna fill us in now so mod ID typically it’s either the name we mod or shortened version so it might gonna be Read but no capitals and no spaces now the name can have spaces so I’m just going to do bit of everything now one word and here I put in version so that’s actually the name I’m going to Moody’s around just so look nicer the version well for now it’s Just going to be 1.0 and I can do here you need to do at mod this is defining that we’ve this is our mod and we need to control shift go to import this going to do a mod ID is equal to reference dot mod ID name is equal to reference dot Name and version is equal to reference dot version and like soda or like us now we need to have two free methods that run at the different stages now there’s three stages to setting up like loading the game you’ve got the pre initialization stage the initialization stage and a post initialization phase And they just happen one after another so to define a so phase you need to do add event handler and you want to do public void pre in it is what I’m going to call it open up and out in size of these brackets which is the parentheses We need to take in FML pre in it and I’m going to press ctrl + space and we’ll just fill that in for us I’m going to pull that event and need to import event handler we’re going to do at event handler and public void in it and it’s FML initialization event so Initialization event like soap and that’s also event and finally public void post in it and this is just going to be FML post initialization event event like so it is setup and Mott pretty much so next what we’re going to do we’re going to make a new class and Call it dot util and it’s about all of our utility stuff so everything that is like extras our old useful classes that we need so I’m going to make a default class new tools and we can add a logo which is better way of printing stuff to the Console so the way that we’re going to be doing this is going to get a private static logger logger and what we can do is we’re going to import this logger by hovering over it go to the orga Apache one and then what we going to do is add A get logger method so controlspace and get logger now we need to actually initialize the logger so what we can do we’re going to check if it’s not equal to anything so if logger is equal to nothing then we’re going to initialize it so logger equals log manager dot get Formatter logger and it’s going to be reference dot mod ID and then it’s just going to return the logger which is great now in here we can actually log messages which is great you won’t be using this yet but I can show it in action utils dot get logger dot and then You want to do info just as a normal info I’m just going to say pre initialize pre initialize and it’s going to put these just for all ism I’m probably going to remove this after this video now we can close this class now and now when you sell proxies now what Are proxies proxies is basically you have two proxies the client proxy and server proxy server proxy handles will like tile entities and date ascending to the client side client side handles the rendering of stuff server like for entities server handles the entities but the client renders the client handles How the entities have rendered so we have to have these and I’m going to add one and new package called proxy we’re going to add two classes so common proxy can be our server proxy and a client proxy which is going to be a client proxy now the client proxies got Extend a common proxy like so so what we’re going to do is just add a public void register render we’re going to fill this in today they’ll be filled in in the next tutorial and what we can do is actually register vendors and overrides is method so because this has to be done The client side now orange do now it need to actually like state where these classes are so new to the public static final string and server on school proxy I’m school class that’s equal to nothing at the moment I’m just going to copy and paste this because what is for the Client side as well so a client proxy class and inside here it’s just the way you get to it so common proxy siege of minecraft double o-ring proxy so place that and then do dot and comment proxy for the server and do dot and client Proxy like so so now in here what we need to do is add a sided proxy server side and outside of proxy one just import this and one do server side is equal to reference dot server proxy class and client side is equal to reference dot client proxy class and all You want to do underneath this is a public static and common proxy and that’s a proxy like so and got import common proxy now in the pre only flies event I can do this after we’ve printed it out I was going to proxy dot register Enders Which is actually going to call both of these methods one on here and one here but it will only call call it on the client side here now we also need to make it is instant so at mod dot instance and it’s just reference dot mod ID then you want to do A public static bit bit of everything and get a call this instance like so now we’ve set up our instance and proxies and what I’m going to do I’m going to just run this game so that you guys can see this stuff happening in the console so I’ll show you this in the Console so when minecraft loads up we should be able to see in chat no errors and a working logger so we’re set in the player and if just move this to the side it’s constructing our mods now and here we should have BOE pre initialized great so it’s just run the pre initialized Code there and then we’ll have another one come out so it’s now only initialization phase so it’s just doing the Minecraft stuff then you do a stuff but as you can see mods is now here I’ve got bit of everything not no mod Infini information file found so when you fill This in now so on resources will already have this file now just go forward in model ID is BOE from reference mods name is bit of everything and a description of demand so add a bit of everything the version now we could just leave it At this I’m going to just change it to the version that we’ve got in reference which is just 1.0 minecraft version it’s supposed to do it automatically doesn’t change so it’s one point ten point two year out this is if you have a website so HTTP colon slash slash CG minecraft Doctors at clever dot me as my website offer just put in your name and credit a at me because I am boss and if you just run this this should actually update the text it appears on the mod screen okay so the game for the dub so should be Able to go to Mars bit of everything and we have everything filled in we can actually click on this and you’ll actually open up the link to great it has everything on correctly just brilliant and obviously everything will work exactly the same as you did last time because you haven’t added any items Or blocks which we hopefully can be doing next time so thank you guys for watching give like comment and subscribe I am out Video Information
This video, titled ‘Minecraft Modding Tutorial | Setting Up Part 2 (1.10.2,1.11.2)’, was uploaded by CJMinecraft on 2016-08-25 16:30:00. It has garnered 10759 views and 159 likes. The duration of the video is 00:12:29 or 749 seconds.
Today we set up a mod for Minecraft 1.9.4 – 1.11.2!
Please support me if you can – https://www.patreon.com/cjminecraft Discord – https://discord.gg/ZvhUKkd
Don’t forget to like, comment and subscribe!
Music by Ninety9Lives Elektronomia – Imagination Video Link: http://99l.tv/Imagination Channel: http://99l.tv/Subscribe Album Download Link: http://99l.tv/GoldenGun
Links: ►GitHub – https://goo.gl/c4JlXe ►My Website – http://cjminecraft.theclever.me/ ►Modding Tutorial Playlist – https://goo.gl/bq6sgx ►Facebook – https://www.facebook.com/CJMinecraft01/ ►Google Plus – https://goo.gl/3n1umj ►SoundCloud – https://soundcloud.com/speed2-pc/ ►MCAmino – http://goo.gl/LzwZ9W ►Votable – http://www.votable.com/CJMinecraft
For modding help or if you want to contact me, email me at [email protected]
My Schedule: Monday or Thursday: ►Modding Tutorial