Hello there! My name is Keegandoc and i'm going to show You how to get started in Forge modding! These Tutorials will be very simple and easy to follow guaranteeing you will be making mods before you know it! These tutorials are for Minecraft version 1.5.2 or later. If you would like to request a tutorial, drop a comment below or message me on youtube!
I will try to keep this thread as updated as I can!
If you enjoy these tutorials, Hit the button at the bottom of this thread that looks like this and consider donating by either paypal or clicking this link through Adfly!
Okay, so to start modding with Forge we have to do a little bit of setting up. Yeah I know it sucks but I promise this is as hard as it gets! (Thats what she said ) First thing you need to do is download eclipse, Which can be found
Here. You want to look on the right hand side where it says "Downloads". Next, choose which platform you are on (Windows 32 or 64 or mac and linux). Now click on the link titled "[United States] XMission Internet (http)". You should then get a .Zip file called something along the lines of "eclipse-jee-juno-SR1-win32-x86_64". Extract it. You should now have a folder with a couple of other folders including a program called Eclipse.exe. This is eclipse! congrats!
Part two - MCP and Forge!
The next thing to do is to setup MCP with forge. First, we need to get MCP. Click this link to go to the page. once there, look at the contents section and click on "Releases". Now since we are modding for 1.5.2 we need to click where it says "Old MCP releases". (If your modding 1.6.1, skip this next part and just click "mcp803.zip".) once on the old releases page, look around until you find MCP for minecraft 1.5.2. (It should be version 7.51) Now click download. It should take you to mediafire so just download it there. Now you should have a new file called mcp751.Zip. Extract it. Now open up this folder and locate and open the jars folder. This is where we are going to put our bin folder out of our .minecraft folder into. Open up your .minecraft folder (Go to start and type "%appdata%") and drag the whole bin folder into the jars folder. Now you have MCP! Set this aside somewhere safe because we are going to use it alot! Now to just add Forge!
Part three - Installing Forge!
The last part of getting all of this setup is to add forge into MCP. First we need to download Forge. Click on this link for 1.5.2 or this link for 1.6.1. (For the 1.6.1 link, just click "src" right next to the "universal" on the 1.6.1 line.) Once on the page for 1.5.1, you want to click on where it says "Source Direct". Now we get a new file called minecraftforge-src-1.5.2-7.8.0.684.Zip. Extract it. Once extracted, Drag the newly created "forge" folder into our main MCP directory. (Along with confs, docs, jars, Etc...) Now open up that forge folder and look for a file called "Install.cmd". Open it up and let it run. Hopefully, you shouldn't get any errors. Now we have officially installed MCP with Forge! Congrats!
2. Beginning our main Mod file! (New! 1.5.2)
Part one - Setting up our Mod package!
Okay, so we have MCP setup and forge installed. So now we get to actually start modding! So lets start by going into our main MCP folder. once in our MCP folder we want to locate a folder called "src". Open that up. Inside that there should be a folder called "minecraft". Open that one up as well. Now inside this folder there should be a couple of files.(cpw, ibxm, net, paulscode, Etc...) Now we want to create a new folder in here and name it whatever you want! Such as your name or the name of your mod. In my case, I named my folder "Keegandoc". Once this is done, open up your newly created folder. Now we want to make another folder in here. This too can be named whatever you want. In my case, I named it "Tutorial". Once this is done we Have officially setup our mod package!
Part two - Making our main Mod class in eclipse!
Now that we have our package made, we need to open up eclipse to actually start modding! If you open up eclipse for the first time, it might ask you to locate your workspace. The location of our workspace is going to be in a folder called "eclipse" in our main MCP folder. once eclipse builds our workspace, we should be ready to go! Now if you are new to eclipse you may have a little bit of trouble navigating but trust me, you will get used to it. Now, on your left hand side we want to go over to the "Project Browser". There should be a folder there called "mincraft". Click the little arrow next to it. Now it expanded! Its magic! (Not really) Once you have done that, open up the folder titled "src". Now this is where we are going to be doing most of our work. Now you need to look for the folder/package we created in our MCP/src/mincraft folder. In my case it is called "Keegandoc.Tutorial". Once you locate it, you want to right click it and go to "new" And then "class". A window should pop up. We dont want to mess with anything but the name of our new class. We want to name it something unique because its going to be our main mod class. In my case, I just named it "KeegandocMod". You can do something along the same lines as that. Now we have our main mod class! Time to add some code and make a item!
Part three - Initializing our mod and making a new item!
Now to make things easy for you, i'm just going to give you the src for all your mods! Or in english, I'm going to give you the code pre-written so all you have to do is copy+paste and rename things! Pretty easy, huh? So for our main mod class (The one we just created), the link to the src or code can be found here. Once you get there (It should be paste bin), copy all of the code and head back over to your main mod class. Delete all the code in there making it completely fresh and paste the code you copied into your main mod class. Now you should get a few errors but its okay, we're gonna fix them! lets start from the top, you should first notice that your package name at the top is wrong. So to fix this, just rename it to the package that you have. So if your package name was "Test.Tutorial", you would change Keegandoc.Tutorial to Test.Tutorial! Now scroll down a bit until you find where it says "Basic Needed Forge Stuff". Now where it says "@Mod(modid="KeegandocMod",name="Keegandoc's Mod",version="v1")" You want to change the KeegandocMod to your mods main class name. Then change Keegandoc's Mod to the name of your mod and change the v1 to whatever version your mod is on. Now scroll down a little bit more and find where it says " Public class KeegandocMod" and change KeegandocMod to the name of your mods main class name. Now you should have a few more errors. These errors are for the item we are creating. So lets get those into order shall we?
Part four - Making The Item!
Okay so we have declared our mod and now its time to make our item! So in our main mod class you should have one error now. So lets go fix it! The error is the word ZincIngot underlined. The reason for this is because its not declared with its own class. So hover over the error and a little box should come up. You want to click on where it says "Create class 'ZincInngot'" Another box should appear. Just hit enter or click finish. Now we have a new class for our item! Now we need to set up the code for that class. The src can be found here. Delete any code in there and paste the new code in. Now we just have to rename a few things and we will officially have a item!
Yeah I need some help with the actual coding of the mod. I set mcp up and all that but I....don't know how to code java. I know im an idiot for trying to make a mod with out knowing but wanted to try and I have fail miserably. If you could give me just a basic run down of coding an item for example pumpkin pie? that would be amazing. and tell me how to do my own crafting recipies If you could do that I could kiss you
Yeah I need some help with the actual coding of the mod. I set mcp up and all that but I....don't know how to code java. I know im an idiot for trying to make a mod with out knowing but wanted to try and I have fail miserably. If you could give me just a basic run down of coding an item for example pumpkin pie? that would be amazing. and tell me how to do my own crafting recipies If you could do that I could kiss you
I will be adding a few of the tutorials for 1.5.2 tonight but 1.6.1 will have to wait until I get it down. Keep checking here daily for updates and new tutorials!
At the time of posting this, you explain the MCP installing the bin folder. Minecraft 1.6.1 does not have that now, just a versions folder. Have you figured out how to do this? I have had no luck with this.
Thanks,
Icyl
I have resolved it my issue. To install it, you just put the forge folder from the src zip in a folder for your modding. Then, you run install and Forge will install an MCP folder IN the forge folder. The jars are all installed for ya too!
I had an error with eclipse... When I opened up the work space, it told me a bunch of stuff was missing and it wouldn't let me go into the src folder. Please help!
1. Setting up our modding environment! (MCP, Eclipse, Etc...) (New! 1.5.2)
Part two - MCP and Forge!
Part three - Installing Forge!
2. Beginning our main Mod file! (New! 1.5.2)
Part two - Making our main Mod class in eclipse!
Part three - Initializing our mod and making a new item!
Part four - Making The Item!
I will be adding a few of the tutorials for 1.5.2 tonight but 1.6.1 will have to wait until I get it down. Keep checking here daily for updates and new tutorials!
At the time of posting this, you explain the MCP installing the bin folder. Minecraft 1.6.1 does not have that now, just a versions folder. Have you figured out how to do this? I have had no luck with this.Thanks,
Icyl
I have resolved it my issue. To install it, you just put the forge folder from the src zip in a folder for your modding. Then, you run install and Forge will install an MCP folder IN the forge folder. The jars are all installed for ya too!
heres a link to the post http://www.minecraftforum.net/topic/1900046-flyingminerlinks-forge-modding-tutorial-for-minecraft-162/