Tutorial 1. Setup


This series is for everyone NEW to minecraft modding!
I will explain how and why to do stuff.
All tutorials will be posted on this website.
Bookmark it to be up to date!

So, lets start.

We need to download things:

I am not gonna explain how to install JDK, since you need to know java, and in order to learn that, you need JDK anyway.
IntelliJ: An IDE, my favorite. Its free, easy, and super cool.
Forge: Our API, or bridge between minecraft and our mod.

Note, there is an other program, which can replace IntelliJ, called eclipse. There are reasons why i chose intelliJ. If you really want to setup with eclipse, go here. Otherwise, read along.

Ok, Install IntelliJ (also called IDEA).
Now, create new folder. This folder will be the base folder for all our modstuff.
This folder will be refered as ‘BaseFolder’
Inside the BaseFolder, extract Forge.


What you want to do now, is open a command prompt/terminal.
Now, find your BaseFolder. Use the command cd to move around.
Option 2: Rightclick on BaseFolder and select open commandprompt.
Enter the following command:

gradlew.bat setupDecompWorkspace

Wait for it to be done. It might take quite a while.
Once done, open IntelliJ. Select “import project”.
Select the file: “BaseFolder/build.gradle


Click ok. Click ok again.
IntelliJ will now setup your workspace!!
When that is done, you will see a workspace like this one:


If your project looks like this, CONGRATZ! you havent messed anything up. yet.

Open your command prompt again, and run

gradle genIntellijRuns

This will create our run configs. If you want, you can change the username in the run config. Edit Run Configuration -> change¬†–username=ForgeDevName

Now, first thing to do, is delete the com.examplemod.examplemod package in the blue /src/main/java folder.
Also, delete the mcmod.info file in /src/main/resources.

The java folder is where you put all your .java files, and the resources folder is where all resources go (textures etc.)

If you now run that run config, and minecraft starts, congratulations.
You now have a working setup!


Back to List
Next tutorial

2 Responses to Tutorial 1. Setup

  1. Arron Appleyard says:

    I get to the stage of creating a run config and I get an error saying that net.minecraft.launchwrapper.Launch cannot be found.

    Warning: Class ‘net.minecraft.launchwrapper.Launch’ not found in module ‘Forge’

    I can’t find help anywhere on the internet for this and would apreciated it.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">