Hello everyone this is marcora and welcome back to another modding tutorial today we are going to be taking a short break from fabric and setting up our forage workspace you’ll find that the procedure here is very similar to fabric but there are some key differences in the api literature and other factors That we will be discussing throughout the series my personal stance is that both fabric and forge are great forge tends to be more versatile while having a bit more of a learning curve than fabric fabric is easy to use and very lightweight however forge is far superior when it comes to Large mod packs as forge is the dominating force in the majority of mod developers of your introduction aside let’s get right into it start by downloading the most recent version of forge mdk minecraft development kit from the forge website the link will be in the description i am using the version 36.1.4 once you have it downloaded you’ll need to extract these files i usually use 7-zip it’s very convenient the link for this will also be in the description you can extract the files into a folder of your choice i am going to inside of my mod directories folder make a new folder called Tutorial mod version 1.0 for minecraft 1.16.5 going to go ahead and copy these files once inside you can delete the license and readme files we won’t be needing those you are going to need the same setup for intellij idea that i discussed in a previous video If you don’t already have an ide just go to my video about setting up intellij and java development kit i highly recommend intellij it’s great for modding it’s what engineers use and if you get the pro version it’s even better i went over all of this in my intellij video The link will be in the description and on screen welcome back how’s the other video thanks i worked pretty hard on it that was my first ever tutorial video now what you’re going to want to do for forge is to open idea and then click open go ahead and navigate your Way to your recently installed instance of forge mdk inside of this folder you’re going to click on the build.gradle file and click ok click on open project and trust project now gradle is going to set up your workspace you may see a little warning over here All this means is that you have access to the mappings of mojang’s minecraft code you aren’t allowed to redistribute this all that means is if you create an exact copy of minecraft and sell it to people you are committing a phone we are modding so this will not apply to us we are Modifying the game and releasing our modified code so there’s no need to worry be very patient it will take quite a while to set up and it should remain undisturbed it took mine around 5 minutes you can check up on its progress down in the right bottom corner now once All of your files are imported firstly we are going to start our client for the first time navigate to the gradle tab on the right hand side go down to tasks fg runs and then click on run client you can double click this and that will start your minecraft client You can also opt to click on the gen intellij runs this will generate a series of runs that you can choose from in order to start up your client and server i usually click on run client they have very similar functionality our client starts up just fine and the Default forge example mod has been loaded next time you want to start up the client go ahead and use this green play button up here now we’ve installed our mdk and set up our workspace it’s time to start modding to make this mod our own we’re going to start in the mods.tml file You can find this in the main resources meta inf mods tomo optionally you can install the tml language support plugin for jet brains this is not necessary but if you’d like to go ahead and go to settings open file click on plugins and then install the toml plugin this can be helpful but Is not necessary this file is pretty self-explanatory each line listed with the comment mandatory is going to be a required field the ones with optional are optional here we are going to change the mod id the mod id down here is currently example mod we’re going to want to change this to our Own mod id the mod id is your mod identifier change it to something you don’t mind typing a million times for my purposes i’ll name it tutorial mod this mod id will be important throughout the modding process the version here will be dependent on the naming convention of your mod file We will discuss this in a future video the display name is how your mod name will appear in game we’ll change it to tutorial mod keep in mind you can change this to anything you’d like optionally you can add a url for questions and updates i’ll add one real quick In order to uncomment a line you simply delete this number sign here our logo file will be logo.png and we will insert this file in the proper location later in the video credits for this mod will go to me and the author will be mark aurora be Sure to adjust these values in your own mods accordingly the description is multiple lines and whatever you like here Dependencies are optional however i like to keep the original dependencies of ford and minecraft because how likely is it that you’re going to be running a forged minecraft server without forge or minecraft i didn’t think so so all you need to do here is change example mod id to your mod id Ours is tutorial mod And that’s it for your mods.toml file next up to that is our pack.mcmeta file here in the resources folder all you really need to change here is the description we’ll change example mod to tutorial mod inside of the resources folder we are going to include a png file called Logo we can drag and drop that in there remember the logo file we configured in the mods.2ml file yeah that’s going to reference this file and create a logo for our mod this is not necessary but it does help to create a good first impression of Your mod when looking in the mod gui you can look at this file by going to open in explorer and you may choose to edit it using a png editor like paint.net After this you’ll want to change the folders in main using the refactor tool we will change example to tutorial using refactor rename This will be the likely name of your mod and this is going to be your mod id we’re going to change this to our mod id which is tutorial mod if you get a message down here just click on do refactor all this will do is change the associated files that reference the Classes inside of this package again be sure to use your own mod name and mod id now i personally like to have a main class called main so we can refactor this as well rename it to main this is completely optional you can name this class anything you like now heading into Our main class we’re going to change the mod id here from example mod to our mod id which is tutorial mod again i cannot stress this enough you need to use your own mod id rather than the mod id i have you need to create your own one more Instance of the mod id is down here in the nq imc change the mod id here to tutorial mod id which is tutorial mod that’s it for our main class now we are going to complete our last step which is to change the build.gradle file you can find build.gradle over here now This part is different from fabric we’re going to edit the build file directly rather than to change the gradle settings file in here will be your version number group name and your archive space name all of this will decide what your eventual mod export will look like and where it Will be coming from just like last time we will be changing the name and mod id here we’ll change this to tutorial and the mod id which is tutorial mod we’re going to change this as well to our mod id quick side note the package name tutorial which Corresponds to tutorial up here can also be your name which in my case would be marcora you can set this to your name or you can name it something else of your choosing in my case since this is a tutorial i’m going to name it tutorial We can go ahead and start up the game using either this same run client or clicking on the green arrow up here and that is it all it takes to set up your mod workspace for forge 1.16 and start development leave a comment down below with any questions And stay tuned for the next video where we will finally start modifying the game that’s all for today this has been marcora and i’ll see you in the next video see y’all later You Video Information
This video, titled ‘Minecraft Modding! Step 2: Setting up Forge MC 1.16.5’, was uploaded by MarcAura & Crylrex on 2021-05-02 15:51:33. It has garnered 8617 views and 251 likes. The duration of the video is 00:10:18 or 618 seconds.
In this video, I’ll be going through the process of setting up the 1.16.5 Forge Modding Workspace, creating your own mod, and creating a mod logo using Intellij IDEA. Stay tuned for the next video where we will modify the game!
The software I use is Intellij IDEA which I highly recommend for frequent modders and newcomers alike! Check out my video where I show you how to get started if you havent already!
Intellij IDEA video: https://youtu.be/IDQXV4Jc8kk
Links: Forge(Most Recent): https://files.minecraftforge.net/net/minecraftforge/forge/ 7Zip: https://www.7-zip.org/
UPDATE: The most recent version of forge MDK (1.16.5 – 36.1.16) has experienced some minor bugs and issues when running the client. Because of this, I recommend using the 1.16.5 – 36.1.4 version from the forge website.
Have any questions? Join my Discord! https://discord.gg/gs6RU6KMdq
Please feel free to leave a comment if I forgot to include any links! Happy Modding!
-MarcAura