Starting to Mod

This will be a very short tutorial.

To create your first mod, go to Eclipse, and click on File -> New… -> Java Project.

Add a name to your project, and then click next. You don’t need to set other settings. After clicking next,  new UI will appear. Click on Projects tab up top, select Add…, and add the forge project to your mod dependency.

Now, delete the “src” source folder. You won’t need this, instead add another two: “src/main/java” and “src/main/resources”. The java source folder will be your code location, while the resources folder will be your assets location.

If you want to try and run Minecraft, click on the small black arrow beside the Run button, on the top toolbar, and select “Run Configurations…”. A window will appear, here create a new Configuration, in the Project box put in the project name, and in the Main Class box, put in “GradleStart”. You can now click on run and Minecraft will run!

That’s it, click finish, and you’re done! You can jump to actual coding!

11 thoughts on “Starting to Mod

  1. ben May 16, 2015 / 8:01 AM

    where can i find the code location?
    thanks

    Like

    • Emx2000 May 17, 2015 / 3:34 PM

      The minecraft source code location will be in the Forge project > referenced libraries > forgeSrcx.xx.xx.jar

      Like

    • Emx2000 January 27, 2016 / 10:34 PM

      Right click your mod’s project > properties > java build path > projects > add forge project there

      Like

  2. Rovkir January 29, 2016 / 11:14 PM

    Are the two folders that are created Source folders or regular folders?

    Like

  3. Idus Ortus February 26, 2016 / 3:40 AM

    Thank you for the tutorials; very well done. To clarify for those with little or no Java experience, or those unfamiliar with the heinous Eclipse IDE, when you go to Run Configurations, choose ‘Java Application’.

    Like

  4. dr1899 April 11, 2016 / 8:10 AM

    Could you explain more in depth: Now, delete the “src” source folder. You won’t need this, instead add another two: “src/java” and “src/resources”
    Where do I get those two folders and do I just delete the src folder that is in my new mod project?

    Like

    • Emx2000 April 12, 2016 / 11:58 AM

      Yes, you just delete the src folder, because you don’t need it.

      Then, you click on New > Source Folder to make those two.

      Like

  5. dr1899 April 11, 2016 / 5:52 PM

    Didn’t see my first comment for some reason, sorry for posting twice.

    Like

    • Emx2000 April 12, 2016 / 12:00 PM

      If you post for the first time, it needs to be approved first! Don’t worry I still can read it.

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s