Hello guys and welcome back to the minecraft mod tutorial in this episode we are going to be reorganizing our mod to make it a lot neater and also work in all future versions using forged registry events so let’s get started firstly when I recommend keep all your Previous code but make sure I recommend creating a new mod as there are a lot of things we need to change for this and it will make all our code a lot more simple organized and also just it will be using the forged registry events which is what You require so create a new new mod folder something called toriel Mott and then you’re gonna want forge mod builder by CGA minecraft this is a really simple program so to search for small mob builder or I’ll leave it in the description and it’s easy minecraft here On his channel has a video for it so download it off his it’s available on github but I’ll just watch his video and click just download the exe then run it what this is is a program that will download the version of Forge you want It will put it in a folder it will run setup deaqon workspace and will run setup eclipse so you create a new project and it will search for all the forge versions there is a version of one point of a forge 1.12 point to but i do Not recommend using it as it’s the first version so do which everything has the star next to it which is one point 12.1 2478 put your project name that’s whatever you want this doesn’t actually matter it won’t show up in eclipse I’m asleep on tutorial mod your group name I’m gonna about Harry’s mods the project versions 1.0 and the Java version is 1.8 probably quickly to create projects and then find the folder you just created and click OK it will then download the forge it’s a successful project click OK and then click yes then choose eclipse And click OK and it will do everything in the original tutorial for you since I know many of you will want to get on to the more complex stuff again I’m going to try it I’m gonna have the setup and the like episode 1 & 2 together and then I’ll sort items and blocks together so it will do all these things that have to do all these things first time for you but it’s gonna skip them for me as I’ve already done it in my in my mod development I don’t say build successful now you can boot into eclipse again and You understeer new thing wherever it’s stored for me it’s in my minecraft modding tutorial mod and then the eclipse folder and click Launch so not only if we updates to one point 12.1 we are often angry with getting some updated code firstly renamed MDK sample to your mod name and delete the example Mod harry dot mod create a new class and here’s what the organisation’s gonna be game i call all my main class his main as it allows me to copy and paste them between mods so just main window pop 1 to put the app mod tag and then as i Said you need to keep your previous code i am going to drag in my reference once you have all your references in save not and main and we’re going to want to put the things in we need for the app mod class mod ID is equal to referenced or Mod ID name is equal to reference name and version is equal to reference version and control to be able to import the at mod class now there are a few things I don’t think we’ve done this in the mod tutorial yet but we’re going to create an instance so app instance Public static main instance and controller to have to import instance well this is it’s basically just if you want to refer to your main class you use the instance instead of just actually referring to main class as you can’t do that you can’t really refer to main class so you refer to the Main instance this will be used in the entities and also the furnace tutorials next as before we want the sided proxy and then you’re on public static client proxy to a common proxy proxy Joseph Delta impulse hired proxy then you are going to want to create the proxy Package and we’re going to do some different inside of proxies for now just create them common in client and client extends common and control shift over to import coin proxy then we’re going to want to use the event handle tags and public void pre in it a public static Void pre init sorry FML pre and we can just close this up as we won’t be using it copy this three times changed in it with a lowercase always keep things the beginning of a function lowercase and call this post in it and change this to an FML initialization and post Initialization control shift over to import both and you want a bracket on the end that is our main class and that is all set up for the first running of our Mott clicking on mod just to define your mod if you don’t in this either Missing the at mod tag or your or your running setter Bronk so if you go down to where you click run and your run configurations client should say Gradle start and your projects will be tutorial mod if anything that’s wrong change it if it stops working for some reason the Run button create a new one and just put the Gradle start and that will work perfectly fine as well so we’ve created the first bit our mod I’m going to end this episode here but I will try and get the next steps out of this much quicker Than I have been as I know this bit really isn’t interesting to anyone but it’s needed for this followed for now so if you have enjoyed this video or found it useful please the like button down below subscribe for more my name is Ben Harry and goodbye Video Information
This video, titled ‘Setup and Organization – Minecraft 1.12.2 Modding Tutorial – Episode 1’, was uploaded by Harry Talks on 2017-09-20 18:00:58. It has garnered 100417 views and 1090 likes. The duration of the video is 00:06:46 or 406 seconds.
Welcome back to the Minecraft Modding Tutorial. Biome and Dimension tutorials will resume after I’ve updated the previous tutorials.
Forge Mod Builder: https://github.com/CJMinecraft01/ForgeModBuilder/releases
Links GitHub: http://tiny.cc/harrytechgithub Discord: https://discordapp.com/invite/xwg8zQJ Playlist: https://www.youtube.com/playlist?list=PLiDUvCGH5WEUEV9nc0Ll2pzUFmSFc21uR Subscribe: http://tiny.cc/sub2harrytech Twitter: https://twitter.com/harrystechrevs